承接 bogdaan/open-location-code 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bogdaan/open-location-code

Composer 安装命令:

composer require bogdaan/open-location-code

包简介

Open location code for php

README 文档

README

Build Status

Open location code for php

Open Location Codes are a way of encoding location into a form that is easier to use than latitude and longitude.

They are designed to be used as a replacement for street addresses, especially in places where buildings aren't numbered or > streets aren't named.

Open Location Codes represent an area, not a point. As digits are added to a code, the area shrinks, so a long code is more accurate than a short code.

A location can be converted into a code, and a code can be converted back to a location completely offline.

Based on javascript version from this repo.

Usage

Install via composer:

$ composer require bogdaan/open-location-code

Examples:

use OpenLocationCode\OpenLocationCode;

// encode
var_dump(OpenLocationCode::encode(48.41, 34.81));

// decode (return area array)
var_dump(OpenLocationCode::decode("44870000+"));

Method OpenLocationCode::decode returns array with following keys:

  • latitudeLo, longitudeLo - the coordinates of the lower left corner of the square
  • latitudeHi, longitudeHi - the coordinates of the top right corner of the square
  • codeLength - decoded length

Links

统计信息

  • 总下载量: 71.72k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固