{"action":"created","issue":{"url":"https://api.github.com/repos/grumlimited/geocalc/issues/1","labels_url":"https://api.github.com/repos/grumlimited/geocalc/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/grumlimited/geocalc/issues/1/comments","events_url":"https://api.github.com/repos/grumlimited/geocalc/issues/1/events","html_url":"https://github.com/grumlimited/geocalc/issues/1","id":14781651,"number":1,"title":"Distance calculation incorrect","user":{"login":"Stivo","id":1336052,"avatar_url":"https://avatars.githubusercontent.com/u/1336052?v=3","gravatar_id":"","url":"https://api.github.com/users/Stivo","html_url":"https://github.com/Stivo","followers_url":"https://api.github.com/users/Stivo/followers","following_url":"https://api.github.com/users/Stivo/following{/other_user}","gists_url":"https://api.github.com/users/Stivo/gists{/gist_id}","starred_url":"https://api.github.com/users/Stivo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stivo/subscriptions","organizations_url":"https://api.github.com/users/Stivo/orgs","repos_url":"https://api.github.com/users/Stivo/repos","events_url":"https://api.github.com/users/Stivo/events{/privacy}","received_events_url":"https://api.github.com/users/Stivo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"gr211","id":1898244,"avatar_url":"https://avatars.githubusercontent.com/u/1898244?v=3","gravatar_id":"","url":"https://api.github.com/users/gr211","html_url":"https://github.com/gr211","followers_url":"https://api.github.com/users/gr211/followers","following_url":"https://api.github.com/users/gr211/following{/other_user}","gists_url":"https://api.github.com/users/gr211/gists{/gist_id}","starred_url":"https://api.github.com/users/gr211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr211/subscriptions","organizations_url":"https://api.github.com/users/gr211/orgs","repos_url":"https://api.github.com/users/gr211/repos","events_url":"https://api.github.com/users/gr211/events{/privacy}","received_events_url":"https://api.github.com/users/gr211/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2013-05-27T04:05:00Z","updated_at":"2015-08-17T07:23:17Z","closed_at":null,"body":"The distance calculation is only correct for small distances.\r\n\r\n\timport com.grum.geocalc.*;\r\n\r\n\tpublic class Bug {\r\n\t\tpublic static void main(String[] args) {\r\n\t\t\t//Kew, London\r\n\t\t\tCoordinate lat = new DegreeCoordinate(51.4843774);\r\n\t\t\tCoordinate lng = new DegreeCoordinate(-0.2912044);\r\n\t\t\tPoint kew = new Point(lat, lng);\r\n\r\n\t\t\t//Buenos Aires, as per wolframalpha.com\r\n\t\t\tlat = new DegreeCoordinate(34.61);\r\n\t\t\tlng = new DegreeCoordinate(-58.37);\r\n\t\t\tPoint richmond = new Point(lat, lng);\r\n\r\n\t\t\tdouble distance = EarthCalc.getDistance(richmond, kew); //in meters\t\r\n\t\t\tSystem.out.println(distance);\r\n\t\t}\r\n\t}\r\n\r\nAs you can see in wolframalpha.com, it is supposed to be more than 11000 Km.\r\nhttp://www.wolframalpha.com/input/?i=buenos+aires+to+london"},"comment":{"url":"https://api.github.com/repos/grumlimited/geocalc/issues/comments/131704337","html_url":"https://github.com/grumlimited/geocalc/issues/1#issuecomment-131704337","issue_url":"https://api.github.com/repos/grumlimited/geocalc/issues/1","id":131704337,"user":{"login":"gr211","id":1898244,"avatar_url":"https://avatars.githubusercontent.com/u/1898244?v=3","gravatar_id":"","url":"https://api.github.com/users/gr211","html_url":"https://github.com/gr211","followers_url":"https://api.github.com/users/gr211/followers","following_url":"https://api.github.com/users/gr211/following{/other_user}","gists_url":"https://api.github.com/users/gr211/gists{/gist_id}","starred_url":"https://api.github.com/users/gr211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr211/subscriptions","organizations_url":"https://api.github.com/users/gr211/orgs","repos_url":"https://api.github.com/users/gr211/repos","events_url":"https://api.github.com/users/gr211/events{/privacy}","received_events_url":"https://api.github.com/users/gr211/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T07:23:17Z","updated_at":"2015-08-17T07:23:17Z","body":"Added Vicenty for distance calculation in v0.4."}}