-
Download data from OpenStreetMap using Overpass
php process.php overpass
Check the commented source code (
OverpassCommand.php
) andoverpass.md
for documentation. -
Download data from Wikidata
php process.php wikidata
Check the commented source code (
WikidataCommand.php
) andwikidata.md
for 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.md
for 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