anchor.diff:      if (GBrowserIsCompatible()) {
         var map = new GMap2(document.getElementById("map_canvas"));
         map.addControl( new GSmallMapControl() );
  +      geocoder = new GClientGeocoder();
   <% 
     # center the map on the locations
     min_lat = 90; min_long = 180; 
  
positive.code: <%= params[:id] %> <%= params[:lat] %> <%= params[:long] %> 
  - most recent communication was 
  <%= time_ago_in_words(@locations.first.created_at) %> ago.
  </p>
  
  <!-- Google Maps -->
  
negative.code:       <% end %>
      }
    }
    function showAddress(response) {
      if (!response || response.Status.code != 200) {
          alert("Status Code:" + response.Status.code);
            } else {
          place = response.Placemark[0];
          $('nearest_address').innerHTML = "nearest street address: " + place.address;
      }
    }
  </script>
  
  Total records: <%= Location.count(:conditions => {:user_id => @user_id}) %>
  