-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Exact points routing #1473
Comments
You could use the locate() API (see https://github.com/Project-OSRM/osrm-backend/wiki/Server-api#service-locate) to first check if your coordinates matches osm nodes. If they do use the normal viaroute() API. |
Hi Emil, In fact, in my osm file, I have a node with these coordinates : 48.5781129,-3.8326438. This node is the first point of a way tagged highway=motorway_link When I do a locate on this coordinates, I obtain 48.578114, -3.832643. These coordinates do not correspond to any node contained in my osm. It looks like a phantom node created by OSRM. Is there a way to avoid OSRM to create such phantom nodes ? We would like OSRM just to follow the ways with the node of the osm file … Thanks for your help
|
On 5/14/2015 4:10 AM, Emil Tin wrote:
I believe that the user points are projected onto an edge to create a The locate API will return the location of the virtual node what may be Unless I'm totally off base on how this works in OSRM, I do not think -Steve |
Hi Steve, Thanks for your response. It ’s too bad we can’t avoid creation of virtual nodes … routing could be strictly exact if it was possible. Thanks again
|
I though locate returns the nearest osm node (it seem to say so in the wiki) but I could be wrong. |
Yes, you are right. boost::program_options::value(&max_locations_distance_table)->default_value(100), What do you think ?
|
ok, good to know. I was always a little confused about locate and nearest and this clears that up. Thanks. |
The locate service is gone by now as it would have required great effort in the static rtree code. |
Hi,
Is there a way to do a routing (car profile) from exact coordinates to exact coordinates (with no phantom nodes) ? In other words, can osrm calculate a route strictly from point A to Point B. If coordinates of point A and point B are not those of existing nodes then we would like OSRM not to give us a route.
Is there a way to do that ? (we already try with the z parameter but no effect. So I guess it has to be modified in the code).
Thanks for any help
The text was updated successfully, but these errors were encountered: