1.0.4 • Published 3 years ago

canada-neighbourhood v1.0.4

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

Canada neighbourhood data with crawler

Install

npm i canada-neighbourhood
# OR
yarn add canada-neighbourhood

Data Folder Structure

 - original             --- Original GeoJson
   - 📁 AB               --- Province AB
     - Edmonton.geojson  --- Geojson
     - Edmonton.json     --- A list of neighbourhood names and unique code
   - 📁 BC
   - 📁 ON
   - 📁 QC
 - reduced             --- reduced GeoJson
   - 📁 AB 
   - 📁 BC
   - ...
 - data.json           --- e.g. {"ON":{"Hamilton":["Ainslie Wood","Ainslie Wood East", ...]}}
 - metadata.json       --- e.g. {"AB": ["Edmonton"], "ON": ["Toronto", ...]}

APIs

const {update, copy} = require('canada-neighbourhood');

copy(path: string)

Copy the whole data folder to a given path.

update(path: string, print: boolean)

Update the data folder inside this package. If path is given, also copy the updated data folder to the given path. Set print to true will enable log into the console.

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago