endpoints

Location API

Smartcar's location API endpoint lets app developers remotely access a vehicle's live location using simple HTTP requests. Locate cars of any vehicle brand, anytime, hardware-free.

Meet our vehicle location API

Our location API endpoint returns the geo location of a vehicle by latitude and longitude, regardless of the make or model. The best part? You won't need to use any aftermarket hardware like OBD2 dongles or GPS tracking devices. Start geolocating cars via your app today - it's as easy as a few lines of code!

Features

Works across car brands
Works across car brands
SDKs in six languages
SDKs in six languages
Self-service experience
Self-service experience
No aftermarket hardware
No aftermarket hardware
Reliable customer support
Reliable customer support
Scalable pay-as-you-go pricing
Scalable pay-as-you-go pricing

Our SDKs

Our RESTful API is fast, reliable, and easy to use with every tech stack. No matter which language you used to build your mobile or web app, our documentation includes six SDKs and several integration guides. Here is a sneak peek of how the vehicle location endpoint looks in our back-end SDKs:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
const smartcar = require('smartcar');
 
// List all vehicles associated with this access token
const {vehicles} = await smartcar.getVehicleIds("<access-token>"); 
 
// Use the first vehicle
const vehicle = new smartcar.Vehicle(vehicles[0], "<access-token>");
 
// Fetch the vehicle's location
const location = await vehicle.location();
console.log(location);

Use cases

Peer-to-peer car sharing

On-demand car wash

Use Smartcar's location API endpoint for a more seamless user experience in your peer-to-peer car sharing app. Our API lets vehicle owners share their car's location with renters. During pickup, renters can pinpoint the location of their rental car on your app, without having to contact or meet the vehicle owner. Drop-off has never been easier, as the car owner can easily locate where the renter has left the vehicle.

Use Smartcar's location API endpoint to make on-demand car wash easier for your users and your technicians. Our API lets your app users share their vehicle's location with your car wash technician, so that the two don't have to text, call, or meet each other. Your technician will be able to locate your user's car directly via the app, making on-demand car wash faster and more convenient for your users than ever before.

Peer-to-peer car sharing

Use Smartcar's location API endpoint for a more seamless user experience in your peer-to-peer car sharing app. Our API lets vehicle owners share their car's location with renters. During pickup, renters can pinpoint the location of their rental car on your app, without having to contact or meet the vehicle owner. Drop-off has never been easier, as the car owner can easily locate where the renter has left the vehicle.

On-demand car wash

Use Smartcar's location API endpoint to make on-demand car wash easier for your users and your technicians. Our API lets your app users share their vehicle's location with your car wash technician, so that the two don't have to text, call, or meet each other. Your technician will be able to locate your user's car directly via the app, making on-demand car wash faster and more convenient for your users than ever before.