Skip to content

Split street_name into street_name and street_ref #1322

Closed

Description

@jguthrie100

I've been doing some work on the openstreetmap project, specifically with the routing, and its been useful to have the street_name (i.e. "Mittelstrasse") separate from the street_ref (i.e. "E13").

At the moment, its all in one string "Mittelstrasse, E13", which is fine, but there are cases when its useful to have the two separate entities (i.e. in the case of openstreetmap, when giving the output some custom formatting. OSRM thankfully splits up the data so we can format it as we please)

I'd be happy to write a pull request that splits up the data, but it would create quite a change for the output which would probably effect quite a lot of of applications using graphhopper, so just wanted to check here first!

Activity

  1. devemux86 commented on Mar 30, 2018

    @devemux86
    Contributor

    Probably mean EncodingManager.applyWayTags?

  2. karussell commented on Apr 10, 2018

    @karussell
    Member

    Yes, we need to split this. This request is very similar to #259 from the storage perspective. Also #1086 should be thought of.

    How we migrate existing users is also interesting. On the Java side we could use a deprecation notice on getName but for the json we probably have to keep it longer and use other properties to have it splitted.

  3. karussell commented on Sep 19, 2019

    @karussell
    Member

    There is some work going on to make the name index more flexible that would allow storing the ref separate and a lot more (destination tag, road name translation, ...)

    https://github.com/graphhopper/graphhopper/commits/string_index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions