-
Notifications
You must be signed in to change notification settings - Fork 31
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
Error: InvalidQuery Query string malformed close to position 6249 #52
Comments
Hello, |
Hi, Thanks for your reply. Don't hestite to conatct me, in case you need further details: the data (from RStudio)
The relevant code sequence:
We use R and a local version of OSRM running on Windows (API5). |
Ok I see it. osrm::osrmIsochrone(loc = c(lngs[i], lats[i]), breaks = breaks, res = res) Sorry for the breaking change, I should have added the new param at the end of the list... |
Still the same issue in
results in
|
Hi, it seems, this was not the solution. Can you reproduce the behaviour with my data?
|
Using the demo server and the coordinates you sent me I get: library(osrm)
#> Data: (c) OpenStreetMap contributors, ODbL 1.0 - http://www.openstreetmap.org/copyright
#> Routing: OSRM - http://project-osrm.org/
library(sf)
#> Linking to GEOS 3.7.1, GDAL 2.4.0, PROJ 5.2.0
res <- 50
breaks <- seq(90, 120, 30)
loc <- c(8.599465297, 46.81236378)
iso <- osrmIsochrone(loc = loc, breaks = breaks,
res = res, returnclass = "sf")
plot(st_geometry(iso), col = c("lightblue1", "lightblue3"))
points(loc[1], loc[2], pch = 20, col = "red") Created on 2019-10-04 by the reprex package (v0.3.0) But I don't know what's in the "LagerErstfeld.csv" file... |
Ok, so it is definitely related to the local OSRM:
Everything works!
From our local API (Which is working, this is the command from
I hope that helps! I already checked, whether the OSRM API interfaced changed since 5.10, but I couldn't find anything. |
So that's it, I try to keep the osrm package in line with the latest version of OSRM served via Docker (name: latest in images on Docker Cloud, https://github.com/Project-OSRM/osrm-backend#using-docker). The version announced is currently 5.22.0. In version 5.18.0 (https://github.com/Project-OSRM/osrm-backend/blob/master/CHANGELOG.md#5180) a new param I do not plan to modify the package to work with older version of OSRM (v.5.18.0 is from 10 May 2018, v5.10.0 is from 7 Aug 2017). The strategy with My suggestion here would be to update OSRM to the latest version (and I guess it could be bothersome in Window$ OS...). Or to use an old version of |
Thanks again for your great support! I understand and I consider this issue as solved. |
All right |
After an update from
to
we receive the following error:
Data: (c) OpenStreetMap contributors, ODbL 1.0 - http://www.openstreetmap.org/copyright
Routing: OSRM - http://project-osrm.org/
Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3
The OSRM server returned an error:
Error: InvalidQuery
Query string malformed close to position 6249
Do you have any idea? Our call (as before the update) is of the type
osrm::osrmIsochrone(c(lngs[i], lats[i]), breaks, res)
The same code runs through without any error.
Please let me know, if you need anything else. Thanks a lot!
The text was updated successfully, but these errors were encountered: