Geocoding API
The Mapbox Geocoding API allows you to perform forward and reverse geocoding operations.
Forward geocoding converts text into geographic coordinates. For example, forward geocoding turns the address 2 Lincoln Memorial Circle NW
into coordinate values of -77.050,38.889
.
Reverse geocoding converts geographic coordinates into a text description, for example, turning -77.050,38.889
into the address string 2 Lincoln Memorial Circle NW
.
A sample forward Geocoding API request looks like:
https://api.mapbox.com/search/geocode/v6/forward?q=Los%20Angeles&access_token=YOUR_MAPBOX_ACCESS_TOKEN
Related resources:
- Geocoding API documentation
- Getting started: Search
- Geocoding Playground
Was this page helpful?