Skip to content

Improve CountryRule interface #2592

Open

Description

@otbutz

Probably a good idea to gather the discussions from various issues and pull requests in a single ticket.

Previous discussions:

Open questions:

Activity

  1. otbutz commented on Oct 7, 2022

    @otbutz
    ContributorAuthor

    @easbar should we incorporate #2637 into the maxspeed resolution?

    Looking at the OSM wiki this would be enough to properly resolve speedlimits.

  2. easbar commented on Oct 10, 2022

    @easbar
    Member

    Yes, the urban_density and country encoded values should be used to determine the maxspeed. I think we just did not decide how to do this exactly yet. In this branch I tried calling the Kotlin lib that extracts the maxspeed from the json file that is created from the wiki table: https://github.com/graphhopper/graphhopper/compare/default_legal_speeds, but maybe we could also 'just' put this into the country rules.

  3. cosmin-petrescu commented on Nov 10, 2022

    @cosmin-petrescu
    Contributor

    Based on osm-legal-default-speeds we developed our own library for legal max speed limits.

    Beside the retrieving the maxspeed.* tags for legal speeds, this library is able to calculate the max speed for a specific vehicle type at a specific GPS location and time.

    We are planning to use this along with GH, in order to have more accurate speed limits, but if you like you could incorporate it here.

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