Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 790 Bytes

geojson.md

File metadata and controls

34 lines (22 loc) · 790 Bytes

EqualStreetNames.Brussels - Scripts

Scripts: wikidata.php

Generate final GeoJSON files

Extract data from OpenStreetMap objects

From the files downloaded from OpenStreetMap, we extract the following informations:

  • Relation (or way)
  • Geometry of the street ;
  • Streetname
    • name tag (bilingual) ;
    • name:fr tag (french) ;
    • name:nl tag (dutch) ;
  • wikidata tag (wikidata identifier for the street)
  • name:etymology:wikidata tag (wikidata identifier for the person)

Extract data from Wikidata objects

Apply gender information

Generate files

Run the script locally

composer install

php scripts/geojson.php

The relations.geojson and ways.geojson files will be stored in static/ directory.