Skip to content

Instructions with very high average speed #949

@wpetter

Description

@wpetter

I have been finding some strage speed issues in the instructions.

It is possible to get an average speed of over 200 km/h when the speed limit is 50 km/h. This seems to predominantly happen in the beginning of end of the route.

Example:

curl "http://router.project-osrm.org/viaroute?loc=59.32708,18.07389&loc=58.61029,16.13849&instructions=true&alt=false" 

Returns the following (abbreviated) route instructions:

"route_instructions": [
    [
      "10",
      "Skeppsbron",
      844,
      0,
      14,
      "844m",
      "SE",
      150
    ],
    [
      "1",
      "Södermalmstorg",
      101,
      18,
      13,
      "101m",
      "W",
      258
    ],
//Removed intermediate instructions
    [
      "11-1",
      "De Geersgatan",
      1169,
      1017,
      116,
      "1169m",
      "SW",
      229
    ],
    [
      "3",
      "Erik Exings gata",
      391,
      1032,
      4,
      "391m",
      "NW",
      325
    ],
    [
      "15",
      "",
      0,
      1037,
      0,
      "",
      "N",
      0.0
    ]
  ]

The first instruction "Skeppsbron" is for 844 m in 14 s which translates to an average speed of 217 km/h. Speed limit of "Skeppsbron" is 50 km/h.

The second to last instruction "Erik Exings gata" is for 391 m in 4 s which is 352 km/h.

The intermediate instructions seem to have more sensible data.

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