This tool is provided as an example and is available on an As-Is basis. You must assume all the risks and costs associated with the use of the sample tool, including, without limitation, any damage to any equipment, software, information or data. In addition, we are not obligated to provide any maintenance, technical or other support for the sample tool. In order to improve our products, we may at any time, and without warning, change the design, presentation, or functionality of the software.
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.