Skip to content

dclfbk/strade-nomi-confusi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strade-nomi-confusi

Map of the streets with the confused names in Trento

Demo

Algorithms

Data

data/
├── highway.json		GeoJSON original data downloaded from Openstreetmap by Overpass
├── highway.csv			Main properties without geometries
├── highway.sqlite		Sqlite version from csv, to group streets by names and filter commons *bad words* (via,piazza,strada...)
├── highway_blacklist_name.csv 	Commons *bad words* generated by complete list of names
└── highway_distinct_name.csv 	List of distinct names

Bad words

How to generate a list of commons bad words

SQL Query:

SELECT DISTINCT LOWER(SUBSTR(name, 0, INSTR(name, ' '))) AS word1
FROM highway 
WHERE highway.highway <> '' 
ORDER BY word1

highway.sqlite -> highway_distinct_name.csv:

Usage

npm install
npm start