Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

spatialdev/randompbfgenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random osm.pbf Generator

The purpose of the script is to generate 5-7 osm.pbf files (~<25mb) that are (somewhat) representative of the entire world. These locations are randomly selected from the locations.json file

  1. Randomly select a country from each region in locations.json
  2. Using the the extent of each location, send a POST to the HOT Export Tool API /api/jobs route
  3. Ping the HOT Export Tools /api/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

npm install

and...

npm start

¡voila!

About

Generate osm.pbf files from random sample locations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •