No items found.

The fastest way from here to there: Unpacking the Mapbox Directions API

when
May 21, 2020
 | 
10:00 am
 
(PST)
Type
May 21, 2020
Duration: 
41:36
John Branigan
Solutions Architect
Kieran McCann
Account Manager
No items found.

Register for webinar

About this episode

This is the second in a three-part series about Mapbox tools for logistics. Learn how to work with the results of a Mapbox Directions API request. Follow along with our hypothetical business as they learn how to send their delivery driver out with all the information they need to get to the drop-off. In this live-coding session, we’ll unpack the response, draw the route and turns on the map, and learn how to access and work with the turn-by-turn instructions. 

You’ll learn how to...

  • Configure and send a Directions API request
  • Tune the API response using different request parameters
  • Get the information your users need from the API response

Code-along resources

1. Here's the gist from John – paste in your token in to get it working.

2. Check out our Directions API documentation.

3. The API supports these languages for spoken directions.

4. Learn more about automatic rerouting.

5. Learn the difference between steps and legs.

6. This is the Mapbox Asset Tracking solution we mention.

Additional Q+A

Are the approaches relevant to walking mode?
Yes, 'approaches' can be used with both walking AND bicycle modes so you can create a great user experience for cyclists and wheelchair users or people walking with strollers.

Does ‘driving side’ work in both left and right-hand drive countries?
Yes, 'approaches' can be set to work in either left and right-side drive countries.

Are one-way streets an issue for walking directions?
No, "one-way streets" is only a restriction that applies to driving. Our routing profile allows walking against one-way driving flows.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Block quote

Ordered list

  1. Item 1
  2. Item 2
  3. Item 3

Unordered list

  • Item A
  • Item B
  • Item C

Text link

Bold text

Emphasis

Superscript

Subscript