Geocoding and reverse geocoding API

Search for any address or place in the world, or find the address at a point on the map. Every result says how precise it is, and where its data came from.

Try the geocoding API

Type an address anywhere in the world, or click the map to find the address at that spot. Each answer comes from the live API.

Or click anywhere on the map to reverse geocode it.

Eight searches around the world

Street addresses come back as addresses, landmarks as venues, each with its source.

You send

q=10 Downing Street, London

You get

10 Downing Street, London, England, United Kingdom

51.50333, -0.127603

address openstreetmap

You send

q=1600 Pennsylvania Avenue NW, Washington

You get

1600 Pennsylvania Avenue NW, Washington, DC, USA

38.897675, -77.036547

address openaddresses

You send

q=100 Queen St W, Toronto

You get

100 Queen Street West, Toronto, ON, Canada

43.65313, -79.383234

address openstreetmap

You send

q=Avenida Paulista 1578, Sao Paulo

You get

Avenida Paulista 1578, São Paulo, Brazil

-23.56152, -46.656165

address openaddresses

You send

q=Unter den Linden 77, Berlin

You get

Unter Den Linden 77, Berlin, Germany

52.516109, 13.380014

address openaddresses

You send

q=100 Long Street, Cape Town

You get

100 Long Street, Cape Town, WC, South Africa

-33.92272, 18.418592

address openaddresses

You send

q=Tokyo Tower

You get

Tokyo Tower, Minato, Tokyo, Japan

35.658458, 139.745435

venue openstreetmap

You send

q=Sydney Opera House

You get

Sydney Opera House, Sydney, NSW, Australia

-33.857841, 151.214882

venue openstreetmap

What reverse geocoding returns off the road

Reverse geocoding returns the nearest address. Where there isn't one, it falls back to the county, region, or country, and tells you the type and the distanceMeters to the match. In the open ocean you get an empty list, not a guess.

Responses from /v1/reverse.

Distance from the point to its reverse geocoding match
  • Pioneer Courthouse Square, Portland
    720 Sw Broadway, Portland, OR, USA address
    10 ft
  • Grand Canyon South Rim
    15 Bright Angel Trail, Tusayan, AZ, USA address
    250 ft
  • Great Basin Desert, Nevada
    Lander County, NV, USA county
    35 mi
  • Andes near Machu Picchu
    Urubamba, CS, Peru county
    18 mi
  • Antarctic plateau
    Antarctica country
    232 mi
  • Middle of the Pacific
    No results: an empty list
    None

Bars use a log scale.

Request and response

Send a GET request with your key and read the JSON. No SDK to install, from any language.

  • focus ranks results near a point first
  • country limits results to up to 10 countries
  • lang picks the language of names and labels
  • Every result has an ID you can store and look up later
Geocoding docs
Request
curl "https://api.mapricot.com/v1/search?q=128+SW+3rd+Ave,+Portland&limit=1" \
  -H "Authorization: Bearer $MAPRICOT_KEY"
Response
{  "attribution": [    {      "source": "openaddresses",      "text": "OpenAddresses",      "url": "https://openaddresses.io"    }  ],  "results": [    {      "id": "mp_b3BlbmFkZHJlc3NlczphZGRyZXNzOnVzL29yL211bHRub21haDpkZjdlYzM3YWJiYTJiNWM0",      "type": "address",      "name": "128 SW 3rd Avenue",      "label": "128 SW 3rd Avenue, Portland, OR, USA",      "lat": 45.521736,      "lon": -122.673276,      "address": {        "houseNumber": "128",        "street": "SW 3rd Avenue",        "postalCode": "97204",        "locality": "Portland",        "region": "Oregon",        "regionCode": "OR",        "country": "United States",        "countryCode": "US"      },      "source": "openaddresses"    }  ]}

Data sources

Addresses and places come from OpenAddresses, OpenStreetMap, Overture, Who's On First, and GeoNames, indexed together in Pelias. Each response lists the credits for the sources in its results, so you know what to show.

Other APIs

One account and one API key cover every Mapricot API, and the free allowance is shared between them.

Start with 250,000 free requests

Sign in with your email, create an API key, and make your first request in a few minutes. No credit card required.