Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.35 KB

geojson.md

File metadata and controls

41 lines (28 loc) · 1.35 KB

EqualStreetNames - Scripts

Scripts

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
  • name tag (bilingual)
  • wikidata tag (wikidata identifier for the street)
  • name:etymology:wikidata tag (wikidata identifier for the person)

Extract data from Wikidata objects

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

  • instance of (P31) or subclass of (P279)
  • labels (in the languages chosen)
  • descriptions (in the languages chosen)
  • nickname (P1449)
  • sitelinks (in the languages chosen)
  • sex or gender (P21)
  • date of birth (P569)
  • date of death (P570)
  • image (P18)

Run the script locally

composer install

php process.php geojson

The relations.geojson and ways.geojson files will be stored in the city data/ directory.