Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wapoints ("Number of elements in hints size 1 does not match coordinate size 2") #594

Open
H0MERS opened this issue May 31, 2020 · 2 comments

Comments

@H0MERS
Copy link

H0MERS commented May 31, 2020

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 )

  ]
}).addTo(this.map);

Hope you can help me.

Thanks very much

@maelfosso
Copy link

I am facing the same issue
Screenshot at 2020-05-31 15:43:46

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
Screenshot at 2020-05-31 15:45:01

Now, what does that parameters means and how to set it up?

@H0MERS
Copy link
Author

H0MERS commented Jun 1, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants