Which delivery is next? Solving the traveling salesperson problem with the Mapbox Optimization API

when
May 28, 2020
 | 
(PST)
Type
John Branigan
Solutions Architect
Shivani Patel
Technical Account Manager
No items found.

Register for webinar

Register for webinar

Register now

About this episode

This is the third in a three-part series about Mapbox tools for logistics. Now that our local business has orders stacking up, they need to chain all of the deliveries into an efficient route. Learn how to put together an Optimization API request to get the best order for the set of deliveries. In this live-coding session, we’ll learn how to assemble an Optimization API request, work with the results, and plot the order on the map.

You’ll learn how to...

  • Formulate an Optimization API request
  • Extract the relevant information from the response
  • Plot the order of deliveries on the map

Code-along resources

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

2. Here is our Optimization API documentation.

3. Use this Location Helper tool for finding lat/long coordinates.

4. Check out these Optimization API use cases and demos: FedEx, Optym, Flower Delivery demo.

Q+A

Can a developer use their own geometries for service areas?
Yes, definitely.

What does the pricing look like for developers who want to use this in their apps for a fleet of drivers using those apps on mobile devices?
Generous free tier for developers. See our pricing page.

Is there a max of 12 stops? Are there alternate endpoints that allow for more stops? (Understanding that calculations become more and more time-consuming.)
Generally, Optimization API limits are 12 coordinates per request, 25 distributions per request, 300 requests per minute. Mapbox is willing to increase the number of stops, if necessary. Contact our team for a more in-depth conversation.

Optimization takes traffic data into account – how is traffic data coverage in Europe, Middle East, Africa, and Asia?
Yes, live traffic data factored into the Optimization API, and coverage is global.

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