canada-neighbourhood
v1.0.4
Published
Canada neighbourhood data with crawler
Downloads
26
Readme
Canada neighbourhood data with crawler
Install
npm i canada-neighbourhood
# OR
yarn add canada-neighbourhoodData 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.
