-
Notifications
You must be signed in to change notification settings - Fork 199
get map data in squares #375
base: master
Are you sure you want to change the base?
Conversation
Just out of curiosity, what is the advantage of using a square over a circle? Is this more for cities that have predefined blocks, or what? Or, is this more of an option for the user? |
@PhDeez, map-data by defaut is requested every 10 seconds for the whole map! so, for example it's around 380kb for map with ~2000 pokemons. after my change it's only ~5-10kb every 30 seconds for visible area of map. and at second, map data are heavy cacheable for example by varnish. i'm providing map with ~3500 map requests every second, after enabled this functionality with varnish cache, only ~50-150 requests per second are provided by python runserver. |
@favll : working example on ipeople.sk |
good idea, soon i'll need something like this too. but, in the meantime, there are many easy fixes that make that data much smaller:
i'm running a pokemongomap-server with a pogom web-frontend. the data is cached every 4 seconds. http://pg.festzeit.ch/ |
@quixfz how did You manage to not display top10 pokemon? I didn't know which files to edit and when I thought I did it just kept crashing, is there a way to have by default disabled common pokemons? |
faster map-data download, downloads only map data of viewable area. splitted into squares, also can be heavy cacheable by varnish.