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
- Randomly select a country from each region in locations.json
- Using the the extent of each location, send a POST to the HOT Export Tool API
/api/jobsroute - Ping the HOT Export Tools
/api/runsroute until status is reported as complete - Write file to disk
Using the config-exmaple.json example, create a config/config.json file and add your Export API Token Once complete, simply execute
npm installand...
npm start¡voila!