Get Device Location Example
Skill level:

This example demonstrates a tool that can be built with an intermediate-level knowledge of the MyGeotab system. It is suitable for those who have a good understanding of the Geotab ecosystem and are comfortable with the MyGeotab SDK and leveraging the MyGeotab APIs within their projects.

This example makes two API requests for the vehicle and location and displays it on a map. To retrieve the current location of a vehicle, we first look up the vehicle by its serial number. When the API response returns our vehicle properties, we use that responses callback to retrieve the DeviceStatusInfo object which contains the current location. With this data, a location marker is added to the map.
In this example
API Methods:Get
API Entities:Device DeviceStatusInfo