Replies: 2 comments 5 replies
-
Currently we can't. Every separate speed will take up 7 bits and that's very expensive for us. So we only have normal Running one instance per profile seems a bit too much, but it's totally possible. With some code patches, you could turn the current |
Beta Was this translation helpful? Give feedback.
-
is this a vanity metric you want to report back in the response or is it the actual limit needed to be used during the path calculation? maybe im naive but I wonder what examples of this look like? differentiating between a truck speed and passenger vehicle speeds is the most salient example in real life that I know of, and even that is not so reliably tagged in osm. reading the wiki https://wiki.openstreetmap.org/wiki/Key:maxspeed:type it also seemed that this tag doesn't tell you another speed for another mode it just tells you how the speed is governed on a particular road. to me this sounds like an enumeration not a speed with a mode. im not even sure what one would do with the enumeration value if one did store them in valhalla. the concrete example the wiki gives is pretty useless. it does seem though that in some cases when no regular maxspeed tag is given the enum could be used to look up the current legal speed for that country. but to me this should be done at parsing time and become the maxspeed value in the tiles rather than be stored separately. anyway it's possible I didn't understand so apologies if that's the case. |
Beta Was this translation helpful? Give feedback.
-
Hello,
It appears that Valhalla can read truck speed limits by parsing
maxspeed:hgv
from the map.Can it do this for other vehicle types? For example, cars with trailers or buses (e.g.
maxspeed:bus
)It appears this isn't currently possible from a search through the code and related issues, but I'd like to check to be sure.
If not, do you have another recommended method for loading in legal speed limits? We could run one instance of Valhalla for every vehicle type, which in turn uses a map that has been post-processed to replace the maxspeed with the corresponding vehicle's maxspeed on each road. However this is far from being an elegant solution.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions