{"action":"created","issue":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1353","repository_url":"https://api.github.com/repos/Project-OSRM/osrm-backend","labels_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1353/labels{/name}","comments_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1353/comments","events_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1353/events","html_url":"https://github.com/Project-OSRM/osrm-backend/issues/1353","id":55023416,"number":1353,"title":"Return distance for table queries","user":{"login":"mantesat","id":620790,"avatar_url":"https://avatars0.githubusercontent.com/u/620790?v=4","gravatar_id":"","url":"https://api.github.com/users/mantesat","html_url":"https://github.com/mantesat","followers_url":"https://api.github.com/users/mantesat/followers","following_url":"https://api.github.com/users/mantesat/following{/other_user}","gists_url":"https://api.github.com/users/mantesat/gists{/gist_id}","starred_url":"https://api.github.com/users/mantesat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mantesat/subscriptions","organizations_url":"https://api.github.com/users/mantesat/orgs","repos_url":"https://api.github.com/users/mantesat/repos","events_url":"https://api.github.com/users/mantesat/events{/privacy}","received_events_url":"https://api.github.com/users/mantesat/received_events","type":"User","site_admin":false},"labels":[{"id":200719,"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/labels/Feature%20Request","name":"Feature Request","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/milestones/15","html_url":"https://github.com/Project-OSRM/osrm-backend/milestone/15","labels_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/milestones/15/labels","id":1778819,"number":15,"title":"6.1","description":null,"creator":{"login":"TheMarex","id":606968,"avatar_url":"https://avatars0.githubusercontent.com/u/606968?v=4","gravatar_id":"","url":"https://api.github.com/users/TheMarex","html_url":"https://github.com/TheMarex","followers_url":"https://api.github.com/users/TheMarex/followers","following_url":"https://api.github.com/users/TheMarex/following{/other_user}","gists_url":"https://api.github.com/users/TheMarex/gists{/gist_id}","starred_url":"https://api.github.com/users/TheMarex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheMarex/subscriptions","organizations_url":"https://api.github.com/users/TheMarex/orgs","repos_url":"https://api.github.com/users/TheMarex/repos","events_url":"https://api.github.com/users/TheMarex/events{/privacy}","received_events_url":"https://api.github.com/users/TheMarex/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":1,"state":"open","created_at":"2016-05-20T13:38:04Z","updated_at":"2018-02-01T11:33:06Z","due_on":null,"closed_at":null},"comments":53,"created_at":"2015-01-21T14:11:53Z","updated_at":"2018-02-20T17:30:35Z","closed_at":null,"author_association":"NONE","body":"Would it be possible to add distances along with travel times to the matrix requests?\n"},"comment":{"url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/comments/367054417","html_url":"https://github.com/Project-OSRM/osrm-backend/issues/1353#issuecomment-367054417","issue_url":"https://api.github.com/repos/Project-OSRM/osrm-backend/issues/1353","id":367054417,"user":{"login":"danpat","id":1892250,"avatar_url":"https://avatars3.githubusercontent.com/u/1892250?v=4","gravatar_id":"","url":"https://api.github.com/users/danpat","html_url":"https://github.com/danpat","followers_url":"https://api.github.com/users/danpat/followers","following_url":"https://api.github.com/users/danpat/following{/other_user}","gists_url":"https://api.github.com/users/danpat/gists{/gist_id}","starred_url":"https://api.github.com/users/danpat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpat/subscriptions","organizations_url":"https://api.github.com/users/danpat/orgs","repos_url":"https://api.github.com/users/danpat/repos","events_url":"https://api.github.com/users/danpat/events{/privacy}","received_events_url":"https://api.github.com/users/danpat/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T17:30:35Z","updated_at":"2018-02-20T17:30:35Z","author_association":"OWNER","body":"@dskrvk The reason that OSRM currently isn't returning this data is because it *doesn't* keep track of distances between points - the routing graph only stores *time* (and/or *weight*), and in order to return distances, the full path between points currently needs to be unpacked and distances re-calculated.\r\n\r\nOne of the reasons that the `table` plugin is so fast is that it *does not need to unpack* paths in order to return the time between points.  There are basically three options to make it happen:\r\n\r\n  1.  Unpack paths and calculate distances - this will make the `table` request much slower.\r\n  2.  Store the distances alongside the paths - this will make OSRM use a lot more memory.\r\n  3.  Implement a caching scheme for path unpacking that will hopefully make (1) reasonably performant.\r\n\r\nThere is some work towards (3) happening over in https://github.com/Project-OSRM/osrm-backend/pull/4876 - we hope to get this into the mainline soon-ish.  The results look promising, caching of path unpacking is quite effective with CH/MLD.\r\n\r\nIf you prefer the additional memory usage approach, you can follow the work done in https://github.com/Project-OSRM/osrm-backend/pull/2764 - I don't think we'll mainline this yet, unless we can figure out a good way to make it a runtime configuration option."}}
{"actor":{"display_login":"danpat"}}