Helper library for using OneMap APIs (https://docs.onemap.sg/).
npm install onemapsg
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
});