Example: Data feed

Demonstrates how to poll for newly available data

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.

Select feed data

This example will show you how you can poll your Geotab account on a regular interval for new information. You can use this framework to integrate your location history and vehicle status in to your own applications by performing periodic updates when needed.

In order to reduce the amount of network traffic, this example uses aggregated API calls which are called multi-calls. You can read more about them in the Geotab SDK documentation.



This example shows you how you can implement polling for multiple sources of data.

Work flow
We retrieve new information by setting up JavaScript intervals which invoke a function every few seconds. This function is responsible for building a set of API requests using MultiCall to reduce network traffic. After we have the results from the API response, we dynamically build an HTML table with all the data.

Skill level