PHP code example of morriszhao / map-api
1. Go to this page and download the library: Download morriszhao/map-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
morriszhao / map-api example snippets
\Tengxun\TengxunMapApi;
$address = '四川省成都市天府五街';
$txMapKey = '<YOUR KEY>';
$txMapSecret = '<YOU SECRET>';
$map = new TengxunMapApi($txMapKey, $txMapSecret);
print_r($map->getGeocoder($address));