https://github.com/eddypouw/geodata-postal-api
Postal code API for Dutch postal codes
https://github.com/eddypouw/geodata-postal-api
geodata postal-code postcode
Last synced: 5 months ago
JSON representation
Postal code API for Dutch postal codes
- Host: GitHub
- URL: https://github.com/eddypouw/geodata-postal-api
- Owner: eddypouw
- License: mit
- Created: 2017-05-07T20:06:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T08:07:05.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T03:27:45.504Z (over 1 year ago)
- Topics: geodata, postal-code, postcode
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Geodata postal API
PHP client to find Dutch addresses based on postal code and house number.
This library is based on the open geodata from [https://nationaalgeoregister.nl](https://nationaalgeoregister.nl).
[](https://travis-ci.org/eddypouw/geodata-postal-api)
Usage
-----
Install the latest version via [composer](https://getcomposer.org/):
```bash
php composer.phar require eddypouw/geodata-postal-api
```
Example:
```php
'https://geodata.nationaalgeoregister.nl/geocoder/Geocoder']);
$geodata_api = new \Eddypouw\GeodataPostalApi\GeodataAddressRepository($client);
$response = $geodata_api->findByPostal('1509AW', 7);
print $response->getStreet() . ' ' . $response->getHouseNumber() . "\n";
print $response->getPostalCode() . ' ' . $response->getMunicipality() . "\n";
```
Requirements
------------
PHP 7.0.x or above.
License
-------
This library is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.