Tracking link for object
This API is used for getting a temporary link to track an object on the map, with activation and deactivation based on specified geofences.
How to get data
Method
GET
Request address
To get the data, use the address: https://<server_address>/api/api.php?
Request parameters
-
cmd=get_temp_link — command to get a temporary link
-
imei — unique identifier of the object (vehicle) in the system
-
startgeo — geofence for link activation
-
stopgeo — geofence for link deactivation
-
max_duration — maximum duration of the link in minutes (default: 1440 minutes / 24 hours)
Example request
https://<server_address>/api/api.php?cmd=get_temp_link&imei=356307045913463&startgeo=Rostov test API&stopgeo=Rostov exit test API&max_duration=800
|
Response
https://<server_address>/monitor_token.php?token=1f87a19c068ad47f3f769dc151527794&lang=en&zoom=10&startgeo=Rostov test API&stopgeo=Rostov exit test API
|
The API returns a direct link to the map with a temporary token. The link respects the specified geofences for activation (startgeo) and deactivation (stopgeo).