Pokemon-GO-node-api icon indicating copy to clipboard operation
Pokemon-GO-node-api copied to clipboard

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

Open predator747 opened this issue 8 years ago • 2 comments

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

predator747 avatar Jul 26 '16 10:07 predator747

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.

Elyx0 avatar Jul 26 '16 17:07 Elyx0

Hi,

thanks for the explanation :)

Best predator747

predator747 avatar Jul 27 '16 04:07 predator747