salavert/open-location-code
最新稳定版本:v1.0
Composer 安装命令:
composer require salavert/open-location-code
包简介
PHP port of Google Open Location Codes.
README 文档
README
PHP port of Google Open Location Codes.
Open Location Codes are short, generated codes that can be used like street addresses, for places where street addresses don't exist.
Open Location Codes were developed at Google's Zurich engineering office, and then open sourced so that they can be freely used.
Usage
Encode latitude and longitude to obtain a code
$latitude = 51.3701125; $longitude = -1.217765625; $olc = new OpenLocationCodes(); $openLocationCode = $olc->encode($latitude, $longitude); // Will return 9C3W9QCJ+2V
Installation
Update your composer.json
"require": { "salavert/open-location-code": "1.*" }
or use composer's require command:
composer require salavert/open-location-code:1.*
Original code by Google
统计信息
- 总下载量: 7.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache
- 更新时间: 2015-05-02