Open manuprendlair opened 5 years ago
I just speak with Algorithm Man ;-) , and perhaps we have an idea about why it fail: The destination point is between a way and an highway, but more near the highway. So the projection on graph will be on the highway but ... the router fail because the constraint : you could take the highway only on in highway entrance !
To test this idea, I change a little the destination coordinate like the point is more near the way than the highway, and the router work fine!
So, what you think about that?
There is an option somewhere to allow resolving on segments that are marked as 'canstop=false' but I'm not sure anymore where. If I have time today, I'll try and search for it, feel free to ping me if I forget.
You can also search the code and try to figure it out. It's probably somewhere in the Router class itself.
I try a search in the code for canstop. I found some references in some .lua files, one of them is: ...\src\Itinero\Osm\Vehicles\car.lua
As I am newbies on Itinero, could you explain the relation between the problem I got and canstop ?
I assumed you want to resolve only to location where a vehicle is allowed to stop but you are correct, this issue is not related. I think this route should work.
What version of Itinero do you have installed when testing this?
Hello All,
The router fail with this coordinates origine : 43.48291899 5.38124321 Dest : 43.51054304 5.42063052 Here my code:
I call it with Profile v_profile = Vehicle.Car.Fastest(); The routerDB was made from france-latest.osm.pbf (29/01/2019) that I found here: https://download.geofabrik.de/europe/france.html
Here my code to gerate the routerDB:
So Is there something wrong in my code or is it a bug?
Emmanuel, from France.