×

Track data 

This API loads detailed route points (track data) for a trip previously obtained via the rungeo method. Each track point contains coordinates, speed, and a timestamp relative to the start of the trip.

How to get data

Method

GET

Request address

To get the data, use the address:  https://<server_address>/api/api.php?

Request parameters

  • cmd=gettrack — command to retrieve the track
  • id — track ID obtained from the rungeo API response
  • node — node number where the command should be executed
     

Example request

https://<server_address>/api/api.php?cmd=gettrack&id=70685695&node=1
Response
{
  "track_data": "47.2037;39.6325;10;0:47.2037;39.6324;13;1:47.2037;39.6323;15;3:...",
  "track_id": 70685695,
  "unixstarttimestamp": 1439443509
}
In response to the API request, the following is returned:
  • track_id — unique identifier of the track
  • unixstarttimestamp — start date and time of the track (Unix timestamp)
  • track_data — sequence of track points separated by a colon :
Each track point consists of 4 parameters separated by a semicolon ;:
1. Latitude (lat)
2. Longitude (lon)
3. Speed (km/h)
4. Seconds since the start of the track (sec)