/* reversegeocode - jQuery plugin for reverse geocoding using the Google Maps API.
 *
 * By Jon Bringhurst (jon@bringhurst.org)
 */

(function(a){a.fn.extend({reversegeocode:function(b){return this.each(function(){var f=new GClientGeocoder();var e=a(this);function c(g){if(!g||g.Status.code!=200){return}else{place=g.Placemark[0];if(!place.address||!e){return}else{e.html(place.address)}}}if(!b.lat||!b.lng){return}else{var d=new GLatLng(b.lat,b.lng);if(d){f.getLocations(d,c)}}})}})})(jQuery);
