PHPackages                             superdry/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. superdry/geolocation

ActiveLibrary[API Development](/categories/api)

superdry/geolocation
====================

Geolocation class that connects to Google Maps API

1.0.1(7y ago)01.5kMITPHPPHP &gt;=5.4.16

Since Mar 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/SuperdryPlc/geolocation)[ Packagist](https://packagist.org/packages/superdry/geolocation)[ Docs](https://github.com/SuperdryPlc/geolocation)[ RSS](/packages/superdry-geolocation/feed)WikiDiscussions master Synced 4d ago

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

Geolocation Class
=================

[](#geolocation-class)

[![Latest Stable Version](https://camo.githubusercontent.com/f34e4f66425619ee6aa4a32bab072744a452339ace4dc669934faaeac7294bde/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73757065726472792f67656f6c6f636174696f6e2e737667)](https://packagist.org/packages/superdry/geolocation)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#Installation)
- [Usage](#Usage)
- [Maintainers](#Maintainers)
- [License](#License)

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

[](#installation)

Install Composer

```
$ php -r "readfile('https://getcomposer.org/installer');" | php && php composer.phar install
```

```
$ composer require superdry/geolocation
```

Then include Composer's generated vendor/autoload.php to enable autoloading:

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';
use superdry\geolocation\GeolocationService;
```

### example

[](#example)

**getCoordinates**

> Get latitude/longitude coordinates from address.

```
$street = 'Koningin Maria Hendrikaplein';
$streetNumber = '1';
$city = 'Gent';
$zip = '1';
$country = 'belgium';
$geolocation = new GeolocationService();
$result = $geolocation->getCoordinates(
    $street,
    $streetNumber,
    $city,
    $zip,
    $country
);
```

**getAddress**

> Get address from latitude/longitude coordinates.

```
$latitude = 51.0363935;
$longitude = 3.7121008;
$geolocation = new GeolocationService();
$result = $geolocation->getAddress(
    $latitude,
    $longitude
);
```

Maintainers
-----------

[](#maintainers)

[@SuperdryPlc](https://github.com/SuperdryPlc).

License
-------

[](#license)

[MIT](LICENSE) © SuperdryPlc

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

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

Total

3

Last Release

2620d ago

Major Versions

0.0.1 → 1.0.02019-03-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bd4f9d337bab1d10c25c774b6bc97e8918fc782d4f8fae5d901fa303acbaf1a?d=identicon)[superdry](/maintainers/superdry)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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