New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opengovsg/ura-subzones

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opengovsg/ura-subzones

Simple library for dealing with URA subzones

1.0.0
latest
npm
Version published
Maintainers
2
Created
Source

URA Subzones

Simple library for dealing with URA subzones

Example use

$ npm install ura-subzones # (not available yet)
OR
$ npm install git+ssh://git@github.com/datagovsg/ura-subzones.git
const subzones = require('ura-subzones')
subzones.getSubzones() // Returns GeoJSON FeatureCollection of all subzones
subzones.getSubzoneAtPoint([103.673784, 1.256942]).properties.niceName // "Jurong Island And Bukom"

Data Source

Data is sourced from the 2014 Master Plan Subzone Boundaries. The data has been converted from KML and saved in data/subzones.js as GeoJSON.

The subzone names in the original dataset contained contractions and were in UPPERCASE. We have converted the names to Title Case and saved the conversion as the niceName property.

subzones.getSubzoneAtPoint([103.777475, 1.295793]).properties.niceName // "National University Of Singapore
subzones.getSubzoneAtPoint([103.777475, 1.295793]).properties.name // "NATIONAL UNIVERSITY OF S'PORE

List of conversions can be found at scripts/convertToGeojson.js

The original dataset is licenced under the Singapore Open Data Licence.

FAQs

Package last updated on 23 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts