Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • One path does both directions: q is an address or place for forward geocoding, or ‘latitude,longitude’ (latitude first, decimal point) for reverse.
  • Free trial: 2,500 requests per day (reset at 00:00 UTC; 402 when spent) and 1 request per second (429 when exceeded). The free trial is for testing, not production.
  • no_annotations=1 makes answers smaller and faster when timezone, currency and the other annotations are not needed.

Endpoints

Geocode an address or place name

  • Check each result’s confidence: it measures how small the result’s bounding box is (10 means its corners are under 0.25 km apart, 0 means no box), not how likely the match is right.

Reverse geocode a coordinate