Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url="http://maps.googleapis.com/maps/api/geocode/json?address=".urlencode($house_address);
- $json = file_get_contents($url);
- $data = json_decode($json, TRUE);
- $house_address_lat = $data['results'][0]['geometry']['location']['lat'];
- $house_address_long = $data['results'][0]['geometry']['location']['lng'];
Add Comment
Please, Sign In to add comment