Vehicle Endpoints
Location
Returns the vehicle's last know location.
GET
/v2.0/vehicles/{id}/location
Permission
read_location
Request
Path
idrequired
string
The vehicle id of the vehicle you are making a request to.
curl "https://api.smartcar.com/v2.0/vehicles/{id}/location" \
-H "Authorization: Bearer {token}" \
-X "GET"
Response
latitude
number
The latitude in degrees.
longitude
number
The longitude in degrees.
{
"latitude": 37.4292,
"longitude": 122.1381
}
curl "https://api.smartcar.com/v2.0/vehicles/{id}/location" \
-H "Authorization: Bearer {token}" \
-X "GET"
{
"latitude": 37.4292,
"longitude": 122.1381
}