geocoder-php/yandex-provider
最新稳定版本:4.6.0
Composer 安装命令:
composer require geocoder-php/yandex-provider
包简介
Geocoder Yandex adapter
README 文档
README
This is the Yandex provider from the PHP Geocoder. This is a READ ONLY repository. See the main repo for information and documentation.
Install
composer require geocoder-php/yandex-provider
Usage
The API now requires an API key. See here for more information.
$httpClient = new \Http\Discovery\Psr18Client(); $provider = new \Geocoder\Provider\Yandex\Yandex($httpClient, null, '<your-api-key>); $result = $geocoder->geocodeQuery(GeocodeQuery::create('ул.Ленина, 19, Минск 220030, Республика Беларусь')); $result = $geocoder->reverseQuery(ReverseQuery::fromCoordinates(...));
Note
The default language-locale is ru-RU, you can choose between uk-UA, be-BY,
en-US, en-BR and tr-TR.
It's possible to precise the toponym to get more accurate result for reverse geocoding:
house, street, metro, district and locality.
Contribute
Contributions are very welcome! Send a pull request to the main repository or report any issues you find on the issue tracker.
统计信息
- 总下载量: 254.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-03