<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"
>

<channel>
	<title>nearby.org.uk blog &#187; Coordinate Converter</title>
	<atom:link href="http://www.nearby.org.uk/blog/category/coordinate-converter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nearby.org.uk/blog</link>
	<description>GIS, maps, mapping, geo, UK, Geograph, PHP, Perl and more</description>
	<lastBuildDate>Fri, 01 Jul 2011 18:59:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Full UK postcodes in the API!</title>
		<link>http://www.nearby.org.uk/blog/2010/04/30/full-uk-postcodes-in-the-api/</link>
		<comments>http://www.nearby.org.uk/blog/2010/04/30/full-uk-postcodes-in-the-api/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 21:38:00 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[Nearby]]></category>
		<category><![CDATA[UK]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/?p=371</guid>
		<description><![CDATA[Thanks to OS Opendata, the Nearby Converter API now can convert to and from full Unit UK postcodes! So as not to break applications expecting Sector postcodes in the API, there is a new API endpoint: http://api1.nearby.org.uk/api/convert.php API requests against this domain will give the position of the full postcode, and also reverse geocode (return [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://opendata.ordnancesurvey.co.uk/">OS Opendata</a>, the <a href="http://www.nearby.org.uk/api/convert-help.php">Nearby Converter API</a> now can convert to and from full Unit UK postcodes!</p>
<p>So as not to break applications expecting Sector postcodes in the API, there is a new API endpoint:</p>
<blockquote><p>http://api1.nearby.org.uk/api/convert.php</p></blockquote>
<p>API requests against this domain will give the position of the full postcode, and also reverse geocode (return you the nearest) full postcode! </p>
<p>- The Original URL for the API is still available &#8211; and will continue to be. I&#8217;ve also taken the opportunity to add a version number to the URL. It&#8217;s been 4 years since I created this API, and learnt lots in that time, so should be able to create a better version 2 <img src='http://www.nearby.org.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  When introduce that don&#8217;t want to break compatibility. </p>
<p>Of course the &#8216;<a href="http://www.nearby.org.uk/coord.cgi">Coordinate Convertor</a>&#8216; is now using CodePoint Open too &#8211; the end of having to pay a commercial provider!</p>
<p>(sorry this has taken so long, OS Opendata was introduced at the beginning of the month!, its been a busy month) </p>
<p>Will take the opportunity to duplicate the copyright message:</p>
<p><em>Contains Royal Mail data © Royal mail copyright and database right 2010.<br />
</em></p>
<p>As it serves as a useful thank you, for making this data available. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2010/04/30/full-uk-postcodes-in-the-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ITM  WGS84 ( Irish Grid  British National Grid) PHP code</title>
		<link>http://www.nearby.org.uk/blog/2009/05/13/itm-wgs84-and-irish-grid-and-british-national-grid-php-code/</link>
		<comments>http://www.nearby.org.uk/blog/2009/05/13/itm-wgs84-and-irish-grid-and-british-national-grid-php-code/#comments</comments>
		<pubDate>Wed, 13 May 2009 14:51:30 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[geo]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/?p=285</guid>
		<description><![CDATA[With Ireland soon to be moving to ITM (Irish Transverse Mercator) coordinates, over IG (Irish Grid) that has been used since about 1965 in Ireland, many websites &#8211; including Geograph.ie and nearby.org.uk will be looking to support ITM coordinates &#8211; even if they still use Irish Grid. So to that end have been looking for [...]]]></description>
			<content:encoded><![CDATA[<p>With Ireland <a href="http://www.walkersassociation.ie/OSIDiscovery/consultation/MVonNewMap">soon to be moving</a> to ITM (Irish Transverse Mercator) coordinates, over IG (Irish Grid) that has been used since about 1965 in Ireland, many websites &#8211; including Geograph.ie and nearby.org.uk will be looking to support ITM coordinates &#8211; even if they still use Irish Grid. </p>
<p>So to that end have been looking for PHP code to do the conversion, but thanks to a little bit of inspiration from FieldenMaps.info&#8217;s <a href="http://www.fieldenmaps.info/cconv/cconv_ie.html">Javascript Ireland Coordinate Converter</a> (an excellent resource in its own right!), realised it would be simple to <a href="http://code.geograph.org.uk/changeset/5502">add to the conversion class</a> we already use. In fact as ITM is based on GRS80 which is effectivly WGS84 the conversion was just a matter of plugging in the constants used by ITM, and the code just worked. </p>
<p>Better yet as Geograph is Open Source (and we got permission to open source the code based on OSGB&#8217;s conversion spreadsheet), the code is available for anyone to use as a PHP class. It should be trivial to add support to our Javascript class &#8211; which will do shortly!</p>
<p><a href="http://svn.geograph.org.uk/svn/branches/british-isles/libs/geograph/conversionslatlong.class.php">Grab the class from Geograph SVN</a> (or even better do a SVN checkout!) and put it somewhere safe. (but you will probably want to remove the &#8220;extends Conversions&#8221; bit from the definition &#8211; we use that for convience in Geograph source) </p>
<p>Then can just use it<br />
<blockquote>
<pre>$conv = new ConversionsLatLong;
list($lat,$lng) = $conv->itm_to_wgs84($e,$n);</pre>
</blockquote>
<p>But as we already use the same code for Irish Grid, and OSGB36 British National Grid, can also use it for them, and even IG< ->ITM conversion </p>
<blockquote><pre><small>list($lat,$lng) = $conv->itm_to_wgs84($e,$n);
list($lat,$lng) = $conv->irish_to_wgs84($e,$n,true);
list($lat,$lng) = $conv->osgb_to_wgs84($e,$n);

list($e,$n) = $conv->wgs84_to_itm($lat,$lng);
list($e,$n) = $conv->wgs84_to_irish($lat,$lng,true);

list($e,$n) = $conv->wgs84_to_osgb36($lat,$lng);
//even a short convience function to create a 10 figure grid reference
$gr10 = $conv->osgb36_to_gridref($e,$n);</small></pre>
</blockquote>
<p>See it used in anger <a href="http://svn.geograph.org.uk/svn/branches/british-isles/public_html/stuff/conversion.php">here</a> and <a href="http://www.geograph.org.uk/stuff/conversion.php?From=Convert&#038;lat=53.3502364945&#038;long=-6.25096528022&#038;datum=itm">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2009/05/13/itm-wgs84-and-irish-grid-and-british-national-grid-php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MGRS coordinate entry</title>
		<link>http://www.nearby.org.uk/blog/2008/12/12/mgrs-coordinate-entry/</link>
		<comments>http://www.nearby.org.uk/blog/2008/12/12/mgrs-coordinate-entry/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 01:26:53 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[Google Earth]]></category>
		<category><![CDATA[Google Maps]]></category>
		<category><![CDATA[KML]]></category>
		<category><![CDATA[mgrs]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/?p=211</guid>
		<description><![CDATA[Prompted by one of those infernal* posts on a Google Maps group, have finally been inspired to cobble together a MGRS -&#62; Lat/Long conversion. It seems trvial, the UTM-&#62;MGRS conversion is quite simple, but there are a few gotchas!, so after much puzzleing over some C code from GeoTrans (and Trial&#38;Error for good measure!), I [...]]]></description>
			<content:encoded><![CDATA[<p>Prompted by one of those infernal* posts on a Google Maps group, have finally been inspired to cobble together a MGRS -&gt; Lat/Long conversion. It seems trvial, the UTM-&gt;MGRS conversion is quite simple, but there are a few gotchas!, so after much puzzleing over some C code from GeoTrans (and Trial&amp;Error for good measure!), I think** have something working.</p>
<p>Anyway try it out here: </p>
<blockquote><p><a href="http://www.nearby.org.uk/flyto.php">Coordinate Flyto for Google Earth/Maps</a></p></blockquote>
<p>also added today is a tickbox to open the result direct in Google Maps (rather than Google Earth). </p>
<p>I&#8217;ll tidy it up and post the code, which is based on the <a href="http://www.jstott.me.uk/phpcoord/">PHPcoord conversion class</a>, incase others have a use. I&#8217;ll also add it to the API &#8211; and possibly even back port it into Perl for use on the on site coordinate covertor. </p>
<p>Finally possibly of interest is the realisation that the <a href="http://www.nearby.org.uk/google.html#17">MGRS Google Earth Gridlines layer</a>, will actully load directly in Google Maps, so:</p>
<blockquote><p><a href="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=http:%2F%2Fwww.nearby.org.uk%2Fgoogle%2FGridlines_mgrs.kml.pl&amp;ie=UTF8&amp;ll=-16.57039,133.942566&amp;spn=4.39532,4.213257&amp;z=8">MGRS Gridlines in Google Maps</a></p></blockquote>
<p>the lines should update a few seconds after dragging/zooming. Ideally will suppress the big blue pins (which are show as numbers in GE) , but not tonight&#8230;</p>
<p> </p>
<p> </p>
<p>* in the nicest possible sence!</p>
<p>** I tested it by converting utm-&gt;mgrs-&gt;utm globally on a worldwide 1 degree grid &#8211; all check out with absolute precision.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/12/12/mgrs-coordinate-entry/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Towards a standard Geotag Icon?</title>
		<link>http://www.nearby.org.uk/blog/2008/03/02/towards-a-standard-geotag-icon/</link>
		<comments>http://www.nearby.org.uk/blog/2008/03/02/towards-a-standard-geotag-icon/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 14:47:30 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[Nearby]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2008/03/02/towards-a-standard-geotag-icon/</guid>
		<description><![CDATA[Just spotted a proposal for a standard icon to represent geotagged content, the homepage is at geotagicons.com, can&#8217;t say a big fan of the icon itself, but the idea is great. &#60;OT&#62;Was sort of involved in trying to find a standard icon for GeoRSS (in fact they use my icon as the favicon ), but [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.nearby.org.uk/blog/wp-content/uploads/2008/03/geotag-demo.jpg" alt="Geotag Demo" align="right" />Just spotted a proposal for a standard icon to represent geotagged content, the homepage is at <a href="http://www.geotagicons.com/">geotagicons.com</a>, can&#8217;t say a big fan of the icon itself, but the idea is great.</p>
<p>&lt;OT&gt;Was sort of involved in trying to find a standard icon for <a href="http://www.georss.org/">GeoRSS</a> (in fact they use my icon as the favicon <img src='http://www.nearby.org.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ), but not sure (in hindsight!) if that a good idea, really it just saying this is a geotagged feed, which really shouldn&#8217;t mean much different to the end user than the standard feed icon. If their feed reader is geoenabled &#8211; great, if not tough, although it can help people specifically looking for geo-content.&lt;/OT&gt;</p>
<p>Anyway to try the waters, have enabled it for geotagged content on this blog, see the  <a href="http://www.nearby.org.uk/blog/category/photospot/">PhotoSpot</a> category for example <img src='http://www.nearby.org.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>(<a href="http://www.mcwetboy.net/maproom/2008/03/geotagging_icon_1.php">via</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/03/02/towards-a-standard-geotag-icon/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Where in Great Britain are people searching?</title>
		<link>http://www.nearby.org.uk/blog/2008/03/01/where-in-great-britain-are-people-searching/</link>
		<comments>http://www.nearby.org.uk/blog/2008/03/01/where-in-great-britain-are-people-searching/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 23:24:00 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[online maps]]></category>
		<category><![CDATA[UK]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2008/03/01/where-in-great-britain-are-people-searching/</guid>
		<description><![CDATA[Nearby Coordinate Converter &#62;&#62;&#62; Following on from the Coverage map for Google Earth Layer usage, remembered I been keeping a log from the Coordinate Converter specifically for mapping (but only for GB) , but never actully got round to it, until now that is! Click the image for a full 1px per km version! Update: [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nearby.org.uk/images/osgb-point1.png"><img src="http://www.nearby.org.uk/images/osgb-point1-small.png" alt="Great Britain usage Coverage map :: Nearby" align="right" /></a><b>Nearby Coordinate Converter</b> &gt;&gt;&gt;<br />
Following on from the Coverage map for Google Earth Layer usage, remembered I been keeping a log from the Coordinate Converter specifically for mapping (but only for GB) , but never actully got round to it, until now that is! Click the image for a full 1px per km version!</p>
<p><a href="http://www.nearby.org.uk/geograph/coverage/searches/xy_out-point1.png"><img src="http://www.nearby.org.uk/geograph/coverage/searches/xy_out-point1-small.png" alt="British Isles searching Coverage map :: Geograph" align="left" /></a><br />
Update: Inspired by the above, heres one for the <a href="http://www.geograph.org.uk/search.php">Geograph Search</a>, ok so actully its for the British Isles!<br />
&lt;&lt;&lt;<b>Geograph Searches</b></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/03/01/where-in-great-britain-are-people-searching/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Geohash converter; API limit upped</title>
		<link>http://www.nearby.org.uk/blog/2008/02/28/geohash-converter-api-limit-upped/</link>
		<comments>http://www.nearby.org.uk/blog/2008/02/28/geohash-converter-api-limit-upped/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 23:01:37 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[Experimental]]></category>
		<category><![CDATA[geo]]></category>
		<category><![CDATA[geohash]]></category>
		<category><![CDATA[Nearby]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2008/02/28/geohash-converter-api-limit-upped/</guid>
		<description><![CDATA[Recently geohash.org was released; the premise: short easy links that encode a location. The website offers instant conversion, but as the algorithm is Public Domain, Lordelph was quick to implement a php class, and I could quickly add the conversion to my existing conversion API. Convert a postcode to geohash anyone? Updating the documentation noticed [...]]]></description>
			<content:encoded><![CDATA[<p>Recently <a href="http://geohash.org/">geohash.org</a> was released; the premise: short easy links that encode a location. The website offers instant conversion, but as the <a href="http://en.wikipedia.org/wiki/Geohash">algorithm</a> is Public Domain, <a href="http://blog.dixo.net/">Lordelph</a> was quick to implement a <a href="http://blog.dixo.net/2008/02/28/geohash-php-class/">php class</a>, and I could quickly <strong>add the conversion to my existing <a href="http://www.nearby.org.uk/api/convert-help.php">conversion API</a>. </strong>Convert a postcode to geohash anyone?</p>
<p>Updating the <a href="http://www.nearby.org.uk/api/convert-help.php">documentation</a> noticed the API was last updated in 2005 &#8211; gulp, how time flies! Anyway as a celebration have upped the throttling on the API, <strong>now three times the previous limit.</strong> Running on much improved hardware than when it was launched so maybe the limit can be tweaked even more, will run some analysis of its impact &#8211; it already seems the API is a minor part of the overall load on the server &#8211; particularly against the Google Earth layers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2008/02/28/geohash-converter-api-limit-upped/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Landranger Coordinates</title>
		<link>http://www.nearby.org.uk/blog/2006/12/07/landranger-coordinates/</link>
		<comments>http://www.nearby.org.uk/blog/2006/12/07/landranger-coordinates/#comments</comments>
		<pubDate>Thu, 07 Dec 2006 20:55:16 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[Location Links]]></category>
		<category><![CDATA[Nearby]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2006/12/07/landranger-coordinates/</guid>
		<description><![CDATA[Not sure if this really deserves a post of its own, but it is mildly exciting to delve back into the Perl of the Coordinate converter&#8230; Anyway it can now understand &#8216;Landranger References&#8217; which are common in some walking books (that&#8217;s the main place I seen them anyway!), basically where just the digits of a [...]]]></description>
			<content:encoded><![CDATA[<p>Not sure if this really deserves a post of its own, but it is mildly exciting to delve back into the Perl of the <a title="Coordinate Converter and Location Links" href="http://www.nearby.org.uk/coord.cgi">Coordinate converter</a>&#8230;</p>
<p>Anyway it can now understand &#8216;Landranger References&#8217; which are common in some walking books (that&#8217;s the main place I seen them anyway!), basically where just the digits of a Grid reference are specified along with a Landranger sheet number.</p>
<p>Example: <a href="http://www.nearby.org.uk/coord.cgi?p=OS52+894334"><span style="font-size: 10pt; font-family: Arial" /><span id="st" class="st">OS52</span> 894334</a> which is 894334 on Landranger sheet 52, converted to NN894334 as a standard Grid Reference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2006/12/07/landranger-coordinates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ireland support</title>
		<link>http://www.nearby.org.uk/blog/2006/05/01/ireland-support/</link>
		<comments>http://www.nearby.org.uk/blog/2006/05/01/ireland-support/#comments</comments>
		<pubDate>Mon, 01 May 2006 21:33:10 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[Location Links]]></category>
		<category><![CDATA[Nearby]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2006/05/01/ireland-support/</guid>
		<description><![CDATA[It seems there was few issues with Northern Ireland Postcodes, the Coordinate converter and API should both handle them properly. As well as adding support to the Maps section.]]></description>
			<content:encoded><![CDATA[<p>It seems there was few issues with Northern Ireland Postcodes, the <a href="http://www.nearby.org.uk/coord.cgi">Coordinate converter</a> and <a href="http://www.nearby.org.uk/api/">API</a> should both handle them properly. As well as adding support to the <a href="http://www.nearby.org.uk/maps/">Maps</a> section.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2006/05/01/ireland-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IARU Locators in the Geocoder</title>
		<link>http://www.nearby.org.uk/blog/2006/03/03/iaru-locators-in-the-geocoder/</link>
		<comments>http://www.nearby.org.uk/blog/2006/03/03/iaru-locators-in-the-geocoder/#comments</comments>
		<pubDate>Fri, 03 Mar 2006 15:27:34 +0000</pubDate>
		<dc:creator>Barry</dc:creator>
				<category><![CDATA[Coordinate Converter]]></category>
		<category><![CDATA[Web Services]]></category>

		<guid isPermaLink="false">http://www.nearby.org.uk/blog/2006/03/03/iaru-locators-in-the-geocoder/</guid>
		<description><![CDATA[I have now added support for IARU Locators to the Nearby Geocoder. If want to work with these you have to explicitly request them and inform the geocoder thats what to supplying as they look teribly like UK postcodes&#8230;]]></description>
			<content:encoded><![CDATA[<p>I have now added support for IARU Locators to the <a href="http://www.nearby.org.uk/api/convert-help.php">Nearby Geocoder</a>. If want to work with these you have to explicitly request them and inform the geocoder thats what to supplying as they look teribly like UK postcodes&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nearby.org.uk/blog/2006/03/03/iaru-locators-in-the-geocoder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

