Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
To create an API Access Token, visit: https://account.mapbox.com/access-tokens/. Once you have created your account, you will receive a Default access token, indicating that your account is registered without any restrictions.
Integration Setup
Access the Mapbox integration in the integration section. Insert your API key and verify the status to ensure it's verified.
You can access Mapbox API inside Flow Builder -> Create Action Node -> Integrations -> Mapbox API
Actions:
There are three Actions, 1. Get Geocodes by Address, 2. Get Address by Geocodes, 3. Get Directions.
Get the Geocode by Address
You can obtain Geocodes by entering the address and country code.
Payload:
In the Received payload you will get the Geocodes path coordinates -> longitude and latitude.
{ "features": [ { "properties": { "feature_type": "address", "full_address": "110 Washington Street, Saint Francis, Kansas 67756, United States", "name": "110 Washington Street", "name_preferred": "110 Washington Street", "coordinates": { "longitude": -101.800868, "latitude": 39.77444, "accuracy": "rooftop", "routable_points": [...] // 1 items },
Get the Address by Geocode
You can obtain an address by entering the latitude and longitude coordinates.
Payload:
In the Payload, you will get the full_address, and context there you will get the address, street, postcode, place, district, region, and country.