All docsPlaygroundGeocoding API

Geocoding API

The Geocoding API allows you to search for addresses and places by name or coordinates.

To generate a Geocoding API request, search for an address like 30 Rockefeller Plaza, a place like Orlando, or numerical coordinates in longitude,latitude format like -122.478779, 37.821385. For improved results, tune your search settings with optional parameters like proximity, language, and country. Use the types parameter filter to restrict returned features to a desired place type.

To generate a reverse geocode with the Geocoding API, click anywhere on the map.

Parameters
from your account page
Optional parameters
bias around location
response text language
Select languages
filter by country
Select countries
filter by feature types
Select types
number of items to return
https://api.mapbox.com/geocoding/v5/mapbox.places/{search_text}.json
You haven't made a query yet. Type in the search box or click on any point on the map to generate a query.