2017 © Pedro Peláez
 

symfony-bundle google-maps-bundle

Anonymation Google Maps bundle

image

ano/google-maps-bundle

Anonymation Google Maps bundle

  • Monday, July 2, 2012
  • by Delendial
  • Repository
  • 1 Watchers
  • 5 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Provides abstraction of Google Maps API WS., (*1)

For now, only GeocodeAPI service is implemented. Other implementations and documentation will come later., (*2)

Very fast doc :-)

Service

use Ano\Bundle\GoogleMapsBundle\Service\GeocodeAPIQuery;

// ...

$geocode = new GeocodeAPIQuery(array(
    'address' => '13 bis avenue de la Motte Picquet 75007 PARIS',
    'sensor'  => 'false',
));

$result = $geocode->getResult();

// $address = $result->getAddress();
// $address->getFormattedAddress();
// $address->getStreetNumber();
// $address->getStreetName();
// $address->getZipCode();
// ...

// $geometry = $result->getGeometry();
// $geometry->getLatitude();
// $geometry->getLongitude();

Validator

<property name="address">
    <constraint name="Ano\Bundle\GoogleMapsBundle\Validator\Constraints\Address">
        <option name="invalidAddressMessage">address.InvalidAddress</option>
        <option name="notSpecificEnoughMessage">address.NotSpecificEnough</option>
    </constraint>
</property>

The Versions

02/07 2012

dev-master

9999999-dev

Anonymation Google Maps bundle

  Sources   Download

MIT

The Requires

 

google map google-maps