Skip to main content

JustRouting SDK

Official client libraries for every JustRouting API family — Directions, Distance Matrix, Map Matching, Trip, Nearest, Geocode, and Fleet Optimization. All SDKs are open source (MIT) and zero third-party dependencies, so they run on Lambda, Cloudflare Workers, and edge environments as-is, with typed errors and built-in 429 retries.

Shared conventions

  • new Client(apiKey) attaches Authorization: Bearer to every request automatically
  • Coordinates always use [lng, lat] order
  • Unreachable matrix cells come back as null (not 0) — you decide how to handle them
  • Zero dependencies means they run on Lambda, Cloudflare Workers, and edge environments as-is

No SDK? No problem

The SDKs are thin wrappers over plain REST. You can always call the HTTP endpoints directly — every API Reference page has curl examples.