2017 © Pedro Peláez
 

library google-maps-geocode-api

Simple PHP wrapper for the Google Maps Geocode API

image

marcoboom/google-maps-geocode-api

Simple PHP wrapper for the Google Maps Geocode API

  • Friday, July 24, 2015
  • by marcoboom
  • Repository
  • 1 Watchers
  • 0 Stars
  • 215 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 69 % Grown

The README.md

Google Maps Geocode API

Simple PHP wrapper for the Google Maps Geocode API, (*1)

Installation and Requirements

First, you'll need to require the package with Composer:, (*2)

$ composer require marcoboom/google-maps-geocode-api

This package requires PHP 5.4 and Guzzle, (*3)

Usage


$geo = new GoogleMapsGeocodeApi\Geocode("Kalverstraat 100 Amsterdam"); echo "Street: ".$geo->street().PHP_EOL; echo "Housenumber: ".$geo->housenumber().PHP_EOL; echo "Postcode: ".$geo->postcode().PHP_EOL; echo "City: ".$geo->city().PHP_EOL; echo "Town: ".$geo->town().PHP_EOL; echo "Province: ".$geo->state().PHP_EOL; echo "Country: ".$geo->country().PHP_EOL; echo "Country code: ".$geo->country_code().PHP_EOL; echo "Latitude: ".$geo->lat().PHP_EOL; echo "Longitude: ".$geo->lon().PHP_EOL; echo "Formatted address: ".$geo->formatted().PHP_EOL;

The Versions

24/07 2015

dev-master

9999999-dev

Simple PHP wrapper for the Google Maps Geocode API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Marco boom

24/07 2015

2.0.1

2.0.1.0

Simple PHP wrapper for the Google Maps Geocode API

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Marco boom

07/03 2015

1.0.0

1.0.0.0

Simple PHP wrapper for the Google Maps Geocode API

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Marco boom