davidvandertuijn/geocode
最新稳定版本:4.3
Composer 安装命令:
composer require davidvandertuijn/geocode
包简介
Geocode
README 文档
README
Geocoding is the process of converting addresses, place names, or other location identifiers into geographic coordinates (latitude and longitude). This essential functionality enables various applications and services to accurately locate and visualize locations on a map.
Register an API Key
Your application's API key. This key identifies your application for purposes of quota management. Learn how to get a key.
Install
composer require davidvandertuijn/geocode
Usage
use Davidvandertuijn\Geocode;
Request
$geocode = new Geocode(); $geocode->setApiKey(''); // Your application's API key. $geocode->setAddress('Westblaak 180, 3012 KN, Rotterdam, NL'); if ($geocode->request()) { $latitude = $geocode->getLatitude(); // 51.9163212 $longitude = $geocode->getLongitude(); // 4.475754 }
统计信息
- 总下载量: 2.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-10