Reverse Geocoding (convert coordinates to an address or place):
Send a request to the /reverse endpoint with both lat and lon parameters:
https://geocode.maps.co/reverse?lat=40.7558017&lon=-73.9787414&api_key=YOUR_SECRET_API_KEY
Forward Geocoding (convert an address to coordinates):
To perform a free-form address search, pass the address as the q parameter to the /search endpoint:
https://geocode.maps.co/search?q=555+5th+Ave+New+York+NY+10017+US&api_key=YOUR_SECRET_API_KEY
Example search by name:
https://geocode.maps.co/search?q=Statue+of+Liberty+NY+US&api_key=YOUR_SECRET_API_KEY
You can also use structured search parameters instead of a free-form query:
street=<housenumber> <streetname>city=<city>county=<county>state=<state>country=<country>postalcode=<postalcode>
Example structured query:
https://geocode.maps.co/search?street=555+5th+Ave&city=New+York&state=NY&postalcode=10017&country=US&api_key=YOUR_SECRET_API_KEY
For a complete list of parameters, see the API Endpoint Reference.
Note: API responses are returned in JSON format by default. To request another format, append &format={format} — valid values include xml, json, jsonv2, geojson, and geocodejson.
You may also send your API key in an HTTP header: Authorization: Bearer YOUR_SECRET_API_KEY.