Skip to content

Commit 83ccb52

Browse files
authored
Merge pull request #64 from mapbox/update-apidoc-urls
Updates URLs for API documentation
2 parents f74cc61 + 495b69c commit 83ccb52

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ NodeJS bindings for or-tools Travelling Salesman Problem (TSP) and Vehicle Routi
77
See [API.md](API.md) for documentation.
88

99
Solving 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

example/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
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)

example/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
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

0 commit comments

Comments
 (0)