Permalink
Browse files

Auto location improve

  • Loading branch information...
1 parent 34fedf0 commit 047f8adfd446188513ddd98798beededf5f1bb31 @evandroeisinger evandroeisinger committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascripts/main.js
View
@@ -157,7 +157,7 @@
geocoder.geocode({ 'latLng': new google.maps.LatLng(lat, lng) }, function (results, status) {
       if (status == google.maps.GeocoderStatus.OK) {
    if (results) {
- page.location.apply(results[6].formatted_address);
+ page.location.apply(results[0].address_components[3].long_name + ', ' + results[0].address_components[4].short_name);
            }
        }
    });

0 comments on commit 047f8ad

Please sign in to comment.