PHPackages                             stanislav-janu/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. stanislav-janu/gps

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

stanislav-janu/gps
==================

GPS extension for nette

v4.0.0(11mo ago)47.7k↓50%MITPHPPHP &gt;=8.3CI passing

Since Apr 19Pushed 11mo ago2 watchersCompare

[ Source](https://github.com/janu-software/gps)[ Packagist](https://packagist.org/packages/stanislav-janu/gps)[ Docs](https://janu.software)[ RSS](/packages/stanislav-janu-gps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (17)Used By (0)

GPS
===

[](#gps)

GPS Point with useful detection and method.

[![Composer](https://github.com/janu-software/gps/actions/workflows/composer.yml/badge.svg)](https://github.com/janu-software/gps/actions/workflows/composer.yml)[![Code style](https://github.com/janu-software/gps/actions/workflows/code_style.yml/badge.svg)](https://github.com/janu-software/gps/actions/workflows/code_style.yml)[![Tester](https://github.com/janu-software/gps/actions/workflows/tester.yml/badge.svg)](https://github.com/janu-software/gps/actions/workflows/tester.yml)[![PhpStan](https://github.com/janu-software/gps/actions/workflows/static_analysis.yml/badge.svg)](https://github.com/janu-software/gps/actions/workflows/static_analysis.yml)

[![Latest Stable Version](https://camo.githubusercontent.com/9afb848adb9eed9f1fef035d5cd344a7860784d8777986c6c5e7ecabdd3a21b6/68747470733a2f2f706f7365722e707567782e6f72672f7374616e69736c61762d6a616e752f6770732f762f737461626c65)](https://packagist.org/packages/stanislav-janu/gps)[![Total Downloads](https://camo.githubusercontent.com/7a5cad09b89c4557dcf7c9ab18d4755524238ddc6cbc0d6e546518dae9ceffd5/68747470733a2f2f706f7365722e707567782e6f72672f7374616e69736c61762d6a616e752f6770732f646f776e6c6f616473)](https://packagist.org/packages/stanislav-janu/gps)[![License](https://camo.githubusercontent.com/3c7e0966994c994df2ac80b860be6b175c441716633d35ea4aa63e477c650ea2/68747470733a2f2f706f7365722e707567782e6f72672f7374616e69736c61762d6a616e752f6770732f6c6963656e7365)](https://packagist.org/packages/stanislav-janu/gps)[![Coverage Status](https://camo.githubusercontent.com/3ae467eaa7e6e5049c4a46d32ae107e01c45e2b921a71a4143a64dd69a4b2a01/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6a616e752d736f6674776172652f6770732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/janu-software/gps?branch=master)

Installation
------------

[](#installation)

```
composer require stanislav-janu/gps

```

Compatibility
-------------

[](#compatibility)

VersionPHPNette Utils4.0^8.3^4.03.0^8.0^4.02.1^8.0^3.22.0^8.0^3.01.1^7.1^2.4 ^3.01.0^7.0^2.4Usage
-----

[](#usage)

```
use JanuSoftware\GPS\GpsPoint;
use JanuSoftware\GPS\GpsPointException;

try {
    $point = GpsPoint::from('49°3\'6.630"N, 14°26\'7.763"E');
    echo $point; // 49.0518417, 14.4354897
    echo $point->lat; // 49.0518417
    echo $point->lng; // 14.4354897
} catch (GpsPointException $exception) {
    echo $exception->getMessage();
}
```

### Accepted formats:

[](#accepted-formats)

- OpenStreetMap URL
- Google Maps URL
- Mapy.com URL
- 49°3'6.630"N, 14°26'7.763"E
- N 49°3.11050', E 14°26.12938'
- 49.0518417N, 14.4354897E
- 49.0518417N,14.4354897E
- 49.0518417, 14.4354897
- 49.0518417,14.4354897
- 49.0518417 14.4354897
- -47.338388,-0.990228
- -47.338388 -0.990228

### Distance

[](#distance)

```
$point1 = GpsPoint::from('some coordinates');
$point2 = GpsPoint::from('some coordinates');
$distance =  $point1->distanceTo($point2); // distance in meters
```

### Google Maps Distance Matrix

[](#google-maps-distance-matrix)

```
...
$distance = $point1->distanceTo($point2, 'Google Maps API key'); // distance in meters
```

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance51

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 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

Every ~198 days

Recently: every ~382 days

Total

16

Last Release

349d ago

Major Versions

v1.1.x-dev → v2.0.02021-03-08

v2.1.x-dev → v3.0.02024-05-16

v3.0.0 → v4.0.02025-06-03

PHP version history (4 changes)v1.0.0PHP &gt;=7.0.0

v1.1.0PHP &gt;=7.1.0

v2.0.0PHP &gt;=8.0

v4.0.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fc7c3d8e1b1a025c720311474d67376248ca2f7bce65e9dba59b688c5d3a5ff?d=identicon)[stanislav-janu](/maintainers/stanislav-janu)

---

Top Contributors

[![stanislav-janu](https://avatars.githubusercontent.com/u/5769861?v=4)](https://github.com/stanislav-janu "stanislav-janu (52 commits)")

---

Tags

coordinatesdistancegeolocationgpsnettephp

###  Code Quality

Static AnalysisRector

### Embed Badge

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

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

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M576](/packages/nette-php-generator)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89152.7M321](/packages/nette-robot-loader)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[nette/component-model

⚛ Nette Component Model

28516.5M92](/packages/nette-component-model)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[contributte/di

Extra contrib to nette/di

465.8M18](/packages/contributte-di)

PHPackages © 2026

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