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

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

eslavon/geocoder
================

The library, to obtain the geographical coordinates of the city, by its name

16PHP

Since Jan 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/eslavon/Geocoder)[ Packagist](https://packagist.org/packages/eslavon/geocoder)[ RSS](/packages/eslavon-geocoder/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Geocoder
========

[](#geocoder)

EN: The library, to obtain the geographical coordinates of the city, by its name.

RU: Библиотека, для получения географических координат населенного пункта, по его названию.

[![Packagist](https://camo.githubusercontent.com/390a9548d594cbd6074a66d8245fe7bf911d7f599b63b7433d78639d412bbf09/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b61676973742d76312e302d677265656e)](https://packagist.org/packages/eslavon/geocoder)[![PHP Version](https://camo.githubusercontent.com/87e70f434f5f98d50ff73070d92464250dabfd960c2abef7ce789f76691911fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d76253230372e332d627269676874677265656e)](https://www.php.net/releases/7_3_0.php)

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

[](#installation)

- EN: The Eslavon Geocoder can be installed using Composer by running the following command:
- RU: Установить библиотеку можно с помощью Composer, выполнив следующую команду:

```
composer require eslavon/geocoder

```

Example
-------

[](#example)

```
require __DIR__ . "/vendor/autoload.php";

use Eslavon\Geocoder\Geocoder;

$address = "Иваново";
$geocoder = new Geocoder($address);
$response = $geocoder->getResponse();
var_dump($response);
```

### Result

[](#result)

```
array(9) {
    [0]=> array(4) {
        ["country"]=> string(12) "Россия"
        ["address"]=> string(35) "Ивановская область"
        ["longitude"]=> float(40.97374)
        ["latitude"]=> float(56.998444)
    }
    [1]=> array(4) {
        ["country"]=> string(16) "Беларусь"
        ["address"]=> string(33) "Брестская область"
        ["longitude"]=> float(25.531807)
        ["latitude"]=> float(52.142063)
    }
    [3]=> array(4) {
        ["country"]=> string(12) "Россия"
        ["address"]=> string(35) "Московская область"
        ["longitude"]=> float(39.227577)
        ["latitude"]=> float(55.379974)
    }
    [4]=> array(4) {
        ["country"]=> string(12) "Россия"
        ["address"]=> string(71) "Ленинградская область Кировский район"
        ["longitude"]=> float(31.102154)
        ["latitude"]=> float(59.66092)
    }
    [5]=> array(4) {
        ["country"]=> string(12) "Россия"
        ["address"]=> string(73) "Нижегородская область Городецкий район"
        ["longitude"]=> float(43.4175)
        ["latitude"]=> float(56.691113)
    }
    [6]=> array(4) {
        ["country"]=> string(12) "Россия"
        ["address"]=> string(65) "Псковская область Островский район"
        ["longitude"]=> float(28.2314)
        ["latitude"]=> float(57.1738)
    }
    [7]=> array(4) {
        ["country"]=> string(12) "Россия"
        ["address"]=> string(65) "Псковская область Невельский район"
        ["longitude"]=> float(29.992577)
        ["latitude"]=> float(56.05326)
    }
    [8]=> array(4) {
        ["country"]=> string(12) "Россия"
        ["address"]=> string(71) "Псковская область Великолукский район"
        ["longitude"]=> float(30.253893)
        ["latitude"]=> float(56.4623)
    }
    [9]=> array(4) {
        ["country"]=> string(12) "Россия"
        ["address"]=> string(73) "Вологодская область Череповецкий район"
        ["longitude"]=> float(37.430183)
        ["latitude"]=> float(59.508274)
    }
}
```

Полезные материалы (RU)
-----------------------

[](#полезные-материалы-ru)

- Описание API сервиса геокодирования
- Спецификация формата GeoJSON (RU): [http://gis-lab.info/docs/geojson\_ru.html](http://gis-lab.info/docs/geojson_ru.html)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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://www.gravatar.com/avatar/9f5d218ae11822442ffb01be68d39ad8ce9afb5db85a620b3212bd60a5cb76fc?d=identicon)[Eslavon](/maintainers/Eslavon)

---

Top Contributors

[![eslavon](https://avatars.githubusercontent.com/u/46901350?v=4)](https://github.com/eslavon "eslavon (22 commits)")

### Embed Badge

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

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

PHPackages © 2026

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