PHPackages                             baraja-core/geocoder - 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. baraja-core/geocoder

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

baraja-core/geocoder
====================

Rewrite real address to geo coordinates.

v1.1.0(4y ago)216.2k2PHPPHP ^8.0

Since Sep 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/baraja-core/geocoder)[ Packagist](https://packagist.org/packages/baraja-core/geocoder)[ Docs](https://github.com/baraja-core/geocoder)[ RSS](/packages/baraja-core-geocoder/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)Dependencies (9)Versions (3)Used By (2)

Simple PHP Geocoder
===================

[](#simple-php-geocoder)

Rewrite real address to geo coordinates.

Idea
----

[](#idea)

The task of the address geocoding process is to rewrite a real address (which we get from the user or from another API) into real GPS coordinates. If the address is too general and represents a large area, we return the middle point in that area.

The process of transcribing an address to GPS is not always reliable and accurate. Data from many sources is used, but in some cases the transcription may fail or return an incorrect result.

When using a geocoder, always validate the output coordinates against a preset area in your application.

How to use
----------

[](#how-to-use)

Simple create instance and call method:

```
$geocoder = new \Baraja\Geocoder\Geocoder();
$coordinates = new $geocoder->decode('Náměstí Míru Praha');

echo $coordinates->getLatitude(); // 50.075075836281066
echo $coordinates->getLongitude(); // 14.437529917970826
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

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

Every ~111 days

Total

2

Last Release

1587d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382204?v=4)[baraja](/maintainers/baraja)[@baraja](https://github.com/baraja)

---

Top Contributors

[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (11 commits)")

---

Tags

addresscrossgeogeocodergpsrewrite

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/baraja-core-geocoder/health.svg)

```
[![Health](https://phpackages.com/badges/baraja-core-geocoder/health.svg)](https://phpackages.com/packages/baraja-core-geocoder)
```

###  Alternatives

[kim/activity

Easily retrieve a list of users and guests that are online.

12830.4k](/packages/kim-activity)[nahid/presento

Presento is a package for PHP data presenter

747.2k](/packages/nahid-presento)[kzykhys/text

Simple text manipulation library for PHP5.4

544.5k1](/packages/kzykhys-text)

PHPackages © 2026

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