PHPackages                             juskiewicz/geolocation - 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. [API Development](/categories/api)
4. /
5. juskiewicz/geolocation

ActiveLibrary[API Development](/categories/api)

juskiewicz/geolocation
======================

Biblioteka obsługująca Geocoding API firmy Google

v1.1(7y ago)010MITPHPPHP &gt;=7.2

Since Nov 14Pushed 7y agoCompare

[ Source](https://github.com/juskiewicz/Geolocation)[ Packagist](https://packagist.org/packages/juskiewicz/geolocation)[ Docs](https://github.com/juskiewicz/geolocation)[ RSS](/packages/juskiewicz-geolocation/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Geolocation klasa obsługująca Google Maps API
=============================================

[](#geolocation-klasa-obsługująca-google-maps-api)

[![Latest Stable Version](https://camo.githubusercontent.com/b2a08401838dd5c8cf6033a89af761207693ce968249e02d882bf933130e535f/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a75736b69657769637a2f67656f6c6f636174696f6e2e737667)](https://packagist.org/packages/juskiewicz/geolocation)[![License](https://camo.githubusercontent.com/5a911ddcd16b9110e7821386ffd8d637005a8b856c14a3c0861b955e91da4eba/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265792e737667)](https://github.com/juskiewicz/geolocation/blob/master/LICENSE)

Klasa Geolocation łączy się z Google Maps API i wyszukuje współrzędne lub adres.

Instalacja
----------

[](#instalacja)

### Composer

[](#composer)

Za pomocą [Composer](https://getcomposer.org) możesz zawsze pobrać najnowszą wersję.

```
composer require juskiewicz/geolocation
```

Sprawdź w [Packagist](https://packagist.org/packages/juskiewicz/geolocation).

### Przykłady użycia

[](#przykłady-użycia)

**getCoordinatesByObject**

> Pobiera obiekt Coordinates za pomocą obiektu Address.

```
$streetName = 'Maltańska';
$streetNumber = '1',
$postalCode = '61-131',
$locality = 'Poznań',
$country = 'Polska',

$address = new Address(
    null,
    $streetName,
    $streetNumber,
    $postalCode,
    $locality,
    $country
);

$geolocation = new Geolocation('YOUR_GOOGLE_MAPS_API_KEY', 'pl', 'pl');
$coordinates = $coordinates = $geolocation->getCoordinatesByObject($address);

// Współrzędne
$latitude = $coordinates->getLatitude();
$longitude = $coordinates->getLongitude();
$tablica = $coordinates->toArray();
```

**getCoordinatesByString**

> Pobiera obiekt Coordinates za pomocą stringu.

```
$address = "Maltańska 1, 61-131 Poznań, Polska";
$geolocation = new Geolocation('YOUR_GOOGLE_MAPS_API_KEY', 'pl', 'pl');
$coordinates = $geolocation->getCoordinatesByString($address);
```

**getAddress**

> Pobiera obiekt Address za pomocą obiektu Coordinates.

```
$latitude = 51.8990865;
$longitude = 17.7863699;

$coordinates = new Coordinates($latitude, $longitude);

$geolocation = new Geolocation('YOUR_GOOGLE_MAPS_API_KEY','pl', 'pl');
$address = $geolocation->getAddress($coordinates);
```

Sprawdź źródło [ klasy Geolocation](./src/Geolocation.php). Sprawdź źródło [ klasy Address](./src/Model/Address.php). Sprawdź źródło [ klasy Coordinates](./src/Model/Coordinates.php).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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 ~0 days

Total

2

Last Release

2733d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24728fdd124483bba03269b6f369a53421165d21583506531ed966b5d4d46ed0?d=identicon)[juskiewicz](/maintainers/juskiewicz)

---

Top Contributors

[![juskiewicz](https://avatars.githubusercontent.com/u/42205823?v=4)](https://github.com/juskiewicz "juskiewicz (9 commits)")

---

Tags

phpapigeocodinggooglegeolocationmaps

### Embed Badge

![Health badge](/badges/juskiewicz-geolocation/health.svg)

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

###  Alternatives

[jeroendesloovere/geolocation-php-api

This Geolocation PHP class connects to Google Maps API to find latitude/longitude or address.

75316.8k4](/packages/jeroendesloovere-geolocation-php-api)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[jcf/geocode

Google Geocoding API for Laravel

48160.5k](/packages/jcf-geocode)[biscolab/google-maps-php-sdk

Google Maps PHP SDK.

14215.1k](/packages/biscolab-google-maps-php-sdk)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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