2017 © Pedro Peláez
 

library geocoder-php-bpost-provider

Geocoder bpost adapter

image

geo6/geocoder-php-bpost-provider

Geocoder bpost adapter

  • Monday, July 2, 2018
  • by jbelien
  • Repository
  • 1 Watchers
  • 2 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 72 % Grown

The README.md

:belgium: Geocoder PHP "bpost" provider

PHP CI Latest Stable Version Total Downloads Monthly Downloads Code Coverage Scrutinizer Code Quality Software License, (*1)

Geocoder PHP is a PHP library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations., (*2)

This is the "bpost" provider for the Geocoder PHP., (*3)

Coverage: Belgium
API: https://www.bpost.be/site/en/webservice-address, (*4)

Install

composer require geo6/geocoder-php-bpost-provider

Usage

See Geocoder PHP README file., (*5)

use Geocoder\Query\GeocodeQuery;

$httpClient = new \Http\Adapter\Guzzle6\Client();
$provider = new \Geocoder\Provider\bpost\bpost($httpClient);
$geocoder = new \Geocoder\StatefulGeocoder($provider, 'en');

// Query with unstructured address
$result = $geocoder->geocodeQuery(GeocodeQuery::create('5 Place des Palais 1000 Bruxelles'));

// Query with structured address
$query = GeocodeQuery::create('5 Place des Palais 1000 Bruxelles')
    ->withData('streetNumber', '5')
    ->withData('streetName', 'Place des Palais')
    ->withData('postalCode', '1000')
    ->withData('locality', 'Bruxelles');
$results = $geocoder->geocodeQuery($query);

The Versions

30/01 2018

dev-dependabot/composer/phpunit/phpunit-6.3.star|6.5.star

dev-dependabot/composer/phpunit/phpunit-6.3.star|6.5.star

Geocoder bpost adapter

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jonathan Beliën