1.2.1 • Published 4 years ago

ghpost-address v1.2.1

Weekly downloads
4
License
ISC
Repository
-
Last release
4 years ago

ghpost Address

A very Small infact a minute library for getting address info of a location using Ghana's Digital Adress System,

Installing

npm install ghpost-address

Usage

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' 
}

API

{ 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

Contributing

email me

1.2.1

4 years ago

1.2.0

6 years ago

1.0.0

6 years ago