spatialdev/randompbfgenerator

Name: randompbfgenerator

Owner: SpatialDev

Description: Generate osm.pbf files from random sample locations

Created: 2018-03-03 01:34:17.0

Updated: 2018-04-02 16:33:22.0

Pushed: 2018-04-02 16:33:21.0

Homepage:

Size: 18

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Random osm.pbf Generator

This is the Node.js version of randomPbfGenerator.py.

The goal of the script is to generate 5-7 osm.pbf files (~<25mb) that are representative of the entire world. Once generated, a user can ingest them in atlas-checks & use as a test set.

  1. Randomly select a country from each region in locations.json
  2. Send a POST to the /jobs route in the EXPORT API w/ the locations bounds
  3. Ping the /runs route until status is reported as complete
  4. Write file to disk
How to run

Using the config-exmaple.json example, create a config/config.json file and add your Export API Token Once complete, simply execute

install

and…

start

¡voila!


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.