Location API

Track vehicles hardware-free

With Smartcar, tracking a car’s location is as easy as a single API request.

Location

Retrieve a vehicle’s last known location by geographic coordinates.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
const smartcar = require('smartcar');

// Get all vehicles associated with this access token
const {vehicles} = await smartcar.getVehicles("<access-token>");

// Construct a new vehicle instance using the first vehicle's id
const vehicle = new smartcar.Vehicle(vehicles[0], "<access-token>");

// Fetch the vehicle's location
const location = await vehicle.location();
// Example http response from Smartcar
{
  "latitude": 37.4292,
  "longitude": 122.1381
}
See the API docs

Product features

Compatible with 22 car brands

Compatible with 22 car brands

Friendly user consent flow

Friendly user consent flow

Works on 2015 and newer vehicles

Works on 2015 and newer vehicles

Trusted & secure

Trusted & secure

Access to real telematics data

Access to real telematics data

SDKs for Go, Java, Node.js, Python, and Ruby

SDKs for Go, Java, Node.js, Python, and Ruby

Learn more about Smartcar’s APIs

Related industries

Fleet management

Build simple, affordable fleet tracking software for businesses of all sizes.

Learn more about fleet management

EV charging networks

Display nearby EV charging stations and let your customers plan trips directly in your app.

Learn more about EV charging

What we’re building

Latency and frequency of data availability may vary between makes and models.