Skip to content

Instructions/Name: Parse destination tag #1086

Closed

Description

@boldtrn

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.

Activity

  1. devemux86 commented on Jun 7, 2017

    @devemux86
    Contributor

    @boldtrn you probably mean #259 for multilingual graphs.

    (where I propose the process we use for multilingual Mapsforge maps in writer / readers)

  2. boldtrn commented on Jun 7, 2017

    @boldtrn
    MemberAuthor

    @devemux86, yes exactly, thanks for linking it. I used the wrong search terms, I think :).

  3. karussell commented on Jun 9, 2017

    @karussell
    Member

    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.

  4. boldtrn commented on Jun 12, 2017

    @boldtrn
    MemberAuthor

    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?

  5. karussell commented on Jun 12, 2017

    @karussell
    Member

    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.

  6. boldtrn commented on Jun 12, 2017

    @boldtrn
    MemberAuthor

    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.

  7. self-assigned this
    on Jul 31, 2017
  8. Penegal commented on May 15, 2018

    @Penegal

    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.

  9. added this to the 6.0 milestone on Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions