geo6/geocoder-php-bpost-provider
最新稳定版本:v1.4.1
Composer 安装命令:
composer require geo6/geocoder-php-bpost-provider
包简介
Geocoder bpost adapter
README 文档
README
Geocoder PHP is a PHP library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations.
This is the "bpost" provider for the Geocoder PHP.
Coverage: Belgium
API: https://www.bpost.be/site/en/webservice-address
Install
composer require geo6/geocoder-php-bpost-provider
Usage
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);
统计信息
- 总下载量: 78.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-03