Skip to content

How are roads classified as 'Urban' or 'Rural' #6626

@basimexe

Description

@basimexe

Hi,
I'm currently OSRM's car profile referring to #6002 I understand the precedence of speed. There is a road in Denmark whose tags should be:

  • highway=unclassified
  • maxspeed=80
  • surface=asphalt

I have set the speed of unclassified type to 72, but as this road is in a rural area, I have set max speed of rural as 50 in:

maxspeed_table_default = {
      urban = 50,
      rural = 50,
      trunk = 110,
      motorway = 130
    },
  • Calculating the speed between two points on the said road I get 72.
  • I don't understand how OSRM is classifying a road as Urban or Rural. If the said road is in a rural area shouldn't the speed be overridden by 50?
  • How does Wayhandlers.maxspeed actually work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions