ins0/php-simple-ziplocate

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple API implementation to get Geo Coordinates from Postcodes

dev-master 2014-08-23 08:49 UTC

This package is auto-updated.

Last update: 2020-09-11 08:07:48 UTC


README

simple api implementation to get geo coordinates from postcodes over ziplocate.us

Install via Composer

In the require key of composer.json file add the following

"ins0/php-simple-ziplocate": "dev-master"

Run the Composer update command

$ composer update

example

$postcode = \ZipLocate::fromZipCode(80302);
if( $postcode !== false )
{
    echo $postcode->getLat();
    echo $postcode->getLng();
    echo $postcode->getZip();
}