Location API

Locate cars without hardware

Enable your app to retrieve the location from vehicles across brands with a single API.

Latitude and longitude

Access a vehicle’s location by its geographic coordinates.

Node

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
const smartcar = require('smartcar');

// Get all vehicles associated with this access token
const {vehicles} = await smartcar.getVehicleIds("<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();
console.log(location);
// Example response from Smartcar
{
  "latitude": 37.4292,
  "longitude": 122.1381
}

Product features

API SDKs in Node.js, Python, Java, and Go

API SDKs in Node.js, Python, Java, and Go

Compatible with 15 brands

Compatible with 15 brands

Access to live data

Access to live data

Batch requests

Batch requests

No aftermarket hardware

No aftermarket hardware

Use cases

Peer-to-peer car sharing

Car insurance

For seamless pick-up and drop-off, let car owners share their vehicle's location with renters directly via your app.

Access a vehicle's location and odometer reading to give policyholders insight into the trips they are making.

Peer-to-peer car sharing

For seamless pick-up and drop-off, let car owners share their vehicle's location with renters directly via your app.

Car insurance

Access a vehicle's location and odometer reading to give policyholders insight into the trips they are making.

Ready to get started?

Get Started

Ready to get started?

Get Started