承接 jtejido/geodesy-php 相关项目开发

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

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

jtejido/geodesy-php

最新稳定版本:1.41

Composer 安装命令:

composer require jtejido/geodesy-php

包简介

PHP library for geodesy functions

README 文档

README

Earth

Geodesy-PHP

Geodesy-PHP is a port of some known geodesic/math functions for getting distance from a known point A to a known point B given their coordinates (good for working out distances between different latitude/longitude data provided by Google Geolocation or any RESTful APIs).

It also supports conversion between units of length, Polar position to Cartesian coordinates, and different Reference Datums.

It provides distance calculations by:

Great-circle distance

  1. Spherical Law of Cosines

  2. Haversine Formula

Ellipsoid Geodesics

  1. Vincenty's Formula

  2. Hubeny's Formula

  3. Thomas' Formula

  4. Andoyer-Lambert Formula

  5. Elliptic Distance

  6. Forsythe-Andoyer-Lambert Formula

Unit Conversion

All operations are set in Metre. But it can also convert distance (and other transformation) values to:

  1. Kilometre

  2. Mile

  3. Nautical Mile

  4. Astronomical Unit

Position Conversion

It also allows coordinate/geographical conversions between the ff:

  1. Polar to Cartesian

  2. Cartesian to Polar

  3. Polar to Web Mercator

  4. Web Mercator to Polar

Transformation Options

Reference Datums are and will be, by default, set to WGS84. You can also transform one coordinate taken from a different source to another (see this for reference), as it also comes with pre-built datums (see the Datum namespace for options).

The following are the transformation options:

  1. 3-Parameter Molodensky Transformation

  2. 7-Parameter Helmert Transformation

  3. 10-Parameter Molodensky-Badekas Transformation

Documentation

You can read about it here

统计信息

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

GitHub 信息

  • Stars: 28
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04