UNPKG

hkopendata

Version:

Access different Opendata API and data in Hong Kong

15 lines (14 loc) 358 B
class Address { constructor(address) { this._raw = address; const ogcio = require("../gov/ogcio"); return (async () => { let res = await ogcio.searchAddress({ query: this._raw, }); this.location = res[0]; return this; })(); } } module.exports = Address;