Open H0MERS opened 4 years ago
I am facing the same issue
The problem come from the hints
request parameters.
When I remove it, I got this https://router.project-osrm.org/route/v1/driving/85.316,27.67;85.321,27.68?overview=false&alternatives=true&steps=true;
which works
Now, what does that parameters means and how to set it up?
Hello Mael,
That information is very helpful, however I am using the leaflet routing library and from that library it calls the url https://router.project-osrm.org/route/v1/driving/85.316,27.67;85.321,27.68?overview=false&alternatives=true&steps=true ; so I am abstracted inside waypoints, I don't know how the waypoints formulate that url. I was thinking that maybe there is a property inside the waypoint that I can ignore the hints. like this;
L.Routing.control({ waypoints: [ L.latLng(14.535084399999999,121.0724896085969 ), L.latLng(14.536184399999999,121.0523896085969 ), hint: false ] }).addTo(this.map);
And by the way, bellow is my existing code. you will see that I am using the leaflet routing library. I wish you could help me to ignore the hints
[image: image.png]
thank you :)
On Sun, May 31, 2020 at 10:45 PM Mael FOSSO notifications@github.com wrote:
I am facing the same issue [image: Screenshot at 2020-05-31 15:43:46] https://user-images.githubusercontent.com/8848104/83355162-8a88f300-a355-11ea-8b30-4cf0f1041d29.png
The problem come from the hints request parameters. When I remove it, I got this https://router.project-osrm.org/route/v1/driving/85.316,27.67;85.321,27.68?overview=false&alternatives=true&steps=true ; which works [image: Screenshot at 2020-05-31 15:45:01] https://user-images.githubusercontent.com/8848104/83355185-b4421a00-a355-11ea-82ea-f479af44d9f2.png
Now, what does that parameters means and how to set it up?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/perliedman/leaflet-routing-machine/issues/594#issuecomment-636480865, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCJXT2RWWA53XTSXYADRXTRUJURNANCNFSM4NPCFUDQ .
Hello guys,
I find leaflet very helpful into my project and I am using waypoints into my current project. Before it is working but now I'm having this kind of problem ("Number of elements in hints size 1 does not match coordinate size 2")
Bellow is my code;
L.Routing.control({ waypoints: [ L.latLng(14.535084399999999,121.0724896085969 ), L.latLng(14.536184399999999,121.0523896085969 )
Hope you can help me.
Thanks very much