PHPackages                             wr/geocoding-bundle - 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. wr/geocoding-bundle

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

wr/geocoding-bundle
===================

Geocoding bundle for Contao Open Source CMS

0.0.3(8y ago)022LGPL-3.0PHPPHP ^5.6|^7.0

Since Jul 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/webrealisierung-ch/geocoding-bundle)[ Packagist](https://packagist.org/packages/wr/geocoding-bundle)[ Docs](https://github.com/webrealisierung-ch/geocoding-bundle)[ RSS](/packages/wr-geocoding-bundle/feed)WikiDiscussions master Synced 4d ago

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

Geocoding Bundle for the Contao Open Source CMS
===============================================

[](#geocoding-bundle-for-the-contao-open-source-cms)

With this bundle you can easily calculate the geo position from a given address, city, place or country over the Google Geocode API with Contao 4.4.\*

A Google API key is required. You can generate a API key under the following link:

Attention
---------

[](#attention)

This bundle is currently under development. You can use it at your own risk! A stable version will be available soon. Of course you can submit issues and feature requests on the [repository issue section](https://github.com/webrealisierung-ch/geocoding-bundle/issues). Thx!

How to install
--------------

[](#how-to-install)

### Contao Standard Edition

[](#contao-standard-edition)

Run in your project folder the following Composer command to add the Geocoding Bundle to your project:

```
    ./composer require wr/geocoding-bundle
```

Add the Bundle to `app/AppKernel.php` bundles array after all the Contao bundles:

```
public function registerBundles()
    {
        $bundles = [
            .....
            new Wr\GeocodingBundle\WrGeocodingBundle() //Add this line.
        ];

        ....

        return $bundles;
    }
```

Clear the cache and warmup the cache with the following two commands:

```
    ./bin/console cache:clear --no-warmup --env=prod
    ./bin/console cache:warmup  --env=prod
```

Go to the install tool and update the database. Then login into the back end.

### Contao Managed Edition

[](#contao-managed-edition)

**Without the awesome Contao Manager**

Run in your project folder the following Composer command to add the geocoding Bundle to your project:

```
    composer require wr/geocoding-bundle
```

Clear the cache and warmup the cache with the following two commands:

```
    vendor/bin/contao-console cache:clear --no-warmup
    vendor/bin/contao-console cache:warmup
```

Go to the install tool and update the database. Then login into the back end.

**With the awesome Contao Manager**

1. Search in the Contao Manager search bar the bundle `wr/geocoding-bundle` and click on the install button.
2. Go to the install tool and update the database. Then login into the back end.

Dependencies
------------

[](#dependencies)

- `php: ^7.0`
- `symfony/symfony: ^3.3`
- `contao/core-bundle: ^4.4`

Usage
-----

[](#usage)

You can use the class with the container as follow:

```
$container=\Contao\System::getContainer();
$Geocoder=container->get('wr.geocoding.geocoder');
$Geocoder->calculate($address,$country,$apiKey);
```

If the request was successful the geocoder object return the response object from the Google API otherwise it will return NULL.

Alternatively you can access the following properties.

```
$Geocoder->lat; //return the latitute
$Geocoder->lng; //return the longitute
$Geocoder->coords; // return the coordinate in seprated with a coma
$Geocoder->formattedAddress; // return the address formatted by the Google Geocoding API
$Geocoder->placeId; //return the Google Place ID
$Geocoder->types; //return the Google Geo Position type
$Geocoder->status; //return the Google API status
$Geocoder->geocoderResponse; //return the response object form the Google API
```

Licence
-------

[](#licence)

The geocoding bundle is published under the LGPLv3.

Documentation
-------------

[](#documentation)

Unfortunately, at the moment there is no documentation available. But we will fix this as soon as there is a stable version.

Contact/Support
---------------

[](#contactsupport)

For further information feel free and get in contact with us:

Donation
--------

[](#donation)

If you like our work feel free to donate.

There are many ways to donate to the project. The following list contains some possibilities:

- Contribute your code over pull requests.
- Test, test, test and feedback.
- Submit features or issues.
- Tell us a joke.
- [![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EHB7BYWLMPV7Y) You know that every coffee counts while coding:-)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

3

Last Release

3211d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25795392?v=4)[Daniel Steuri](/maintainers/danielsteuri)[@danielsteuri](https://github.com/danielsteuri)

---

Tags

geocodingcodingcontaogooglemaps

### Embed Badge

![Health badge](/badges/wr-geocoding-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/wr-geocoding-bundle/health.svg)](https://phpackages.com/packages/wr-geocoding-bundle)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[madeyourday/contao-rocksolid-custom-elements

Create your own, nestable content elements using a modular system. End the WYSIWYG chaos with your own content elements.

50341.9k12](/packages/madeyourday-contao-rocksolid-custom-elements)[terminal42/contao-leads

Leads extension for Contao Open Source CMS; Store and manage form data with ease!

41167.9k10](/packages/terminal42-contao-leads)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18147.9k9](/packages/terminal42-contao-folderpage)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)

PHPackages © 2026

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