A Symfony2 Bundle to handle geographic location of your entities

Installs: 602

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type: symfony-bundle

0.4.0 2015-10-02 13:51 UTC


A Symfony2 Bundle to handle locations. This provided a Locaiton object with differnet parts to clearly identify a location.


1. Install with composer:

php composer.phar require happyr/location-bundle

2. Enable the bundle:

// app/AppKernel.php

public function registerBundles()
    $bundles = array(
        // ...
        new Happyr\LocationBundle\HappyrLocationBundle(),

3. Add a geocoder

You need to specify a geocoder service to in the coniguration. The geoder must inplement the GeocoderInterface

    geocoder_service: 'acme.geocoder'


//any form 
public function buildForm(FormBuilderInterface $builder, array $options)
            ->add('location', 'location', array(