Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $geocode = file_get_contents('https://maps.google.com/maps/api/geocode/json?key=AIzaSyC2QUiue7-QhtLVQlPyW9rvpRg2dWhQgi0&address=' . $address . '&sensor=false');
- $output = json_decode($geocode);
- $latitude = $output->results[0]->geometry->location->lat;
- $longitude = $output->results[0]->geometry->location->lng;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement