Closed lol768 closed 5 years ago
Not all busses everywhere in all countries are always considered to be psvs but you can customize profiles. Adding psv in that array should do it I think:
https://github.com/itinero/routing/blob/develop/src/Itinero/Osm/Vehicles/bus.lua#L3
You can load any local vehicle profile like this:
var vehicle = DynamicVehicle.LoadFromStream(File.OpenRead("path/to/custom.lua"));
This way also seems to be tagged as bus=true
, too - if I'm reading the OSM site correctly. Surely buses should always be considered to be buses?
Yes :+1:
Feel free to do a pull-request to do the change to the bus profile.
Can confirm a local profile works, will open a new PR
Cheers @xivk
Here is a way: https://www.openstreetmap.org/way/134832729
Note that this street is clearly sign-posted as being available for buses to use and marked
psv=true
ANDbus=true
:Now consider that a bus (as well as e.g. a Taxi) is clearly a
psv
.Look at this simple code. I am a bus:
The following route is yielded:
Why am I not routed via the way I linked earlier?