Skip to content
API Reference

Geocoding API Reference

Try the API in your browser

Base URL

https://geocoder.maptoolkit.net

Endpoints

GET /reverse

Reverse geocoding — get address from coordinates

Returns the address at the given latitude and longitude.

ParameterInTypeRequiredDescription
latquerynumberYesLatitude of the location.
lonquerynumberYesLongitude of the location. Also accepted as lng.
callbackquerystringNoWraps the response in a JSONP callback function with this name.
languagequerystringNoLanguage for the result as an ISO 639-1 code. Default: de.
lngquerynumberNoAlias for lon.
polygonqueryintegerNoSet to 1 to include a GeoJSON polygon outline in the result. Default: 0. One of: 0, 1.
StatusDescription
200Address at the given coordinates.
400

Bad request or upstream geocoding error.

General errors

  • Upstream Nominatim error message forwarded as-is.
  • Network or connection error message.

POST /reverse

Reverse geocoding — get address from coordinates (POST)

Same as GET but accepts parameters in the request body.

StatusDescription
200Address at the given coordinates.
400

Bad request or upstream geocoding error.

General errors

  • Upstream Nominatim error message forwarded as-is.
  • Network or connection error message.

Forward geocoding — search for places by name or address

Returns a ranked list of places matching the search term.

ParameterInTypeRequiredDescription
qquerystringYesAddress or place name to search for.
boundedqueryintegerNoSet to 1 to restrict results to the viewbox area. Default: 0. One of: 0, 1.
callbackquerystringNoWraps the response in a JSONP callback function with this name.
countrycodesquerystringNoLimits results to the specified countries as comma-separated ISO 3166-1 alpha-2 codes.
languagequerystringNoLanguage for result names as an ISO 639-1 code. Default: de.
limitqueryintegerNoMaximum number of results to return. Default: 10.
polygonqueryintegerNoSet to 1 to include a GeoJSON polygon outline for each result. Default: 0. One of: 0, 1.
viewboxquerystringNoPreferred bounding box for results in minLng,minLat,maxLng,maxLat format. Default: -180,-85,180,85.
StatusDescription
200Array of geocoding results ordered by relevance.
400

Bad request or upstream geocoding error.

General errors

  • Upstream Nominatim error message forwarded as-is.
  • Network or connection error message.

POST /search

Forward geocoding — search for places by name or address (POST)

Same as GET but accepts parameters in the request body.

StatusDescription
200Array of geocoding results ordered by relevance.
400

Bad request or upstream geocoding error.

General errors

  • Upstream Nominatim error message forwarded as-is.
  • Network or connection error message.

Try it

The console below sends live requests against the endpoints above. You can browse it without an API key; Execute needs one, because every endpoint requires the api_key query parameter and returns 403 without it. Use Authorize to add your key. See First Steps if you do not have one yet.