Provides a list of swiss cities based on data from bfs.admin.ch.
npm install swiss-cities
Exports all data in allSwissCities()
and randomSampleOfSwissCities()
.
- Download current list from bfs.admin.ch
- Open the Excel file and navigate to the tab Ortschaftenverz.-Rép. Localités
- Export as CSV. Select Unicode (UTF-8) and use tab as a separator. Don't use a text delimiter.
- Download the list of principle languages per village from https://www.pxweb.bfs.admin.ch/Table.aspx?layout=tableViewLayout2&px_tableid=px-x-4003000000_123%5cpx-x-4003000000_123.px&px_language=de&px_type=PX&px_db=px-x-4003000000_123&rxid=f325e97e-e21c-4805-b3cd-04d68e5321d7 as Excel.
- Export the data including the header row as a CSV; ensure UTF8.
node convert-csv.js
.- Commit and publish.