Demo: https://xiankai.github.io/sg-pokemongo-ex-raid-map/
Linked Repo: https://github.com/xiankai/sg-pokemongo-ex-raid-map
This assumes basic knowledge of node
, npm
or yarn
.
yarn add pokemongo-tools
yarn
to install dependencies.
OSM query template for https://overpass-turbo.eu/, copied from this reddit thread
Also modified to only show valid park tags.
I originally had one myself but it is outdated with the current research thus far and thus invalid.
It has the c
extension for formatting as the syntax is derived from C.
After running the query you should have the option to Export as a GeoJSON file. There is also the option to backdate the query to what the OSM map was at a certain date.
This will generate the all.geojson
required.
The following CSV files are required to be in the same folder.
Some general notes about gym data and CSV files:
"
should be used to enclose gym names, ,
for delimiters."
in names by using ""
instead.
"New ""Old"" TPY 240 Playground",1.3408059999999997,103.850371
| Gym Name | Latitude | Longitude |
|--------------------|--------------------|------------|
| Nicoll Highway MRT | 1.3002109999999998 | 103.863283 |
| Marymount Station | 1.347791 | 103.840229 |
gyms.csv
and appropriate park GeoJSON
from overpass file to it| Gym Name | 2017-12-03 | 2017-12-18 | 2018-01-09 |
|--------------------|------------|------------|------------|
| Nicoll Highway MRT | | 10.30 | 16.30 |
| Tablet of Flora | | | 12.30 |
| Foliage Garden | x | | |
s2_L12.geojson
The above file names are assumed to be in the same directory.
node all.js