PHPackages                             weejames/geotools - 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. weejames/geotools

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

weejames/geotools
=================

A lightweight set of tools for working with geodata in PHP.

06PHP

Since Aug 10Pushed 11y agoCompare

[ Source](https://github.com/weejames/geotools)[ Packagist](https://packagist.org/packages/weejames/geotools)[ RSS](/packages/weejames-geotools/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Geotools
========

[](#geotools)

[![Build Status](https://camo.githubusercontent.com/d54e2245438312b9b7d9c81485374c3ebbd160501a121216cb3e1b519d83de1c/68747470733a2f2f7472617669732d63692e6f72672f7765656a616d65732f67656f746f6f6c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/weejames/geotools)

A library that provides some simple tools for working with location data.

Distance Calculations
---------------------

[](#distance-calculations)

```
$startPoint = new \WeeJames\Geotools\Geopoint(
    55.8580,
    4.2590
);

$targetPoint = new \WeeJames\Geotools\Geopoint(
    40.7127,
    74.0059
);

$distanceToTarget = $startPoint
                        ->distance()
                        ->to($targetPoint)
                        ->using(\WeeJames\Geotools\Tools::ALGORITHM_HAVERSINE)
                        ->is();
```

### Available algorithms

[](#available-algorithms)

Haversine `\WeeJames\Geotools\Tools::ALGORITHM_HAVERSINE` (Most accurate)

Flat (default) `\WeeJames\Geotools\Tools::ALGORITHM_FLAT` (Faster, but loses accuracy over long distances)

### Available units

[](#available-units)

Kilometers `\WeeJames\Geotools\Tools::GEO_UNIT_KM`

Miles `\WeeJames\Geotools\Tools::GEO_UNIT_MILES`

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/210489?v=4)[James Constable](/maintainers/weejames)[@weejames](https://github.com/weejames)

---

Top Contributors

[![weejames](https://avatars.githubusercontent.com/u/210489?v=4)](https://github.com/weejames "weejames (16 commits)")

### Embed Badge

![Health badge](/badges/weejames-geotools/health.svg)

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

###  Alternatives

[algo26-matthias/idna-convert

A library for encoding and decoding internationalized domain names

712.5M18](/packages/algo26-matthias-idna-convert)

PHPackages © 2026

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