{"action":"closed","issue":{"url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/8","labels_url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/8/comments","events_url":"https://api.github.com/repos/pgRouting/osm2pgrouting/issues/8/events","html_url":"https://github.com/pgRouting/osm2pgrouting/issues/8","id":7563671,"number":8,"title":"Calculation of way length incorrect","user":{"login":"xicalango","id":1661249,"avatar_url":"https://avatars.githubusercontent.com/u/1661249?v=3","gravatar_id":"","url":"https://api.github.com/users/xicalango","html_url":"https://github.com/xicalango","followers_url":"https://api.github.com/users/xicalango/followers","following_url":"https://api.github.com/users/xicalango/following{/other_user}","gists_url":"https://api.github.com/users/xicalango/gists{/gist_id}","starred_url":"https://api.github.com/users/xicalango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xicalango/subscriptions","organizations_url":"https://api.github.com/users/xicalango/orgs","repos_url":"https://api.github.com/users/xicalango/repos","events_url":"https://api.github.com/users/xicalango/events{/privacy}","received_events_url":"https://api.github.com/users/xicalango/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pgRouting/osm2pgrouting/labels/Bug%20Report","name":"Bug Report","color":"ff0000"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pgRouting/osm2pgrouting/milestones/2","html_url":"https://github.com/pgRouting/osm2pgrouting/milestones/osm2pgrouting%202.1.0","labels_url":"https://api.github.com/repos/pgRouting/osm2pgrouting/milestones/2/labels","id":433761,"number":2,"title":"osm2pgrouting 2.1.0","description":"","creator":{"login":"dkastl","id":227762,"avatar_url":"https://avatars.githubusercontent.com/u/227762?v=3","gravatar_id":"","url":"https://api.github.com/users/dkastl","html_url":"https://github.com/dkastl","followers_url":"https://api.github.com/users/dkastl/followers","following_url":"https://api.github.com/users/dkastl/following{/other_user}","gists_url":"https://api.github.com/users/dkastl/gists{/gist_id}","starred_url":"https://api.github.com/users/dkastl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkastl/subscriptions","organizations_url":"https://api.github.com/users/dkastl/orgs","repos_url":"https://api.github.com/users/dkastl/repos","events_url":"https://api.github.com/users/dkastl/events{/privacy}","received_events_url":"https://api.github.com/users/dkastl/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":1,"state":"open","created_at":"2013-09-22T04:43:36Z","updated_at":"2015-12-04T15:22:37Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2012-10-13T16:27:44Z","updated_at":"2015-12-04T15:22:37Z","closed_at":"2015-12-04T15:22:37Z","body":"I discovered that the length of a way is measured by the (air line) distance between the start point and the end point of that way.\r\n\r\nSo when importing a way like this: http://www.openstreetmap.org/browse/way/66437490 the resulting distance is way smaller than the real length of the way. I think that's because the start and end points are really close together.\r\n\r\nI think it would be more reasonable when the length of a way is the sum of lengths of the splitted way. i.e. adding the length in the else case of OSMDocument.cpp line 155."}}