GET api/SocialDriver/GetCurrentLocation?serviceId={serviceId}
Get a vehicles latest location
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| serviceId |
Optional service id |
unsigned integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
ViewVehicleLocationResponse
ViewVehicleLocationResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Bearing |
The bearing in degrees |
integer |
None. |
| Location |
The vehicles location |
SocialDriverLocation |
None. |
Response Formats
application/json, text/json
Sample:
{
"Bearing": 1,
"Location": {
"Latitude": 1.1,
"Longitude": 2.1
}
}
application/xml, text/xml
Sample:
<ViewVehicleLocationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Bearing>1</Bearing>
<Location>
<Latitude>1.1</Latitude>
<Longitude>2.1</Longitude>
</Location>
</ViewVehicleLocationResponse>