1.2.0 • Published 8 years ago

swiss-cities v1.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

swiss-cities

Provides a list of swiss cities based on data from bfs.admin.ch.

Installation

npm install swiss-cities

Usage

Exports all data in allSwissCities() and randomSampleOfSwissCities().

How to Update based on new Data

  1. Download current list from bfs.admin.ch
  2. Open the Excel file and navigate to the tab Ortschaftenverz.-Rép. Localités
  3. Export as CSV. Select Unicode (UTF-8) and use tab as a separator. Don't use a text delimiter.
  4. 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.
  5. Export the data including the header row as a CSV; ensure UTF8.
  6. node convert-csv.js.
  7. Commit and publish.
1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago