{"action":"opened","issue":{"url":"https://api.github.com/repos/alexreisner/geocoder/issues/828","labels_url":"https://api.github.com/repos/alexreisner/geocoder/issues/828/labels{/name}","comments_url":"https://api.github.com/repos/alexreisner/geocoder/issues/828/comments","events_url":"https://api.github.com/repos/alexreisner/geocoder/issues/828/events","html_url":"https://github.com/alexreisner/geocoder/issues/828","id":64412950,"number":828,"title":".near method not working properly.","user":{"login":"xingle","id":790329,"avatar_url":"https://avatars.githubusercontent.com/u/790329?v=3","gravatar_id":"","url":"https://api.github.com/users/xingle","html_url":"https://github.com/xingle","followers_url":"https://api.github.com/users/xingle/followers","following_url":"https://api.github.com/users/xingle/following{/other_user}","gists_url":"https://api.github.com/users/xingle/gists{/gist_id}","starred_url":"https://api.github.com/users/xingle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xingle/subscriptions","organizations_url":"https://api.github.com/users/xingle/orgs","repos_url":"https://api.github.com/users/xingle/repos","events_url":"https://api.github.com/users/xingle/events{/privacy}","received_events_url":"https://api.github.com/users/xingle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-26T01:27:42Z","updated_at":"2015-03-26T01:27:42Z","closed_at":null,"body":"I got the NewYork coordinate using Geocoder.coordinates(\"NewYork\").\r\n\r\n.near scope's coordinate parameter had to be reversed to get correct result.\r\n\r\nNot working:\r\nPlace.near([40.7127837, -74.0059413], 3, unit: :km).count #this is not working.\r\n\r\nWorking:\r\nPlace.near([40.7127837, -74.0059413].reverse, 3, unit: :km).count #but this one does.\r\n\r\nI think that latitude and longitude order should be persistent for all case. like [lat, lon]"}}