<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Furry Brains &#187; googlemaps</title>
	<atom:link href="http://furrybrains.com/tag/googlemaps/feed/" rel="self" type="application/rss+xml" />
	<link>http://furrybrains.com</link>
	<description>The Furry Brains blog tackles a wide range of issues related to web development and design.</description>
	<lastBuildDate>Mon, 22 Jun 2009 16:39:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Address on the Spot: Using Google&#8217;s Reverse Geocoding API</title>
		<link>http://furrybrains.com/2008/11/01/address-on-the-spot-using-googles-reverse-geocoding-api/</link>
		<comments>http://furrybrains.com/2008/11/01/address-on-the-spot-using-googles-reverse-geocoding-api/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 03:55:04 +0000</pubDate>
		<dc:creator>Jim Dalton</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[googlemaps]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://furrybrains.com/?p=96</guid>
		<description><![CDATA[Google just launched a new feature as part of its geolocation services: a Reverse Geocoding feature as part of the Google Maps API.
The API is really simple to use. It took me only a few hours to put together a quick little utility called Address on the Spot, which allows you to double click anywhere [...]]]></description>
			<content:encoded><![CDATA[<p>Google just launched a new feature as part of its geolocation services: a <a href="http://code.google.com/apis/maps/documentation/services.html#ReverseGeocoding">Reverse Geocoding</a> feature as part of the Google Maps API.</p>
<p>The API is really simple to use. It took me only a few hours to put together a quick little utility called <a href="http://addressonthespot.com">Address on the Spot</a>, which allows you to double click anywhere on a map to find an address for a location.</p>
<p>So here&#8217;s a quick how to for using the Reverse Geocoding API.</p>
<p>First, create a <code>GLatLng</code> object with a set of geocoordinates:</p>
<pre class="brush: jscript;">
point = new GLatLng(45.523875, -122.670399);
</pre>
<p>Next, create a <code>GClientGeocoder</code> object and pass the <code>point</code> object to it, along with a callback function. The callback function <code>display_address()</code> will be executed when the geocoder returns a response.</p>
<pre class="brush: jscript;">
geocoder = new GClientGeocoder();
geocoder.getLocations(point, display_address);
</pre>
<p>Here&#8217;s what <code>display_address()</code> might look like:</p>
<pre class="brush: jscript;">
function display_address(response) {
    var address;
    if (!response || response.Status.code != 200) {
        address = &quot;No location data found.&quot;
    } else {
        address = response.Placemark[0].address;
    }
    alert(address);
}
</pre>
<p>Couldn&#8217;t be easier. It&#8217;s definitely a handy addition to the Google Maps API, and this utility was pretty fun and easy to build.</p>
]]></content:encoded>
			<wfw:commentRss>http://furrybrains.com/2008/11/01/address-on-the-spot-using-googles-reverse-geocoding-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
