Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Функция определения адреса по координатам
- function Getgeocode($lat, $lon) {
- $URL = "http://maps.googleapis.com/maps/api/geocode/json?latlng=$lat,$lon&sensor=false&language=ru";
- $data = getUrl( $URL );
- $json = json_decode( $data );
- $res = $json->results[0]->formatted_address;
- return $res;
- }
Add Comment
Please, Sign In to add comment