Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/scenario-editor/utils/valhalla.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export async function getSegment (
/**
* Call GraphHopper routing service with lat/lng coordinates.
*
* Example URL: https://graphhopper.com/api/1/route?point=49.932707,11.588051&point=50.3404,11.64705&vehicle=car&debug=true&&type=json
* Example URL: https://graphhopper.com/api/1/route?point=49.932707,11.588051&point=50.3404,11.64705&profile=car&debug=true&&type=json
*/
export function routeWithGraphHopper (points: Array<LatLng>, avoidMotorways?: boolean): ?Promise<GraphHopperResponse> {
if (points.length < 2) {
Expand Down Expand Up @@ -257,7 +257,7 @@ export function routeWithGraphHopper (points: Array<LatLng>, avoidMotorways?: bo

const params = {
key: graphHopperKey,
vehicle: 'car',
profile: 'car',
debug: true,
type: 'json'
}
Expand All @@ -277,7 +277,7 @@ export function routeWithGraphHopper (points: Array<LatLng>, avoidMotorways?: bo
},
debug: params.debug,
points: points.map(p => [p.lng, p.lat]),
profile: params.vehicle
profile: params.profile
}),
headers: {
'Content-Type': 'application/json'
Expand Down