function getLocation() {
    if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(showPosition);
    } else {
        alert('Geolocation is not suppurted');
    }
}

function showPosition(pos) {
    currentLocation = {
      lat: pos.coords.latitude,
      lng: pos.coords.longitude
    };
    map.setCenter(currentLocation);
    centerCoordContainer.innerHTML = currentLocation['lat'].toFixed(6) + ' : ' + currentLocation['lng'].toFixed(6);
}

var map, currentLocation, marker;
var centerCoordContainer = document.getElementById('output');
var autocomplete, geocoder;
var countryRestrict = {'country': 'georgia'};

function initMap() {
  map = new google.maps.Map(document.getElementById('map'), {
    zoom: 15
  });

  var input =  document.getElementById('pac-input');
  autocomplete = new google.maps.places.Autocomplete(input);
  // autocomplete.bindTo('bounds', map);
  geocoder = new google.maps.Geocoder;

  autocomplete.addListener('place_changed', function() {
    var place = autocomplete.getPlace();
    map.setCenter(place.geometry.location);

  });

  map.addListener('center_changed', function () {
    var center = map.getCenter();
    centerCoordContainer.innerHTML = center.lat().toFixed(6) + ' : ' + center.lng().toFixed(6);

        geocoder.geocode({'location': { lat:center.lat(), lng: center.lng() }}, function(results, status) {
        if (status === google.maps.GeocoderStatus.OK) {
          if (results[1]) {
            input.value = results[1].formatted_address;
          } else {
            // window.alert('No results found');
            input.value = "No results found";
          }
        }
      });
  })
}

getLocation();

@@ -1263,20 +1263,16 @@
 ed(6);%0A%0A
-    
     geoc
@@ -1369,26 +1369,24 @@
 us) %7B%0A      
-  
 if (status =
@@ -1417,26 +1417,24 @@
 tatus.OK) %7B%0A
-  
         if (
@@ -1445,16 +1445,14 @@
 lts%5B
-1
+0
 %5D) %7B%0A
-  
     
@@ -1479,17 +1479,17 @@
 results%5B
-1
+0
 %5D.format
@@ -1501,18 +1501,16 @@
 ddress;%0A
-  
         
@@ -1528,18 +1528,16 @@
         
-  
 // windo
@@ -1567,34 +1567,32 @@
 nd');%0A          
-  
 input.value = %22N
@@ -1613,20 +1613,8 @@
 d%22;%0A
-          %7D%0A
     
@@ -1619,18 +1619,24 @@
       %7D%0A
-
   
+    %7D%0A
     %7D);%0A

Reverse geocoder is accurated