Skip to content

Make SpatialRule more flexible #1427

Closed
Closed

Description

@boldtrn

After working with SpatialRules for some time I have seen a couple of issues with SpatialRules being not flexible enough.

For example SpatialRules have the method:

public double getMaxSpeed(String highwayTag, double _default)

There are cases where only the highwayTag is not enough to determine the maxSpeed of a country. One current example would be the new maxspeed rules in France, where the maxspeed depends on the number of lanes.

Therefore I propose to change the SpatialRule method signatures to:

public double getMaxSpeed(Readerway way, double _default)

This makes the handling a lot more flexible. The same applies to the method getAccessValue, which could include local differences. See for example #1408 for a good example.

So I would also like to change the method signature of getAccessValue to use the way instead of only the highway.

WDYT?

Activity

  1. added
    good first issue
    on Jul 27, 2018
  2. removed
    good first issue
    on Apr 2, 2022
  3. easbar commented on Apr 2, 2022

    @easbar
    Member

    This was fixed in #2353 or even before.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions