This gist has a sample API call using PHP Google places API client.
<?php | |
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); | |
print_r($decoded_data); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment