evoluty/google-maps-client
Composer 安装命令:
composer require evoluty/google-maps-client
包简介
A PHP Google Maps APIs client
README 文档
README
A PHP client for Google Maps APIs
This library helps building query and call the Google Maps APIs
This will parse results and give usable and typed objects as a result
Installation
Run composer require evoluty/google-maps-client or check directly on the packagist website
Usage
Use like the following (example with the TimeZone API)
$googleClient = new GoogleMapClient('<your_api_key>'); $request = GoogleMapRequest::newTimeZoneRequest( new TimeZoneLocation('39.6034810', '-119.6822510') )->withLanguage(Language::CZECH()); $timeZoneResponse = $googleClient->sendTimeZoneRequest($request);
The response type depends on the API that you are calling and will contain public typed getters that match the Google API response
APIs
At the moment the following API are implemented:
- TimeZone API
- Directions API
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-28