Vehicle Current Location API

Hi
I am trying to get the current vehicle location through Cloud dashboard or API but cannot find any resource in community or documentation about that. How can I get the current location/GPS position on vehicle?
Thank you

Does this mean you have to have the dongle / diy version always on? There is a setting for the power mode in the settings, maybe turning off the sleep mode or the like will keep the powering going to ping it’s current locaiton. Just a thought. I’m totally new to this too.

Hi,

So I am learning and fumbling my way through this. To get the last know location from the cloud, you use the https://api.autopi.io/logbook/most_recent_position/?device_id="+msg.device_id; api.

I am using node red and i have simply copied code for node red. You wil need to use postman or your favorite language to make the get call. (You will need to retrieve the token prior)

For a list of end points have a look at

https://api.autopi.io/

msg.headers[‘Authorization’] = 'bearer '+flow.get(“currentToken”);
msg.device_id = flow.get(“device_id”);"
msg.url = “https://api.autopi.io/logbook/most_recent_position/?device_id=”+msg.device_id;

Good luck

2 Likes

Hello All,

how to get device geolocation inside of AutoPi, directly from device? using python.

thanks in advance.

Hi @Dima,

See this command:
http://docs.autopi.io/commands/ec2x/#ec2x-gnss-location

Best
Peter

1 Like