{"action":"created","issue":{"url":"https://api.github.com/repos/numenta/nupic/issues/1567","labels_url":"https://api.github.com/repos/numenta/nupic/issues/1567/labels{/name}","comments_url":"https://api.github.com/repos/numenta/nupic/issues/1567/comments","events_url":"https://api.github.com/repos/numenta/nupic/issues/1567/events","html_url":"https://github.com/numenta/nupic/issues/1567","id":50087775,"number":1567,"title":"GeospatialCoordinateEncoder should use same calculation as in HTM.java","user":{"login":"cogmission","id":2340086,"avatar_url":"https://avatars.githubusercontent.com/u/2340086?v=3","gravatar_id":"","url":"https://api.github.com/users/cogmission","html_url":"https://github.com/cogmission","followers_url":"https://api.github.com/users/cogmission/followers","following_url":"https://api.github.com/users/cogmission/following{/other_user}","gists_url":"https://api.github.com/users/cogmission/gists{/gist_id}","starred_url":"https://api.github.com/users/cogmission/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cogmission/subscriptions","organizations_url":"https://api.github.com/users/cogmission/orgs","repos_url":"https://api.github.com/users/cogmission/repos","events_url":"https://api.github.com/users/cogmission/events{/privacy}","received_events_url":"https://api.github.com/users/cogmission/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numenta/nupic/labels/newbie","name":"newbie","color":"bfe5bf"},{"url":"https://api.github.com/repos/numenta/nupic/labels/subject:encoders","name":"subject:encoders","color":"c7def8"},{"url":"https://api.github.com/repos/numenta/nupic/labels/type:enhancement","name":"type:enhancement","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"chessweb01","id":1660364,"avatar_url":"https://avatars.githubusercontent.com/u/1660364?v=3","gravatar_id":"","url":"https://api.github.com/users/chessweb01","html_url":"https://github.com/chessweb01","followers_url":"https://api.github.com/users/chessweb01/followers","following_url":"https://api.github.com/users/chessweb01/following{/other_user}","gists_url":"https://api.github.com/users/chessweb01/gists{/gist_id}","starred_url":"https://api.github.com/users/chessweb01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chessweb01/subscriptions","organizations_url":"https://api.github.com/users/chessweb01/orgs","repos_url":"https://api.github.com/users/chessweb01/repos","events_url":"https://api.github.com/users/chessweb01/events{/privacy}","received_events_url":"https://api.github.com/users/chessweb01/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2014-11-25T21:41:48Z","updated_at":"2015-04-13T13:16:16Z","closed_at":null,"body":"HTM.java's GeospatialCoordinateEncoder uses the direct calculation skimmed from a large library which can do the Lat/Long to Mercator projection and back in 3 to 4 lines of code. (Python would be even shorter). All NuPIC languages should use the same calculation found here:\r\n\r\nhttps://github.com/numenta/htm.java/blob/master/src/main/java/org/numenta/nupic/encoders/GeospatialCoordinateEncoder.java#L75"},"comment":{"url":"https://api.github.com/repos/numenta/nupic/issues/comments/92347626","html_url":"https://github.com/numenta/nupic/issues/1567#issuecomment-92347626","issue_url":"https://api.github.com/repos/numenta/nupic/issues/1567","id":92347626,"user":{"login":"cogmission","id":2340086,"avatar_url":"https://avatars.githubusercontent.com/u/2340086?v=3","gravatar_id":"","url":"https://api.github.com/users/cogmission","html_url":"https://github.com/cogmission","followers_url":"https://api.github.com/users/cogmission/followers","following_url":"https://api.github.com/users/cogmission/following{/other_user}","gists_url":"https://api.github.com/users/cogmission/gists{/gist_id}","starred_url":"https://api.github.com/users/cogmission/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cogmission/subscriptions","organizations_url":"https://api.github.com/users/cogmission/orgs","repos_url":"https://api.github.com/users/cogmission/repos","events_url":"https://api.github.com/users/cogmission/events{/privacy}","received_events_url":"https://api.github.com/users/cogmission/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T13:16:16Z","updated_at":"2015-04-13T13:16:16Z","body":"Also the issue is about replacing the longer code with some short hand code that I found to convert to and from Mercator projection. The calculations would work in any language, so Chetan suggested that we convert the Python code over to those calculations because they are shorter."}}