Skip to main content

SDKs

Official clients, all zero third-party dependencies and open source (MIT). They cover the three API families — Directions, Distance Matrix, Fleet Optimization — 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

Python example

JavaScript example

Go example

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.