added node_snap_tolerance set to 0 so that valhalla snaps to the same location as the osrm tests.
This commit is contained in:
parent
94dde6433a
commit
ebe213c0db
@ -77,14 +77,15 @@ module.exports = function () {
|
||||
if (this.osrmLoader.method === 'valhalla') {
|
||||
|
||||
var val_costing = 'auto';
|
||||
if (this.profile === 'bicycle')
|
||||
if (this.profile === 'bicycle') {
|
||||
val_costing = 'bicycle';
|
||||
else if (this.profile === 'foot')
|
||||
} else if (this.profile === 'foot') {
|
||||
val_costing = 'pedestrian';
|
||||
}
|
||||
|
||||
params = {
|
||||
json: JSON.stringify({
|
||||
locations: waypoints.map(w => {return{ lat: w.lat, lon: w.lon };}),
|
||||
locations: waypoints.map(w => {return{ lat: w.lat, lon: w.lon, node_snap_tolerance: 0};}),
|
||||
costing: val_costing,
|
||||
directions_options:{
|
||||
units:'miles'}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user