Use the instructions below for both forward and reverse geocoding. Please remember to replace api_key with your actual API key.
Forward Geocoding (convert address to coordinates):
To "free form" search for an address, you can pass the address string using the q
parameter to the /search
endpoint, e.g.:
https://geocode.maps.co/search?q=555+5th+Ave+New+York+NY+10017+US&api_key=api_key
Or you can search by name, e.g. for the Statue of Liberty:
https://geocode.maps.co/search?q=Statue+of+Liberty+NY+US&api_key=api_key
However, you can also reverse geocode by providing the following parameters:
street=<housenumber> <streetname>
city=<city>
county=<county>
state=<state>
country=<country>
postalcode=<postalcode>
For example:
Reverse Geocoding (convert coordinates to address / place):
To reverse geocode, provide both the lat
and lon
parameters to the /reverse
endpoint, e.g:
https://geocode.maps.co/reverse?lat=40.7558017&lon=-73.9787414&api_key=api_key
NOTE: Our API endpoints return JSON data by default. To return data in a different format, you can append "&format={format}", where {format} is one of the following: xml, json, jsonv2, geojson, geocodejson. Please remember to substitute {address}, {latitude} and {longitude} in the URLs above with your URL-endoded values.