Determine device's location via the REST API

We provide location information for all Hologram SIMs when available. To get this information via the REST API you need to make a GET request on:
https://dashboard.hologram.io/api/1/devices/YOUR_DEVICE_ID

Note: If you aren't familiar with APIs, we highly recommend checking out our introduction to Hologram's REST API guide as well as using Postman to make the API calls mentioned in this guide.

This will return a lastsession JSON object with an approximation of your device's latitude and longitude.

 

The information provided is based the last cell tower the device connected to on cell tower, so accuracy varies depending on the SIM's location and tower density in the region. For dense cities, the location of the SIM should be within a 1 kilometer (0.62 mile) radius. For more accurate location information, we suggest using a GPS module.

Note: Not every network provides location information, and not every network provides location information in every session. To find historical location information for a SIM, please refer to a SIM's session history, or the data usage by session report under the Usage section of your dashboard.

To look up a device's location via your dashboard, go to this page.

Was this article helpful?
0 out of 0 found this helpful