Device gps data

Get all devices gps data by querying POST to /api/gps with a Ventra API account using username, password, deviceid, start and end. When querying the POST method to /api/gps, the system will return an array of all devices gps data. With Content-Type: application/json; charset=utf-8

Parameters
Name of Parameter Type Description
username string Required username
password string Required SHA-256 of your password which is uppercase
deviceid string Required
start number Required UTC time of start time, UNIX time format
end number Required UTC time of end time, UNIX time format
Example

Get device gps data by querying POST to /api/gps with username and password and deviceid

URL https://www.ventracloud.com/api/gps POST /api/gps Content-Type: application/json; charset=utf-8
{
    "username":"APIdemo",
    "password":"58F0DB19BE70BFD8E53E1CAC8C32514853E97D0A44DA9B68A72046B7730BD5A6", 
    "deviceid": "VG000032",
    "start": 1573018198,
    "end": 2573018198
}

Response

The response is an array of device gps data with details.

[ 
    { 
        "lat": "24.077483", "lng": "120.528942", "speed": "0.722280", "dir": "163.250000", 
        "time": 1573018202 }, { "lat": "24.077488", "lng": "120.528943", "speed": "0.092600", 
        "dir": "163.250000", "time": 1573018207 }, { "lat": "24.077488", "lng": "120.528938", 
        "speed": "0.796360", "dir": "163.250000", "time": 1573018212 
    }, 
    ... 
]
dir: direction
  • Contact Us

    Contact Us


  • SHA-256 Converter

    SHA-256 Converter