Overview
This guide shows how to push GPS data to our server so that you can track your vehicles from the application.
Step 1: Please make sure you’ve registered the vehicle number and enabled GPS option in our application before pushing the data to our server.
Step 2: Contact your service provider for sharing the data with us by pushing the live GPS data to our REST API endpoint at regular intervals of time.
Step 3: Once our server starts receiving the data from the GPS provider, you will be able to see the real-time tracking in a map view.
API Request
GPS requests are sent using POST to the following URL:
https://app.corelogis.in:5601/gps?key=YOUR_API_KEY
You must specify a key in your request, included as the value of a key parameter. A key found in the application.
Request body
The request body must be formatted as JSON. The following fields are supported, and all fields are optional unless otherwise stated:
{
"LocationData": [
{
"unit_no": "358735077269792",
"asset_type": "Lorry",
"latitude": 11.252761111111111,
"longitude": 77.56259555555556,
"speed": 40,
"ignitionon": "False",
"battery_status": "100",
"gps_datetime": "2022-02-01T23:47:03.000+00:00",
"assetId": "TN01HD3245",
"lastheardfrom": "2022-02-01T23:47:03.000+00:00",
"lastPositionUpdate": "2022-02-01T23:47:03.000+00:00",
"heading": 129,
"inmotion": "inmotion",
"odometer": 61313.019,
"addressLineOne": "Anna Nagar, Chennai, Tamilnadu, India.",
"gmt": "<gmt>"
}
]
}
| Name | Type | Default | Description |
| unit_no | string | The unique ID of the GPS Device | |
| asset_type | string | The Type of vehicle where the GPS Device is installed. | |
| latitude | number | Latitude value of the current position. | |
| longitude | number | Longitude value of the current position. | |
| speed | number | 0 | Speed of the vehicle in km/hr. |
| ignitionon | boolean | false | Ignition status of the vehicle. |
| battery_status | number | 0 | Remaining battery level in the vehicle. |
| gps_datetime | datetime | Date and Time from the Device. | |
| assetId | string | Legal Registration Number of the vehicle. | |
| lastheardfrom | datetime | Last Time when heard from the device. | |
| lastPositionUpdate | datetime | Last position time from the device. | |
| heading | number | The direction of the vehicle is in the equator degree. | |
| inmotion | string | Status of the vehicle whether it is “inmotion” or “notinmotion” | |
| odometer | number | Latest Odometer reading value. | |
| addressLineOne | string | Readable address based on latitude and longitiude. | |
| gmt | datetime | Standard GMT Time. |