That API endpoint does not return lat/long. Right now, the API can return lat/long for the most recent session. This is available using the /devices endpoint.
There is a guide in the Help Center explaining how to get lat/long for the most recent session using the Hologram REST API. You can also refer to the REST API documentation.
Hi
I checked that. But i need lat long for all past sessions. Is that possible ?
Because i need to track the path travelled by the device. Please suggest If you have any other options.
That information is not currently available using the REST API. However, I can see how this could be useful and will pass it along to our product team to see if this fits into our roadmap.
You should do this yourself by periodically hitting the API for each device. For example you can grab the most recently location every 30 minutes for your device and store the lat/long in a database, text file, whatever. This way you control the rate and lifetime of the data you store.
Also note that the lat/long provided by hologram is not that accurate. Good enough for city level accuracy I would say. Some of mine are within ~200m some are off by 20+ miles. If you want better accuracy I would suggest supplementing with GPS or geolocate with WiFi