xiankai / sg-pokemongo-ex-raid-map

https://xiankai.github.io/sg-pokemongo-ex-raid-map/
MIT License
9 stars 4 forks source link

Pokemon Go EX-raid Map for Singapore

Originally this project started out as a simple map to identify gyms in park. Over time it grew to be a useful collection of data points as well as for analysis. Therefore I am adapting this into a more general purpose mapping site that can be easily extended to other areas.

Installation Requirements

Data sources

The data sources are in the geoJSON format as it allows for:

Gym list

The rationale behind this data format is to front-load expensive geographical calculations beforehand, so that the map, its markers and overlays can be (re-)rendered and filtered as quickly as possible for a seamless user experience.

S2 Grid

Plotting an S2 grid is quite straightforward thanks to this widespread tool. Using it programmatically however, is what I'm going to cover.

Building from source

There is not much to change. There are chiefly 3 files of concern:

Please add an attribution link back to this repository if you are copying my site code, so people can contact me about my code if needed.

Local development

Simply load index.html in your browser. A file:/// URL works fine as long you are hosting the data sources elsewhere, otherwise Chrome doesn't allow network calls for the file:/// scheme.