title: Convert GPS location to fully formatted address- via button.
body: <p>I need to convert gps location to a formatted address and pass it into the next page of my website.below is my code. i am just not sure of what parameters to pass over. Geo-location is very new to me.</p>
  
  <pre><code>function initialize()
  
      {
      var mapProp = {
        center:new google.maps.LatLng(55.125287,-6.668422),//maplocation
        zoom:10,
        mapTypeId:google.maps.MapTypeId.ROADMAP
        };
  
  
      var map=new google.maps.Map(document.getElementById("map-canvas"),mapProp);
  
  
  
      if(navigator.geolocation) {
          navigator.geolocation.getCurrentPosition(function(position) 
          {
            var pos = new google.maps.LatLng(position.coords.latitude,
                                             position.coords.longitude);//get current gps position
  
  
  
  var infowindow = new google.maps.InfoWindow({
              map: map,
              position: pos,
              content:'You are here'//marker feedback
            });
  
            map.setCenter(pos);
          }, function() {
            handleNoGeolocation(true);
          });
        } else {
          // Browser doesn't support Geolocation
          handleNoGeolocation(false);
        }
      }
  
      function handleNoGeolocation(errorFlag) {
        if (errorFlag) {
          var content = 'Error: The Geolocation service failed.';
        } else {
          var content = 'Error: Your browser doesn\'t support geolocation.';
        }
  
        var infowindow = new google.maps.InfoWindow(options);
        map.setCenter(options.position);
      }
  
  
      google.maps.event.addDomListener(window, 'load', initialize);
  </code></pre>