Skip to content

descrepency for duration in routing and table APIs #7306

Description

@DMadhuranga

Issue

With the table API I am getting 176.5 as the duration, but for the same coordinates I am getting 179.1 with routing API.

Steps to reproduce

Please provide the steps required to reproduce your problem.

  • osrm-backend version being used

[
{
"Id": "sha256:b8ba6f3593ae019abe0a0190027cf78583ff37046f4d1918846bd7ee3287b770",
"RepoTags": [
"ghcr.io/project-osrm/osrm-backend:latest"
],
"RepoDigests": [
"ghcr.io/project-osrm/osrm-backend@sha256:855614a38f464b0558a2ad6eaa7cb8c139f39887da9b38b485ce453c6e6e6124"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2022-10-14T20:33:31.210428447Z",
"Container": "",
"ContainerConfig": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": null,
"Cmd": null,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"5000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"bash"
],
"Image": "",
"Volumes": null,
"WorkingDir": "/opt",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 147975064,
"VirtualSize": 147975064,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/eb81801e4aa000de8048aa144730c44eabed66f863044e4f4306ed948438d212/diff:/var/lib/docker/overlay2/1fc23c3ab45184b7b073028474aba7c0136a9cf98c042ae757a7d351bed01fd0/diff:/var/lib/docker/overlay2/6055c5c199c67a402b09908654e9489fc8e5366123b47f8f1e52c94db97d98b1/diff:/var/lib/docker/overlay2/40930f98905ccd8f064cdf8818ae0e9546d5abd77695259f083ff88b133b6c7a/diff:/var/lib/docker/overlay2/45d282621b451a7e04194f739a1c8e18175a49d17acebf5d592904592750f43b/diff",
"MergedDir": "/var/lib/docker/overlay2/71aa8d12009b4ead726c024428014ba41cbd89e1c023d34d07b8fdf11254420e/merged",
"UpperDir": "/var/lib/docker/overlay2/71aa8d12009b4ead726c024428014ba41cbd89e1c023d34d07b8fdf11254420e/diff",
"WorkDir": "/var/lib/docker/overlay2/71aa8d12009b4ead726c024428014ba41cbd89e1c023d34d07b8fdf11254420e/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:fe7b1e9bf7922fbc22281bcc6b4f5ac8f1a7b4278929880940978c42fc9d0229",
"sha256:4f0e9def8b95e8c56879309fd4c126ac8e4401397ac97949d1a65c362dbf7cfc",
"sha256:b2155bd08ae7ecda9ab55466e4fe9aa115701a2fcb12806a0bafe521a283bff9",
"sha256:0f32029d3a2ad01a743276e1e2848acd2a0385fa2248fc9ade68e12a1d2be2fb",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
},
"Metadata": {
"LastTagTime": "0001-01-01T00:00:00Z"
}
}
]

  • OSM extract that was processed

https://download.geofabrik.de/north-america/us/north-carolina-latest.osm.pbf

  • Processing commands (e.g. CH vs MLD processing)
  • Server queries

URL: "http://127.0.0.1:50000/table/v1/driving/-77.953735352,35.73978805;-77.949401855,35.734138489?sources=0&destinations=1"
{'code': 'Ok',
'destinations': [{'hint': '23shgNx7IYAgAAAACgAAAAAAAAAAAAAAzyZcQVGBcUAAAAAAAAAAACAAAAAKAAAAAAAAAAAAAAA_AgAAJ5Za-3pCIQImllr7ekIhAgAATwuLFyTA',
'distance': 0.09047568,
'name': '',
'location': [-77.949401, 35.734138]}],
'durations': [[176.5]],
'sources': [{'hint': 'V3ghgFx4IYAsAAAABQAAAAAAAAAAAAAAmMCTQY9eBUAAAAAAAAAAACwAAAAFAAAAAAAAAAAAAAA_AgAAOYVa-41YIQI5hVr7jFghAgAADxGLFyTA',
'distance': 0.110953911,
'name': '',
'location': [-77.953735, 35.739789]}]}

URL: "http://127.0.0.1:50000/route/v1/driving/-77.953735352,35.73978805;-77.949401855,35.734138489"

{'code': 'Ok',
'routes': [{'geometry': 'ulcyEzixzMHeIdPRpDwLpCpA|@rA`@g@?yFtC@',
'legs': [{'steps': [],
'summary': '',
'weight': 212.6,
'duration': 179.1,
'distance': 1037.6}],
'weight_name': 'routability',
'weight': 212.6,
'duration': 179.1,
'distance': 1037.6}],
'waypoints': [{'hint': 'V3ghgFx4IYAsAAAABQAAAAAAAAAAAAAAmMCTQY9eBUAAAAAAAAAAACwAAAAFAAAAAAAAAAAAAAA_AgAAOYVa-41YIQI5hVr7jFghAgAADxGLFyTA',
'distance': 0.110953911,
'name': '',
'location': [-77.953735, 35.739789]},
{'hint': '23shgNx7IYAgAAAACgAAAAAAAAAAAAAAzyZcQVGBcUAAAAAAAAAAACAAAAAKAAAAAAAAAAAAAAA_AgAAJ5Za-3pCIQImllr7ekIhAgAATwuLFyTA',
'distance': 0.09047568,
'name': '',
'location': [-77.949401, 35.734138]}]}

If you're reporting an issue with https://map.project-osrm.org, please provide a link to the problematic request.

Specifications

Please provide details of your development environment.

  • Library/dependency versions
  • Operating system
  • Hardware

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions