{"action":"created","issue":{"url":"https://api.github.com/repos/carldanley/node-pokemon-go-api/issues/18","repository_url":"https://api.github.com/repos/carldanley/node-pokemon-go-api","labels_url":"https://api.github.com/repos/carldanley/node-pokemon-go-api/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/carldanley/node-pokemon-go-api/issues/18/comments","events_url":"https://api.github.com/repos/carldanley/node-pokemon-go-api/issues/18/events","html_url":"https://github.com/carldanley/node-pokemon-go-api/issues/18","id":168667991,"number":18,"title":"Alternatives for s2geometry-node","user":{"login":"rafa0809","id":7547826,"avatar_url":"https://avatars.githubusercontent.com/u/7547826?v=3","gravatar_id":"","url":"https://api.github.com/users/rafa0809","html_url":"https://github.com/rafa0809","followers_url":"https://api.github.com/users/rafa0809/followers","following_url":"https://api.github.com/users/rafa0809/following{/other_user}","gists_url":"https://api.github.com/users/rafa0809/gists{/gist_id}","starred_url":"https://api.github.com/users/rafa0809/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafa0809/subscriptions","organizations_url":"https://api.github.com/users/rafa0809/orgs","repos_url":"https://api.github.com/users/rafa0809/repos","events_url":"https://api.github.com/users/rafa0809/events{/privacy}","received_events_url":"https://api.github.com/users/rafa0809/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-01T15:04:15Z","updated_at":"2016-08-02T01:00:50Z","closed_at":null,"body":"Hi guys! Some of us are having problems with the s2geometry-node library. I've seen where this library is used to - in the file _**utils/get-neighboring-cell-ids.js**_. So, can anybody provide an alternative implementation for this piece of code without using the s2geometry-node?\r\n\r\n```\r\n// external dependencies\r\nconst s2geometry = require('s2geometry-node');\r\n\r\nexports = module.exports = function(latitude, longitude) {\r\n  const s2Location = new s2geometry.S2LatLng(latitude, longitude);\r\n  const s2CellId = new s2geometry.S2CellId(s2Location);\r\n  var origin = s2CellId.parent(15);\r\n  var next = origin.next();\r\n  var prev = origin.prev();\r\n  var cellIds = [\r\n    origin.id()\r\n  ];\r\n  var i = 0;\r\n\r\n  for (i; i < 10; i++) {\r\n      // in range(10):\r\n      cellIds.push(prev.id());\r\n      cellIds.push(next.id());\r\n      next = next.next();\r\n      prev = prev.prev();\r\n  }\r\n\r\n  return cellIds.sort(function(a, b) {\r\n    return a > b;\r\n  });\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/carldanley/node-pokemon-go-api/issues/comments/236759422","html_url":"https://github.com/carldanley/node-pokemon-go-api/issues/18#issuecomment-236759422","issue_url":"https://api.github.com/repos/carldanley/node-pokemon-go-api/issues/18","id":236759422,"user":{"login":"rafa0809","id":7547826,"avatar_url":"https://avatars.githubusercontent.com/u/7547826?v=3","gravatar_id":"","url":"https://api.github.com/users/rafa0809","html_url":"https://github.com/rafa0809","followers_url":"https://api.github.com/users/rafa0809/followers","following_url":"https://api.github.com/users/rafa0809/following{/other_user}","gists_url":"https://api.github.com/users/rafa0809/gists{/gist_id}","starred_url":"https://api.github.com/users/rafa0809/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafa0809/subscriptions","organizations_url":"https://api.github.com/users/rafa0809/orgs","repos_url":"https://api.github.com/users/rafa0809/repos","events_url":"https://api.github.com/users/rafa0809/events{/privacy}","received_events_url":"https://api.github.com/users/rafa0809/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T01:00:50Z","updated_at":"2016-08-02T01:00:50Z","body":"Solved! Thanks!"}}
{"actor":{"display_login":"rafa0809"}}