morriszhao / map-api
map api Tengxun Baidu PHP 地址转为经纬度
v1.0
2019-05-01 06:14 UTC
This package is auto-updated.
Last update: 2024-04-27 12:43:43 UTC
README
tengxunmapapi
地址转换为经纬度!
安装
composer require morriszhao/map-api
使用
<?php include '../vendor/autoload.php'; use Map\Tengxun\TengxunMapApi; $address = '四川省成都市天府五街'; $txMapKey = '<YOUR KEY>'; $txMapSecret = '<YOU SECRET>'; $map = new TengxunMapApi($txMapKey, $txMapSecret); print_r($map->getGeocoder($address));