The Automatic support person has offered to help me troubleshoot the issue but I'm not sure what to tell them since I'm not using the API directly.
I was actually able to get an Access Token with the location checkbox enabled. So maybe the scope is working after all, at least partially.
However, I didn't get anything in the log after I just drove the car, not did I get anything in the Automatic app for that matter. When I trigger a simulated Trip Finished event, I get these errors:
Automatic OBD-II Location unknown, distance matrix calculation failed: 'duration'
Automatic OBD-II Location unknown, geocode failed: list index out of range
Oddly enough, I used to get a distance calculation and ETA before I got the scope approval but even that does not seem to work anymore.
The debug log shows this:
Automatic OBD-II Debug
https://maps.googleapis.com/maps/api/di ... s=imperial Automatic OBD-II Debug {
"destination_addresses" : [ "xxxxxxxxxxx San Jose, CA xxxxx, USA" ],
"origin_addresses" : [ "-29,63" ],
"rows" : [
{
"elements" : [
{
"status" : "ZERO_RESULTS"
}
]
}
],
"status" : "OK"
}
The origin_addresses field does not look right at all and it comes up differently depending on whether I enable locations, choose the other Google API, etc. If that field is supposed to be coordinates, it's way off.
Also, the debug log seems to show that the realtime location scope is enabled:
{"access_token":"xxxxxxxxxxxxxxxxxxxx","scope":"scope:behavior scope:location scope:offline scope:public scope:realtime:location scope:trip scope:user:profile scope:vehicle:events scope:vehicle:profile","expires_in":2440735,"refresh_token":"xxxxxxxxxxxxxxxxx","token_type":"bearer","user":{"id":"xxxxxxxxxxxxxxxxxx","sid":"xxxxxxxxxxxxxxxx"},"user_id":"xxxxxxxxxxxxxx"}
Any suggestions on what else to try or what I should tell the Automatic support person?
Thanks.
--Dave