File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ NodeJS bindings for or-tools Travelling Salesman Problem (TSP) and Vehicle Routi
77See [ API.md] ( API.md ) for documentation.
88
99Solving TSP and VRP problems always starts out with having a ` m x m ` cost matrix for all pairwise routes between all locations.
10- We recommend using the [ Mapbox Directions Matrix] ( https://www.mapbox.com/api-documentation/#directions- matrix ) service when optimizing travel times.
10+ We recommend using the [ Mapbox Directions Matrix] ( https://www.mapbox.com/api-documentation/navigation/# matrix ) service when optimizing travel times.
1111
1212[ ![ Example] ( https://raw.githubusercontent.com/mapbox/node-or-tools/master/example/solution.png?token=AAgLiX1m1BDa8ll0Lsk0xc6fz0RgQA1Lks5Y-VmAwA )] ( https://github.com/mapbox/node-or-tools/blob/master/example/solution.geojson )
1313
Original file line number Diff line number Diff line change 55 export MAPBOX_ACCESS_TOKEN='YourAccessToken'
66 node index
77
8- - Fetches a distance table using the [ Mapbox Directions Matrix] ( https://www.mapbox.com/api-documentation/#directions- matrix ) API
8+ - Fetches a distance table using the [ Mapbox Directions Matrix] ( https://www.mapbox.com/api-documentation/navigation/# matrix ) API
99- Runs the VRP solver with some dummy locations and constraints (see ` index.js ` for details)
10- - Fetches route geometries using the [ Mapbox Directions Route] ( https://www.mapbox.com/api-documentation/#directions ) API
10+ - Fetches route geometries using the [ Mapbox Directions Route] ( https://www.mapbox.com/api-documentation/navigation/ #directions ) API
1111
1212[ ![ Example] ( https://raw.githubusercontent.com/mapbox/node-or-tools/master/example/solution.png?token=AAgLiX1m1BDa8ll0Lsk0xc6fz0RgQA1Lks5Y-VmAwA )] ( https://github.com/mapbox/node-or-tools/blob/master/example/solution.geojson )
Original file line number Diff line number Diff line change 1010// - and `null` if a route can not be found between i and j
1111//
1212// https://github.com/mapbox/mapbox-sdk-js/blob/master/API.md#getdistances
13- // https://www.mapbox.com/api-documentation/#directions- matrix
14- // https://www.mapbox.com/api-documentation/#directions
13+ // https://www.mapbox.com/api-documentation/navigation/# matrix
14+ // https://www.mapbox.com/api-documentation/navigation/ #directions
1515//
1616// Example output solution:
1717// http://bl.ocks.org/d/d0e91bc26f437aba812c554f7a5b1c2b
You can’t perform that action at this time.
0 commit comments