A very Small infact a minute library for getting address info of a location using Ghana's Digital Adress System,
npm install ghpost-address
const ghpost = require('ghpost-address')
addr.grabAddressInfo("AK-507-4460").then(function(res) {
console.log(res);
})
This will give you something similar to the following:
{
streetName: 'Franco Hostel Rd, Kumasi, Ghana',
region: 'Ashanti',
district: 'Kumasi',
postCode: 'AK507',
lngLat: '6.669813,-1.561062'
}
{ grabAddressInfo: [AsyncFunction] }
grabAddressInfo(adrress, options)
address can be PostCode, coodinates, Digital Address, Places
options is an object
{
timeout: xxxxms
}
options.timeout
is in milliseconds, optional and 10000ms
by default
email me