定制 ldebrouwer/distance 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ldebrouwer/distance

最新稳定版本:v1.0

Composer 安装命令:

composer require ldebrouwer/distance

包简介

Distance helps you calculate the distance between GPS coordinates, in vanilla PHP. Pure and simple.

README 文档

README

Tests Latest Stable Version Total Downloads Latest Unstable Version License

Distance helps you calculate the distance between GPS coordinates, in vanilla PHP. Pure and simple.

Installation

Using Composer

When using Composer you can always load in the latest version.

{
    "require": {
        "ldebrouwer/distance": "^1.0"
    }
}

Check it out on Packagist.

Usage

$distance = new Distance()
    ->setFormula(Formula::HAVERSINE)
    ->setUnit(Unit::KILOMETRES)
    ->between(37.331741, -122.030333, 37.422546, -122.084250);

Still to come

  • Expanded unit support.
  • Documentation.

统计信息

  • 总下载量: 103
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-25