PHP code example of kubill / lbs
1. Go to this page and download the library: Download kubill/lbs 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/ */
kubill / lbs example snippets
use Kubill\Lbs\GeoCoder;
$geoCoder = new GeoCoder($key,$driver);
$geoCoder->addr2coder($addr);
php artisan vendor:publish --provider="Kubill\Lbs\ServiceProvider"
LBS_DRIVER=tencent
LBS_KEY=xxxxx
app('GeoCoder')->addr2coder('地址');
\Kubill\Lbs\Facades\GeoCoder::addr2coder('地址');