npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pokemongo-tools

v2.0.6

Published

Tools for generating compiled datasets for an EX-raid map

Downloads

20

Readme

Tools for generating compiled datasets for EX-raid map

Demo: https://xiankai.github.io/sg-pokemongo-ex-raid-map/
Linked Repo: https://github.com/xiankai/sg-pokemongo-ex-raid-map

Installation

This assumes basic knowledge of node, npm or yarn.

  1. yarn add pokemongo-tools
  2. yarn to install dependencies.
    • You must be on node 6 to compile @mapbox/s2-node on OSX, but you should switch to node 8+ for better performance afterwards.
    • For reference, it takes 55s to process 1.8k gyms on v6.12.2 yet only 17s on v9.3.0

overpass.c

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.

all.js

This will generate the all.geojson required.

Input

The following CSV files are required to be in the same folder.

Some general notes about gym data and CSV files:

  • There may be multiple gyms with the same name. You should make sure the names are unique (possibly by appending (2) to the duplicate), because the script will rely on string matching.
  • " should be used to enclose gym names, , for delimiters.
  • You can include " in names by using "" instead.
    • eg. "New ""Old"" TPY 240 Playground",1.3408059999999997,103.850371

gyms.csv

  • This should rarely change.
  • Headers should not be present.
  • You can name these headers anything, but your columns must be in the correct order.
| Gym Name           | Latitude           | Longitude  |
|--------------------|--------------------|------------|
| Nicoll Highway MRT | 1.3002109999999998 | 103.863283 |
| Marymount Station  | 1.347791           | 103.840229 |

parks.csv

  • Generated from https://github.com/MzHub/osmcoverer
  • Provide the above gyms.csv and appropriate park GeoJSON from overpass file to it

exraids.csv

  • This will likely be updated frequently as your data arrives in. Each column gets its own date, and empty cells means that the location did not have a raid for that wave.
  • The first row should first contain any string ("Gym Name"), and then ex raid dates (in YYYY-MM-DD format).
  • In the columns, either put the start timing of the raid (in 24 hour format) or any other non-empty string (if you don't know, or don't want to add the raid time). All raids are assumed to be 45 minutes long.
| 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_L*.geojson (generated from s2.js)

  • For every cell level you wish to show as a grid, have the corresponding file present.
    • eg. s2_L12.geojson
  • Currently cell levels 10, 12 and 13 are being/have been used in EX-raid distribution.

Usage

The above file names are assumed to be in the same directory.

node all.js

sheets.js