Armax / Pokemon-GO-node-api

Pokemon GO api node.js library
MIT License
875 stars 198 forks source link

What is a S2CellId and how big is the range that will be scanned (in meters)? #142

Open predator747 opened 8 years ago

predator747 commented 8 years ago

Hi,

looking in the poke.io.js and I have no Idea what a S2CellId is and how big the range is, which will be scanned (in meters)?

In what radius in meters does this api show wild pokemons for a single hearbeat request?

Thanks

Best predator747

Elyx0 commented 8 years ago

A S2Cell is a representation of a zone on the earth surface. Currently a single heartbeat is made from the LatLng -> S2CellId + neighbors. (Check in the code) The distance covered may vary depending on the Cell shape and your own position inside the shape.

Representing 4 CellIds:

screenshot 2016-07-23 13 57 25

Use s2map.com to visualize them if wanted.

predator747 commented 8 years ago

Hi,

thanks for the explanation :)

Best predator747