-
Download data from OpenStreetMap using Overpass
php process.php overpass
Check the commented source code (
OverpassCommand.php) andoverpass.mdfor documentation. -
Download data from Wikidata
php process.php wikidata
Check the commented source code (
WikidataCommand.php) andwikidata.mdfor documentation. -
Download city boundary geometry
php process.php boundary
Check the commented source code (
BoundaryCommand.php) for documentation. -
Generate final GeoJSON files
php process.php geojson
Check the commented source code (
GeoJSONCommand.php) andgeojson.mdfor documentation. -
Generate final statistics JSON file and CSV files (documentation)
php process.php statistics
Check the commented source code (
WikidataCommand.php) for documentation.
All those steps are run sequentially when you run the following command (after replacing my-country and my-city by the name of your country and city):
composer run update-data -- --city=my-country/my-city