Simple API implementation to get Geo Coordinates from Postcodes
simple api implementation to get geo coordinates from postcodes over ziplocate.us, (*1)
In the require key of composer.json file add the following, (*2)
require
composer.json
"ins0/php-simple-ziplocate": "dev-master"
Run the Composer update command, (*3)
$ composer update
$postcode = \ZipLocate::fromZipCode(80302); if( $postcode !== false ) { echo $postcode->getLat(); echo $postcode->getLng(); echo $postcode->getZip(); }
Sources Download
MIT
api php geo zipcode ziplocate