<?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>Ian Winter &#187; perl</title>
	<atom:link href="http://ianwinter.co.uk/tag/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianwinter.co.uk</link>
	<description>Have you found the instructions yet?</description>
	<lastBuildDate>Wed, 14 Sep 2011 22:16:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>More Geocoding</title>
		<link>http://ianwinter.co.uk/2009/07/01/more-geocoding/</link>
		<comments>http://ianwinter.co.uk/2009/07/01/more-geocoding/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 22:18:37 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[geocoding]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://ianwinter.co.uk/?p=1051</guid>
		<description><![CDATA[More geocoding fun today, this time done with perl. For what I want to do, convert OS Grid easting and northing into latitude and longitude using an API, like Yahoo! was going to take ages due to throttling. Turns out that in perl using the handy Geography-NationalGrid-1.6 CPAN package it&#8217;s a lot easier and gives [...]]]></description>
			<content:encoded><![CDATA[<p>More geocoding fun today, this time done with perl. For what I want to do, convert OS Grid easting and northing into latitude and longitude using an API, like Yahoo! was going to take ages due to throttling. Turns out that in perl using the handy <a href="http://search.cpan.org/~pkent/Geography-NationalGrid-1.6/" target="_blank">Geography-NationalGrid-1.6</a> CPAN package it&#8217;s a lot easier and gives for most cases a result very close together.</p>
<p>Here&#8217;s a quick example:</p>
<p><code>#!/usr/bin/perl<br />
use Geography::NationalGrid;<br />
my $point1 = new Geography::NationalGrid( 'GB',<br />
Easting =&gt; '385600',<br />
Northing =&gt; '801900'<br />
);<br />
print "Latitude " . $point1-&gt;latitude . " Longitude " . $point1-&gt;longitude . "\n";</code></p>
<p>You can also give it a grid reference like TH 1234 1234 or a latitude and longitude.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwinter.co.uk/2009/07/01/more-geocoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

