maps icon indicating copy to clipboard operation
maps copied to clipboard

Routing error: Number of elements in hints size 1 does not match coordinate size 2

Open DragonQ opened this issue 5 years ago • 2 comments

I have the Maps app installed in my Nextcloud instance, and have set the OSRM URLs in Advanced Settings to https://router.project-osrm.org/route/v1 to test routing functionality. Every time I try to plan a route by entering the source and destination addresses and pressing Enter, it shows this error:

Routing error: Number of elements in hints size 1 does not match coordinate size 2

Adding a third destination changes the error to:

Routing error: Number of elements in hints size 1 does not match coordinate size 3

This could be a configuration issue but I can't find much documentation about how to get routing working in Nextcloud Maps and I can't see any other relevant settings to play with.

DragonQ avatar May 31 '20 15:05 DragonQ

I'm also having this issue. For some reason this app is formatting the URL as something like http://[base OSRM URL]/car/13.488062884599568,52.366528349999996;6.921776,50.9478473?overview=false&alternatives=true&steps=true&hints=, but the hints parameter is just left blank and this is causing an error. Is there any way of changing the base URL used by Maps to request directions from the OSRM server?

Also, I'm not able to see this error logged in the logging section of the administration/settings page of the server. The only place where any information apart from "undefined error" is in the browser JS console, where it simply states that the HTTP request failed. I had to use curl to see the raw error message from the OSRM server.

javathunderman avatar Aug 15 '22 00:08 javathunderman

I had the same issue as @javathunderman

The Maps app generates a URL like "/route/v1/car/8.546247482299806,47.31735575851228;8.57860565185547,47.329922828804364?overview=false&alternatives=true&steps=true&hints=&" and so OSRM returns ""Query string malformed close to position 136" if i remove the "&hints=&" and check the URL directly in OSRM, i receive an expected answer.

Beleggrodion avatar Aug 17 '23 12:08 Beleggrodion