Skip to content

Commit a217ccc

Browse files
committed
fix(graphhopper): "profile" parameter
fixes #1399 https://docs.graphhopper.com/openapi/routing/getroute https://docs.graphhopper.com/openapi/map-data-and-routing-profiles/openstreetmap/standard-routing-profiles Signed-off-by: Ming Di Leom <43627182+curbengh@users.noreply.github.com>
1 parent efcdc82 commit a217ccc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/map/routing/RoutingMachine.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,16 +250,16 @@ export default {
250250
const options = {}
251251
if (type === 'graphhopperCar') {
252252
options.urlParameters = {
253-
// available ones : car, foot, bike, bike2, mtb, racingbike, motorcycle
254-
vehicle: 'car',
253+
// available ones : car, foot, bike, mtb, racingbike
254+
profile: 'car',
255255
}
256256
} else if (type === 'graphhopperBike') {
257257
options.urlParameters = {
258-
vehicle: 'bike',
258+
profile: 'bike',
259259
}
260260
} else if (type === 'graphhopperFoot') {
261261
options.urlParameters = {
262-
vehicle: 'foot',
262+
profile: 'foot',
263263
}
264264
}
265265
if (url) {

0 commit comments

Comments
 (0)