GET /v1/geocodeGeocoding
Addresses to coordinates and back, with rooftop precision in 90 countries.
Lodestar turns messy addresses into clean coordinates, checks that a parcel can be delivered and finds places near your users. One API, answers in under 50 ms.
$ npm install @lodestar/sdk$ curl https://api.lodestar.example/v1/geocode \ -H "Authorization: Bearer ls_live_4f9a..." \ -d q="rathausplatz 1 wien" HTTP/2 200 x-latency: 38ms { "id": "plc_8Hk2wQ", "formatted": "Rathausplatz 1, 1010 Wien, Austria", "location": { "lat": 48.21081, "lng": 16.35734 }, "confidence": 0.98, "precision": "rooftop", "timezone": "Europe/Vienna", "deliverable": true }
Official SDKs for JavaScript, Python, Go and Ruby, each fully typed. Or just send JSON over HTTPS.
curl https://api.lodestar.example/v1/validate \
-H "Authorization: Bearer $LODESTAR_KEY" \
-H "Content-Type: application/json" \
-d '{"address": "350 fifth ave new york", "country": "US"}'
import { Lodestar } from "@lodestar/sdk";
const ls = new Lodestar(process.env.LODESTAR_KEY);
const result = await ls.validate({
address: "350 fifth ave new york",
country: "US",
});
console.log(result.deliverable); // true
from lodestar import Lodestar
ls = Lodestar(os.environ["LODESTAR_KEY"])
result = ls.validate(
address="350 fifth ave new york",
country="US",
)
print(result.deliverable) # True
Response200 OK, 41 ms
{ "deliverable": true, "standardized": { "line1": "350 5th Ave", "city": "New York", "region": "NY", "postal": "10118" }, "type": "commercial", "suggestions": [] }Four endpoints cover almost everything location related. Each one is fast, predictable and priced per call.
p50 latency, last 30 days31ms
Served from 14 regions, so the nearest one answers first.
GET /v1/geocodeAddresses to coordinates and back, with rooftop precision in 90 countries.
POST /v1/validateCatch typos at checkout and know if a parcel can actually be delivered.
GET /v1/placesAutocomplete for search boxes that feels instant, with ranking by distance.
POST /v1/batchClean a whole customer list in one call. Up to 10,000 rows, results by webhook.
No card needed to start. Keys work in test mode right away.