ghpost-address

1.2.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ghpost-address

Weekly Downloads

1

Version

1.2.1

License

ISC

Unpacked Size

3.67 kB

Total Files

4

Last publish

Collaborators

  • sesesmith30