Fixed the order of lon/lat in osrm.route() example
This commit is contained in:
parent
83588fd00f
commit
5c9a7a0152
@ -61,7 +61,7 @@ Returns the fastest route between two or more coordinates while visiting the way
|
||||
|
||||
```javascript
|
||||
var osrm = new OSRM("berlin-latest.osrm");
|
||||
osrm.route({coordinates: [[52.519930,13.438640], [52.513191,13.415852]]}, function(err, result) {
|
||||
osrm.route({coordinates: [[13.438640,52.519930], [13.415852,52.513191]]}, function(err, result) {
|
||||
if(err) throw err;
|
||||
console.log(result.waypoints); // array of Waypoint objects representing all waypoints in order
|
||||
console.log(result.routes); // array of Route objects ordered by descending recommendation rank
|
||||
|
Loading…
Reference in New Issue
Block a user