2017 © Pedro Peláez
 

library dutchgeo

For all the non dutch speakers that seek a way to convert a Dutch postalcode to a lat/long map coordnates using the Google maps API.

image

nuicart/dutchgeo

For all the non dutch speakers that seek a way to convert a Dutch postalcode to a lat/long map coordnates using the Google maps API.

  • Thursday, April 13, 2017
  • by antonboutkam
  • Repository
  • 0 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DutchGeo

Get latitude / longitude by Dutch postal / zip code. An easy job if you speak Dutch but for a not native speaker a bit of a search., (*1)

Getting Started

Just install with composer, call Postal::getLatLong('1421AW'); and you are all done. The script uses curl so you need php with lib curl or copy/paste the sourcecode and use file_get_contents., (*2)

Author

  • Anton Boutkam

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*3)

Usage

try{
    $oLatLong = Postal::getLatLong('1421AW');

}
catch(NotFoundException $e)
{
   // The postal was not found, is it a real address?
   // Make someone fix the addresss?
}
catch(InvalidArgumentException $e)
{
   // The format of the postal/zip code is does not comply with Dutch standards: /^[0-9]{4}[A-Z]{2}$/, 
   // Make someone fix the addresss?
}
catch(ApiException $e)
{
   // Have a look at your cronjob / script. To many queries maybe?
}

Build status, (*4)

The Versions

13/04 2017

dev-master

9999999-dev

For all the non dutch speakers that seek a way to convert a Dutch postalcode to a lat/long map coordnates using the Google maps API.

  Sources   Download

MIT

The Development Requires

by Anton Boutkam

13/04 2017

v0.0.1

0.0.1.0

For all the non dutch speakers that seek a way to convert a Dutch postalcode to a lat/long map coordnates using the Google maps API.

  Sources   Download

MIT

The Development Requires

by Anton Boutkam