Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This gist has a sample API call using PHP Google places API client.
require_once 'googleplaces.class.php';
$googlePlaces = new GooglePlaces(array(
'apiKey' => "YOUR_API_KEY"
$query['query'] = "Burger in Berlin";
$places = $googlePlaces->getLocationsByTextSearch($query);
$decoded_data = json_decode($places, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment