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

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

navjobs/google-geocoder
=======================

Abstraction for geocoding through Google Maps.

0.2.1(7y ago)454.6k1MITPHPPHP &gt;=5.6.0

Since Nov 10Pushed 7y ago5 watchersCompare

[ Source](https://github.com/navjobs/google-geocoder)[ Packagist](https://packagist.org/packages/navjobs/google-geocoder)[ Docs](https://constructionjobs.com)[ RSS](/packages/navjobs-google-geocoder/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (5)Versions (8)Used By (0)

[![Circle CI](https://camo.githubusercontent.com/fef87f2f6f7b352d38f60c8c4530d3e1e2c55df6c1577d9036e557458933de70/68747470733a2f2f636972636c6563692e636f6d2f67682f436f6e737472756374696f6e4a6f62732f676f6f676c652d67656f636f6465722e7376673f7374796c653d736869656c64)](https://circleci.com/gh/ConstructionJobs/google-geocoder)[![Code Climate](https://camo.githubusercontent.com/55e57921709424044dba5dd1dcc0e9da9d5bf9962491cdc9c23f19625531b442/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6e61766a6f62732f676f6f676c652d67656f636f6465722f6261646765732f6770612e737667)](https://codeclimate.com/github/navjobs/google-geocoder)

###### Google Geocoding

[](#google-geocoding)

Provides an abstraction for requests to Google Maps geocoding service.

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

[](#installation)

You can install this package via Composer using this command:

```
composer require ConstructionJobs/google-geocoder
```

Laravel Installation
--------------------

[](#laravel-installation)

This package comes with a service provider for use with Laravel. You will not need to do anything if you're using laravel version 5.5 and up.

If you are using laravel 5.4 or below, to install the service provider:

```
// config/app.php
'providers' => [
    // other providers
    'ConstructionJobs\GoogleGeocoder\GoogleGeocoderServiceProvider'
];
```

Also you must publish the config file:

```
php artisan vendor:publish --provider="ConstructionJobs\GoogleGeocoder\GoogleGeocoderServiceProvider"
```

The config file allows you to set your `api key`, `language` and `region`.

Usage
-----

[](#usage)

There are three ways that you may use this package.

```
// Geocode an address
$geocoder = new Geocoder;
$geocoder->geocode('New York, NY');

// Reverse geocode from coordinates
$geocoder = new Geocoder;
$geocoder->reverseByCoordinates(40.7127837, -74.0059413);

// Reverse geocode from a Google place id.
$geocoder = new Geocoder;
$geocoder->reverseByPlaceId('ChIJOwg_06VPwokRYv534QaPC8g');
```

All of these methods return a standard response format as follows:

```
[
    'address' => 'New York, NY, USA',
    'latitude' => 40.7127837,
    'longitude' => -74.0059413,
    'place_id' => ChIJOwg_06VPwokRYv534QaPC8g,
    'types' => [
        'locality',
        'political'
    ]
    $bounds = [
        'northeast' => [
            'latitude' => 40.9152555,
            'longitude' => -73.7002721,
        ],
        'southwest' => [
            'latitude' => 40.496044,
            'longitude' => -74.255735,
        ]
    ];
}
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.6% 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 ~138 days

Recently: every ~208 days

Total

7

Last Release

2688d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3682518?v=4)[Josh Forbes](/maintainers/joshforbes)[@joshforbes](https://github.com/joshforbes)

---

Top Contributors

[![joshforbes](https://avatars.githubusercontent.com/u/3682518?v=4)](https://github.com/joshforbes "joshforbes (24 commits)")[![eknowlton](https://avatars.githubusercontent.com/u/544791?v=4)](https://github.com/eknowlton "eknowlton (9 commits)")[![jhkiehna](https://avatars.githubusercontent.com/u/33327590?v=4)](https://github.com/jhkiehna "jhkiehna (1 commits)")

---

Tags

geocodegeocoderlaravellaravel-packagephpgeocodinggooglemaps

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k89](/packages/nativephp-mobile)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M341](/packages/psalm-plugin-laravel)[illuminate/http

The Illuminate Http package.

11937.9M6.7k](/packages/illuminate-http)[toin0u/geocoder-laravel

Geocoder Service Provider for Laravel

7615.4M17](/packages/toin0u-geocoder-laravel)

PHPackages © 2026

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