Building requests for the Geocode Autocomplete API
Before you can start using the API, you will need to obtain the authentication token.
The following headers will be required, where the word token must be replaced by the token obtained in the authentication process:
--header 'Content-Type: application/json' \ --header 'Authorization: Bearer token'
As we’ll see below, the Geocode Autocomplete API has 4 different endpoints for each type of use:
- Geocode: To return coordinates from an address.
- Reverse Geocode: To return address from coordinates.
- Suggestions: Autocomplete to return suggestions from addresses or part of them.
- Multi Geocode: To return the coordinates of more than one address.