Getting data
Now that you have a registered and validated tracker in Astara Connect, you can start getting telemetric and property data, like its last position or the consumption average value.
For checking the available trackers, you get a list of trackers that belong to a company with an option to filter by the validation status.
To check if the vehicle is tracking data properly, get the {oid} value of a tracker and its status value.
If its value is connected
, then your vehicle is fully working within Astara Connect, so you will be able to retrieve the information of a tracker with the {oid} value.
And the response of the endpoint, it will return something like this:
{
"billed_date": "2022-01-01T00:00:00.00000+00:00",
"end_date": null,
"heartbeat": "2022-01-01T00:00:00.00000+00:00",
"motorization": null,
"moving": false,
"object_id": {
"document": "0000XXX-2022.jpg",
"license_plate": "0000XXX",
"make": "Mercedes-Benz",
"model": "eVito",
"odometerLastRead": "11795",
"odometerLastReadings": [],
"vin": "W1V00000000000000"
},
"oid": "71e2684b-66f5-46a3-b12b-33710a094bbb",
"position": {
"latitude": 40.464092,
"longitude": -3.685438
},
"properties": {},
"provider": "mercedes-benz",
"start_date": "2022-10-13T15:38:41.892373+00:00",
"tracker_id": "W1VXXX60313XXXXXX",
"type": "oem",
"validation_status": "connected",
"vehicle_type": "van"
}
Then, with the {oid}, you also can get its last saved position. The response will be:
{
"latitude": 42.878582,
"longitude": -2.738421,
"tracker_id": "W1VXXX60313XXXXXX",
"ts": "2022-12-23T14:02:40.000000+00:00"
}
Each tracker has some properties that allow us to visualize a vehicle's different sensors and signals. The availability of this data may depend on different factors, such as:
- The data provider doesn’t serve it.
- According to the make and model, the data is unavailable or not mapped with the tracker.
- The vehicle doesn't have the connectivity or the sensors package installed.
To learn more about the different properties available by provider see at Normalizing data.
If you have any questions, please contact us at [email protected].
Updated 10 months ago