Skip to content

ahzhezhe/onemapsg

Repository files navigation

onemapsg

npm package npm downloads GitHub issues GitHub license

Helper library for using OneMap APIs (https://docs.onemap.sg/).

Install via NPM

npm install onemapsg

Usage

import OneMap from 'onemapsg';

// Credential is optional, you do not need to supply credential if you are using common APIs only.
const onemap = new OneMap({
  email: 'your_email',
  password: 'your_password'
});

const result = await onemap.search.search({
  searchVal: '542226',
  returnGeom: true,
  getAddrDetails: true
});

About

Helper library for using OneMap APIs

Topics

Resources

License

Stars

Watchers

Forks