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 openstreetmapYou send
q=1600 Pennsylvania Avenue NW, Washington
You get
1600 Pennsylvania Avenue NW, Washington, DC, USA
38.897675, -77.036547
address openaddressesYou send
q=100 Queen St W, Toronto
You get
100 Queen Street West, Toronto, ON, Canada
43.65313, -79.383234
address openstreetmapYou send
q=Avenida Paulista 1578, Sao Paulo
You get
Avenida Paulista 1578, São Paulo, Brazil
-23.56152, -46.656165
address openaddressesYou send
q=Unter den Linden 77, Berlin
You get
Unter Den Linden 77, Berlin, Germany
52.516109, 13.380014
address openaddressesYou send
q=100 Long Street, Cape Town
You get
100 Long Street, Cape Town, WC, South Africa
-33.92272, 18.418592
address openaddressesYou send
q=Tokyo Tower
You get
Tokyo Tower, Minato, Tokyo, Japan
35.658458, 139.745435
venue openstreetmapYou send
q=Sydney Opera House
You get
Sydney Opera House, Sydney, NSW, Australia
-33.857841, 151.214882
venue openstreetmapWhat 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.
-
Pioneer Courthouse Square, Portland720 Sw Broadway, Portland, OR, USA address10 ft
-
Grand Canyon South Rim15 Bright Angel Trail, Tusayan, AZ, USA address250 ft
-
Great Basin Desert, NevadaLander County, NV, USA county35 mi
-
Andes near Machu PicchuUrubamba, CS, Peru county18 mi
-
Antarctic plateauAntarctica country232 mi
-
Middle of the PacificNo results: an empty listNone
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.
focusranks results near a point firstcountrylimits results to up to 10 countrieslangpicks the language of names and labels- Every result has an ID you can store and look up later
curl "https://api.mapricot.com/v1/search?q=128+SW+3rd+Ave,+Portland&limit=1" \
-H "Authorization: Bearer $MAPRICOT_KEY"{ "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.
- OpenStreetMap
- Overture Maps
- OpenAddresses
- Who's On First
- GeoNames
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.