<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Make your own geocoder API (inc UK)</title>
	<atom:link href="http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/</link>
	<description>GIS, Mac, Interweb, and me!</description>
	<lastBuildDate>Mon, 12 Jul 2010 17:26:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: loan debt consolidation unsecured</title>
		<link>http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/comment-page-1/#comment-17484</link>
		<dc:creator>loan debt consolidation unsecured</dc:creator>
		<pubDate>Thu, 16 Oct 2008 15:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/#comment-17484</guid>
		<description>loan credit debt consolidation &lt;a href=&quot;http://www.clubplanet.com/amanda661&quot; rel=&quot;nofollow&quot;&gt;loan consolidation dept debt&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>loan credit debt consolidation <a href="http://www.clubplanet.com/amanda661" rel="nofollow">loan consolidation dept debt</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: symptoms fibroid</title>
		<link>http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/comment-page-1/#comment-16070</link>
		<dc:creator>symptoms fibroid</dc:creator>
		<pubDate>Sun, 03 Aug 2008 22:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/#comment-16070</guid>
		<description>treatment fibroid &lt;a href=&quot;http://forums.invisionpower.com/index.php?showuser=134623&quot; rel=&quot;nofollow&quot;&gt;tumors fibroid&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>treatment fibroid <a href="http://forums.invisionpower.com/index.php?showuser=134623" rel="nofollow">tumors fibroid</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nijel</title>
		<link>http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/comment-page-1/#comment-12654</link>
		<dc:creator>nijel</dc:creator>
		<pubDate>Mon, 24 Mar 2008 02:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/#comment-12654</guid>
		<description>This is pretty cool - I&#039;ve been looking for a way to geocode quickly and Pipes seems like a great way to go. 

How did you get the javascript functions above to work on your site? I&#039;m running into security problems with the XMLHttpRequest  accessing Yahoo. 

Lela</description>
		<content:encoded><![CDATA[<p>This is pretty cool &#8211; I&#8217;ve been looking for a way to geocode quickly and Pipes seems like a great way to go. </p>
<p>How did you get the javascript functions above to work on your site? I&#8217;m running into security problems with the XMLHttpRequest  accessing Yahoo. </p>
<p>Lela</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Walker</title>
		<link>http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/comment-page-1/#comment-2889</link>
		<dc:creator>John Walker</dc:creator>
		<pubDate>Fri, 15 Jun 2007 03:53:06 +0000</pubDate>
		<guid isPermaLink="false">http://spatialviews.com/2007/04/24/make-your-own-geocoder-api-inc-uk/#comment-2889</guid>
		<description>&lt;p&gt;Hi ...er Tone?&lt;/p&gt;
&lt;p&gt;Thanks to the Royal Mail (or Royal Pain, depending on your stance)&lt;br /&gt;
free international geocoding for UK addresses has been tricky. Tom&lt;br /&gt;
Anthony has a Googlesearch solution but I haven&#039;t been able to&lt;br /&gt;
translate it into a server version. However, have managed to do so&lt;br /&gt;
with your URL. Here it is. A bit quick and dirty but it works. Note&lt;br /&gt;
that Yahoo is a bit finicky with the translation and it might take&lt;br /&gt;
a few combinations of street/city/region/country/pc to get one that&lt;br /&gt;
returns a lat, lng. So passing an array of these to the routine so&lt;br /&gt;
it can carry out variations may work better.&lt;/p&gt;
&lt;p&gt;	function getLatLng($addr) {&lt;br /&gt;
		Global $arr;&lt;br /&gt;
		$arr=array();	// reset $arr&lt;br /&gt;
                $URL=&quot;http://pipes.yahoo.com/pipes/pipe.run?location=&quot;.urlencode($addr).&lt;br /&gt;
                       &quot;&amp;_id=omPLHX3y2xGrjcwzdbq02Q&amp;_run=1&amp;_render=json&quot;;&lt;br /&gt;
		$addressData = file_get_contents($URL);&lt;br /&gt;
		preg_replace_callback(&quot;/\&quot;(lat&#124;lon)\&quot;:\&quot;(.*?)\&quot;/six&quot;,&lt;br /&gt;
                              &quot;JSON_decode&quot;,$addressData);&lt;br /&gt;
		return $arr;&lt;br /&gt;
		}&lt;br /&gt;
		// callback function for getLatLng function is called twice:&lt;br /&gt;
                // when a match is found for &quot;lat&quot;:&quot;nnnnnn&quot; and &quot;lon&quot;:&quot;nnnn&quot;&lt;br /&gt;
                // (you may have a better way of unraveling the JSON data)&lt;/p&gt;
&lt;p&gt;		function JSON_decode($m) {&lt;br /&gt;
			Global $arr;&lt;br /&gt;
			$arr[$m[1]]=$m[2];			//&lt;br /&gt;
			}&lt;br /&gt;
	#########################&lt;br /&gt;
	list($lat,$lng)=getLatLng($someaddress);&lt;br /&gt;
	########################&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi &#8230;er Tone?</p>
<p>Thanks to the Royal Mail (or Royal Pain, depending on your stance)<br />
free international geocoding for UK addresses has been tricky. Tom<br />
Anthony has a Googlesearch solution but I haven&#8217;t been able to<br />
translate it into a server version. However, have managed to do so<br />
with your URL. Here it is. A bit quick and dirty but it works. Note<br />
that Yahoo is a bit finicky with the translation and it might take<br />
a few combinations of street/city/region/country/pc to get one that<br />
returns a lat, lng. So passing an array of these to the routine so<br />
it can carry out variations may work better.</p>
<p>	function getLatLng($addr) {<br />
		Global $arr;<br />
		$arr=array();	// reset $arr<br />
                $URL=&#8221;http://pipes.yahoo.com/pipes/pipe.run?location=&#8221;.urlencode($addr).<br />
                       &#8220;&amp;_id=omPLHX3y2xGrjcwzdbq02Q&amp;_run=1&amp;_render=json&#8221;;<br />
		$addressData = file_get_contents($URL);<br />
		preg_replace_callback(&#8220;/\&#8221;(lat|lon)\&#8221;:\&#8221;(.*?)\&#8221;/six&#8221;,<br />
                              &#8220;JSON_decode&#8221;,$addressData);<br />
		return $arr;<br />
		}<br />
		// callback function for getLatLng function is called twice:<br />
                // when a match is found for &#8220;lat&#8221;:&#8221;nnnnnn&#8221; and &#8220;lon&#8221;:&#8221;nnnn&#8221;<br />
                // (you may have a better way of unraveling the JSON data)</p>
<p>		function JSON_decode($m) {<br />
			Global $arr;<br />
			$arr[$m[1]]=$m[2];			//<br />
			}<br />
	#########################<br />
	list($lat,$lng)=getLatLng($someaddress);<br />
	########################</p>
]]></content:encoded>
	</item>
</channel>
</rss>
