Closed OpenSourceForEver closed 3 years ago
You created a modified profile, but you kept the name the same. In that case OsmAnd might not know which one to use: the default one with the same name, or your modified profile.
I removed the unnecessary profiles above it and renamed the profile to "my public_transport". And that was all I did. Please try attached. PT-routing.zip Note that when creating a new profile, you now have to go back in the profile and:
I know I have to select "navigation type" I dit it with my routing file.
Your file do not work for me. I want to say it do not change duration of the route
I have tried to change routing.xml again and I think there has been a change in the code that has allowed me to set "maxspeed" as speed for buses. I have changed some parameters to generate more accurate route times but I would need to establish delays for traffic lights and speed bumps. Could someone change the code to achieve this?
The parameters that I have changed are:
if I could set a delay for traffic lights, crosswalks and speed bumps the calculated times for the routes would be much more accurate, since now the estimated times for public transport are imprecise.
I attach the routing.xml file so that if someone wants to, they can test the highest precision of these parameters. I have tested it on public transport in Spain thanks to the daily use of public transport and times provided by operators.
Bus speed is fixed with https://github.com/osmandapp/OsmAnd-resources/commit/ac60ba87739712abd7e0b2f33012049d62424b88
Need to change the following parameters:
I think there is another request about adding interval to PT routes - https://github.com/osmandapp/OsmAnd/issues/10000
What about adding a delay for traffic lights, traffic calming, crossings...? (exposed in this issue)
Need to change the following parameters:
- Set the value of the "interval" tag as boarding time.
- Ad a delay for traffic lights, crossings etc. so that they are taken into account just as they are taken into account on car routes.
- Increase "walkChangeRadius" value up to 600 (It would be advisable for towns/villages with little variety of public transport (especially small towns/villages).
Please create a separate issue but I guess it's not possible in a feasible future, the most important would be to introduce a tag like "interval_stop" that will be aligned with schedule. I think the simple PT tags not using GTFS:
That would allow to build approximately all routes for something more precise it will be better to use GTFS.
Related with https://github.com/osmandapp/Osmand/issues/8224
Here is my routing.xml I have changed "walkChangeRadius" and "maxTimeRoute".
I have tried to change time per stop depending on tags "bus=yes" "subway=yes" and "train =yes". I have also tried to change bus speed with a tg relation. I have also tried to establish a delay for traffic lights, crossings etc. so that they are taken into account just as they are taken into account on car routes.
Mod.xml.zip