2017 © Pedro Peláez
 

library geolocation-bundle

This Geolocation Symony2 Bundle uses the geolocation-php-api class which finds latitude/longitude from an address or reverse using Google Maps API.

image

jeroendesloovere/geolocation-bundle

This Geolocation Symony2 Bundle uses the geolocation-php-api class which finds latitude/longitude from an address or reverse using Google Maps API.

  • Wednesday, June 10, 2015
  • by jeroendesloovere
  • Repository
  • 1 Watchers
  • 2 Stars
  • 15,451 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

Geolocation bundle

This Geolocation Symony2 Bundle uses the geolocation-php-api class using Google Maps API which finds latitude/longitude from an address or reverse., (*1)

Usage

Installation

``` json { "require": { "jeroendesloovere/geolocation-bundle": "1.0.*" } }, (*2)

> Adding this code in your `composer.json` file will get the [latest :package_name Packagist package](https://packagist.org/packages/jeroendesloovere/geolocation-bundle using [Composer](https://getcomposer.org).

and in app/AppKernel.php
```php
public function registerBundles()
{
    $bundles = array(
        // ...,
        new JeroenDesloovere\Bundle\GeolocationBundle\JeroenDesloovereGeolocationBundle()
    );
}

Example

$geolocation = $this->get('jeroendesloovere.geolocation');

// define result
$result = $geolocation::getCoordinates('Koningin Maria Hendrikaplein', '1', 'Gent', '9000', 'belgië');

// dump result
echo 'Coordinates = ' . $result['latitude'] . ', ' . $result['longitude'] . '<br/>';

// define result: @return array(label, street, streetNumber, city, cityLocal, zip, country, countryLabel)
$result = $geolocation::getAddress(51.0363935, 3.7121008);

// define result
echo 'Address = ' . $result['label'] . '<br/>';

The Versions

10/06 2015

dev-master

9999999-dev https://github.com/jeroendesloovere/geolocation-bundle

This Geolocation Symony2 Bundle uses the geolocation-php-api class which finds latitude/longitude from an address or reverse using Google Maps API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php address geolocation latitude longitude symfony2 bundle

09/06 2015

0.0.2

0.0.2.0 https://github.com/jeroendesloovere/geolocation-bundle

This Geolocation Symony2 Bundle uses the geolocation-php-api class which finds latitude/longitude from an address or reverse using Google Maps API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php address geolocation latitude longitude symfony2 bundle

09/06 2015

1.0.0

1.0.0.0 https://github.com/jeroendesloovere/geolocation-bundle

This Geolocation Symony2 Bundle uses the geolocation-php-api class which finds latitude/longitude from an address or reverse using Google Maps API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php address geolocation latitude longitude symfony2 bundle

09/06 2015

0.0.1

0.0.1.0 https://github.com/jeroendesloovere/geolocation-bundle

This Geolocation Symony2 Bundle uses the geolocation-php-api class which finds latitude/longitude from an address or reverse using Google Maps API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php address geolocation latitude longitude symfony2 bundle