The service accepts a list of locations and generates a map of the most efficient sequence and route for reaching all of them, either in a roundtrip returning to the starting place or one way with first and last stops designated. It helps delivery, transit, or other routing functions to reach required stops as efficiently as possible, avoiding unnecessary backtracking.
API methods accept the route type (roundtrip or one way) and the starting and ending locations, specified as latitude and longitude, along with each of the stops that must be included. The service returns the locations specified listed in the optimal sequence.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.