You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A nice addition for instructions would be to use the destination tag. This could be especially handy for _link roads, where we could create instructions like: take exit, following signs to "Berlin". One example would be this link that misses the name tag, but has a ref.
The question is, how to store the data.
Probably the easiest solution would be to store this in the name field. This was discussed in the topic about adding different languages for the name tag (couldn't find the issue, sorry :)).
I could implement this, if we can decide on a way to store this.
This feels wrong. Let us first find a better way of storing this and if this turns out to be too complex we can still use the name string.
Ok, what do you propose?
Should we use something like NameIndex, but call it DestinationIndex? Or should we try to extend the NameIndex to store multiple values, like different languages and different purposes like destination?
Creating a second index feels a bit like an overkill, but the implementation would be straight forward as we can reuse a lot of existing code from the NameIndex.
Creating a more flexible storing solution would be probably the best, but how would we do this?
We would need a more flexible key/value storage to store more complicated properties per edge.
Yes I know, that's why I am asking. However, at this point I don't have a good proposal. Easy solutions like serializing key/value pairs as JSON come to my mind, but this might be too slow. If we only use the name and the other stored properties for creating instructions, this might be still ok, but we shouldn't store anything that we want to use during the route calculation.
That would be a great improvement, especially for complex junctions in which reading the destination signs can be quicker than looking for the good road following the instructions.
Edit: by destination, I mean the destination, destination:backward and destination:forward tags. The last two are variants of the first to allow destination modelling for two-way roads, so it would be a shame to only support the first tag.
Activity
devemux86 commentedon Jun 7, 2017
@boldtrn you probably mean #259 for multilingual graphs.
(where I propose the process we use for multilingual Mapsforge maps in writer / readers)
boldtrn commentedon Jun 7, 2017
@devemux86, yes exactly, thanks for linking it. I used the wrong search terms, I think :).
karussell commentedon Jun 9, 2017
This feels wrong. Let us first find a better way of storing this and if this turns out to be too complex we can still use the name string.
boldtrn commentedon Jun 12, 2017
Ok, what do you propose?
Should we use something like NameIndex, but call it DestinationIndex? Or should we try to extend the NameIndex to store multiple values, like different languages and different purposes like destination?
Creating a second index feels a bit like an overkill, but the implementation would be straight forward as we can reuse a lot of existing code from the NameIndex.
Creating a more flexible storing solution would be probably the best, but how would we do this?
karussell commentedon Jun 12, 2017
We would need a more flexible key/value storage to store more complicated properties per edge.
boldtrn commentedon Jun 12, 2017
Yes I know, that's why I am asking. However, at this point I don't have a good proposal. Easy solutions like serializing key/value pairs as JSON come to my mind, but this might be too slow. If we only use the name and the other stored properties for creating instructions, this might be still ok, but we shouldn't store anything that we want to use during the route calculation.
Penegal commentedon May 15, 2018
That would be a great improvement, especially for complex junctions in which reading the destination signs can be quicker than looking for the good road following the instructions.
Edit: by destination, I mean the
destination,destination:backwardanddestination:forwardtags. The last two are variants of the first to allow destination modelling for two-way roads, so it would be a shame to only support the first tag.removed unused method until proper implementation #1322 / #1086