We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 356c46e commit d69c421Copy full SHA for d69c421
lib/scenario-editor/utils/valhalla.js
@@ -261,7 +261,12 @@ export function routeWithGraphHopper (
261
key: graphHopperKey,
262
vehicle: 'car',
263
debug: true,
264
- type: 'json'
+ type: 'json',
265
+ profile: ''
266
+ }
267
+ if (snapToOption === 'RAIL') {
268
+ delete params.vehicle // vehicle is not supported in current open rail router version
269
+ params.profile = 'all_tracks' // this can be changed to return better results if needed
270
}
271
const locations = points.map(p => (`point=${p.lat},${p.lng}`)).join('&')
272
// Avoiding motorways requires a POST request with a formatted body
0 commit comments