smochin / openstreetmap-php-client
为 openstreetmap.org 简单的 PHP 客户端
1.0.0
2016-12-27 19:35 UTC
Requires
- php: >=7.0
- ext-json: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ~5.5
This package is auto-updated.
Last update: 2024-09-07 19:40:14 UTC
README
这是一个为 http://openstreetmap.org 简单的 PHP 客户端。
安装
该软件包可在 Packagist 上找到,您可以使用 Composer 进行安装。
composer require smochin/openstreetmap-php-client
依赖关系
- PHP 7
- json 扩展
- cURL 扩展
开始使用
初始化爬虫
$client = new Smochin\OpenStreetMap\Client();
反向地理编码
$address = $client->reverse(-8.047562, -34.876964);