8000 GitHub - meiweijia/lbs: A lbs library,Support multiple service providers.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ lbs Public

A lbs library,Support multiple service providers.

License

Notifications You must be signed in to change notification settings

meiweijia/lbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#LBS插件库

支持 Google、高德、腾讯、百度

Install using composer:

composer require kubill/lbs

配置

在使用之前,去个平台获取相应的key

基本用法

use Kubill\Lbs\GeoCoder;

$geoCoder = new GeoCoder($key,$driver);
$geoCoder->addr2coder($addr);

在 laravel 中使用

php artisan vendor:publish --provider="Kubill\Lbs\ServiceProvider"

配置 .env

LBS_DRIVER=tencent
LBS_KEY=xxxxx

服务名访问

app('GeoCoder')->addr2coder('地址');

Facade

\Kubill\Lbs\Facades\GeoCoder::addr2coder('地址');

License

Lbs is licensed under The MIT License (MIT).

About

A lbs library,Support multiple service providers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0