perliedman / lrm-graphhopper

Support for GraphHopper in Leaflet Routing Machine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

urlParameters with diffrent vehicle types

wrunkel opened this issue · comments

Hey there,

first of all great plugin.

I am currently trying to add different vehicle options (car, bike, foot, etc.) to my request, and i have an issue, that the 'urlParameters' are not added to the request.

If I set the urlParameters => vehicle: 'foot'

L.Routing.control({ waypoints: [ L.latLng(start_lat, start_lng), L.latLng(destination_lat, destination_lng) ], routeWhileDragging: true, router: new L.Routing.GraphHopper('### API KEY' , { urlParameters: { vehicle: 'foot' } }), }).addTo(mymap);

it doesn't alter the outcome.

If I inspect the http call I can see that no parameters are added to the request :-(

I read already tough all other issues and couldn't find a solution.

just figured it out myself: i loaded a deprecated version of the plugin updated it and everything works :-)