PHPackages                             uax/gps - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. uax/gps

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

uax/gps
=======

GPS Convert

v0.0.1(9y ago)0161MITPHPPHP &gt;=5.3

Since May 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/uax/gps)[ Packagist](https://packagist.org/packages/uax/gps)[ RSS](/packages/uax-gps/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

GPS Convert
===========

[](#gps-convert)

- WGS-84：是国际标准，GPS坐标（Google Earth使用、或者GPS模块）
- GCJ-02：中国坐标偏移标准，Google Map、高德、腾讯使用
- BD-09：百度坐标偏移标准，Baidu Map使用

使用说明
----

[](#使用说明)

```
use GPS\Convert;
```

**WGS-84 to GCJ-02:**

```
Convert.gcj_encrypt();
```

**GCJ-02 to WGS-84 粗略:**

```
Convert.gcj_decrypt();
```

**GCJ-02 to WGS-84 精确(二分极限法):**

```
Convert.gcj_decrypt_exact();
```

**GCJ-02 to BD-09:**

```
Convert.bd_encrypt();
```

**BD-09 to GCJ-02:**

```
Convert.bd_decrypt();
```

**求距离:**

```
Convert.distance();
```

\*\*注意：\*\*本算法 gcj算法、bd算法都非常精确，已经测试通过。（BD转换的结果和百度提供的接口精确到小数点后4位），请放心使用。

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3292d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab0d673740e1b61e873bdd1a967ec1dce05c714070b156b0530538d14bfa1299?d=identicon)[Noah](/maintainers/Noah)

---

Top Contributors

[![uax](https://avatars.githubusercontent.com/u/10324413?v=4)](https://github.com/uax "uax (3 commits)")

### Embed Badge

![Health badge](/badges/uax-gps/health.svg)

```
[![Health](https://phpackages.com/badges/uax-gps/health.svg)](https://phpackages.com/packages/uax-gps)
```

###  Alternatives

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k41.6M267](/packages/tightenco-ziggy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
