Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PHP wrapper class for the Google Places API

tree: 7683266df5

Fetching latest commit…

Cannot retrieve the latest commit at this time

README
PHP wrapper for using the Google Places API. Based on the GPLV2 class created by [André Nosalsky](http://andrenosalsky.com/blog/2011/google-places-api-php-class/).

BASIC USAGE

<?php
require_once('googlePlaces.php');
$apiKey = 'Your Google Places API Key';
$googlePlaces = new googlePlaces($apiKey);

// Set the longitude and the latitude of the location you want to search the surronds of
$latitude = '-33.8804166';
$longitiude = '151.2107662';
$googlePlaces->setLocation($latitude . ',' . $longitude);

$googlePlaces->setRadius(5000);
$results = $googlePlaces->Search();
?>
Something went wrong with that request. Please try again.