Skip to content

fallback_speed wrong units #6584

@jjbringg

Description

@jjbringg

Issue

Hi, I believe that fallback speed is using the wrong units. Specifically, if I take the distance in meters from the response and divide by the duration in seconds from the response, I see that the actual speed used in m/s is 10 times the fallback_speed provided in the request.

Steps to reproduce

Please provide the steps required to reproduce your problem.

  • osrm-backend = 5.27.1
  • OSM extract that was processed = planet
  • Processing commands (e.g. CH vs MLD processing) = MLD
  • Server queries = /table/v1/car/-81.58123608830448,23.133062732807502;-81.75449525435954,24.565179382517456?annotations=duration,distance&fallback_speed=1.6

Note that the response specifies a distance of "159594.4" meters and a duration of "9974.6" seconds. And 159594.4/9974.6=16 m/s. It is off by a factor of 10 from what was specified in the request.

I tried in multiple locations, not just here, and I found this factor of 10 error consistently.

Specifications

Postman request to osrm instance running in docker.

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