2017 © Pedro Peláez
 

library google-geocoder

Easy wrap Google geocoder web service

image

rezzza/google-geocoder

Easy wrap Google geocoder web service

  • Monday, January 4, 2016
  • by tyx
  • Repository
  • 6 Watchers
  • 2 Stars
  • 1,145 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

google-geocoder

Build Status Simple lib to wrap Google geocoder Web Service, (*1)

Installation

$ composer require rezzza/google-geocoder

Usage

You should build on your own the repository :, (*2)

$googleAddressRepository = new Rezzza\GoogleGeocoder\GoogleAddressRepository(
    new Rezzza\GoogleGeocoder\GoogleGeocodeClient(
        new Ivory\HttpAdapter\CurlHttpAdapter(),
        'YOUR_GOOGLE_API_KEY'
    ),
    new Rezzza\GoogleGeocoder\Model\AddressFactory
);

Then you can use all methods available in the repository : * findByPlaceIdWithLanguage($placeId, $language) * findByCoordinatesWithLanguage($latitude, $longitude, $language) * findByAddressWithLanguage($address, $language) * findByLocalityAndCountryCodeWithLanguage($locality, $countryCode, $language) * findByLocalityAndCountryCodeAndAministrativeAreaWithLanguage($locality, $countryCode, $administrativeArea, $language), (*3)

All these methods will return a Rezzza\GoogleGeocoder\Model\AddressCollection except the first one that will return directly a Rezzza\GoogleGeocoder\Model\Address (as a placeId is uniq)., (*4)

The Versions

04/01 2016

dev-master

9999999-dev https://github.com/rezzza/google-geocoder

Easy wrap Google geocoder web service

  Sources   Download

MIT

The Requires

 

The Development Requires

google geocoder

04/01 2016

v2.1

2.1.0.0 https://github.com/rezzza/google-geocoder

Easy wrap Google geocoder web service

  Sources   Download

MIT

The Requires

 

The Development Requires

google geocoder

10/11 2015

v2.0

2.0.0.0 https://github.com/rezzza/google-geocoder

Easy wrap Google geocoder web service

  Sources   Download

MIT

The Requires

 

The Development Requires

google geocoder

01/10 2015

v1.0.1

1.0.1.0 https://github.com/rezzza/google-geocoder

Easy wrap Google geocoder web service

  Sources   Download

MIT

The Requires

 

The Development Requires

google geocoder

01/10 2015

v1.0

1.0.0.0 https://github.com/rezzza/google-geocoder

Easy wrap Google geocoder web service

  Sources   Download

MIT

The Requires

 

The Development Requires

google geocoder