Can we tweak pathfinding with weights?
Can we tweak pathfinding with weights?
Tl;dr: I want a "fewer traffic lights, more dedicated bike paths" option.
I know enough about programming and math to assume there's some form of (weighted) graph underlying the routing function (is this straight up openstreetmaps or some conversion in between?), in which case it's not stupid to assume this can be done IF the info is in openstreetmaps.
So what I'd like is (pointers to where I'm likely to find the info are also appreciated) :
- what information is available in openstreetmaps that would be helpful for this?
- how does this info get into CoMaps?
- how is this info used in the routing?
- is this a feature other people want and/or does CoMaps accept contributions in code (if it seems feasible)?
Thanks in advance!
The data is based on osm, but a lot of it is removed to reduce map download size. Traffic lights appear to still be there tho. There is already the "routing options" menu where you can set "avoid unpaved roads" for example, so it seems like the routing algorithm they use already supports conditions like this.
Did you check the old (organicmaps) and new git repositories for existing issues about this? That might answer your last question.
The repo for comaps is linked in the community description.
The overall project: https://codeberg.org/comaps
The app: https://codeberg.org/comaps/comaps
It says there that they accept code contributions.