How to get the latest status through REST API

This guide explains how to use the REST API to retrieve the latest position and status of vehicles for each application.

Requisites

Resource used

Users -> usersstatus

Screenshot 2024-09-11 at 15.17.00.png

How to

1. Log in to http://host_name/comGpsGate/api/v.1/test 

Note: replace host_name with your actual server IP address or host name.

2. Click on the resource name, then > Try it out

Screenshot 2024-09-11 at 15.17.00.png

3. Insert the parameters required. This API resource requires application ID. And you can also include the Tag ID, FromIndex, and UpdatedFrom as optional parameters. 

Note: If you don't know your Application ID, you can obtain it as explained here.

Screenshot 2024-09-11 at 15.18.33.png

4. From these parameters you will obtain Curl, Request URL, 

Screenshot 2024-09-11 at 15.20.02.png

and the Response message from the request, containing the vehicle name, ID, latest position and related signals from the device. 

Screenshot 2024-09-11 at 15.22.37.png

If you are calling the API from 3rd party system, you can call the endpoint: 
http://host_name/comGpsGate/api/v.1/application/APPLICATION_ID/usersstatus

Want to connect PowerBI with GpsGate and load the status of the vehicles? You can follow this guide: Linking GpsGate REST API with Microsoft PowerBI