<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><br>Actually just realised this is a dodgy svn version with bugs, it's not my current production version. It won't work because some of the associative array fields are called 'long' not 'lon'. I'll try and update this later.<br><br>Nick<br><br><font color="#990099">-----Nick Whitelegg <a class="moz-txt-link-rfc2396E" href="mailto:Nick.Whitelegg@solent.ac.uk"><Nick.Whitelegg@solent.ac.uk></a> wrote: -----</font><div><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid black; margin-right: 0px;">To: <a class="moz-txt-link-abbreviated" href="mailto:talk-gb@openstreetmap.org">talk-gb@openstreetmap.org</a><br>From: Nick Whitelegg <a class="moz-txt-link-rfc2396E" href="mailto:Nick.Whitelegg@solent.ac.uk"><Nick.Whitelegg@solent.ac.uk></a><br>Date: 09/05/2011 12:26PM<br>Subject: Re: [Talk-GB] OS grid positions<br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><br>I have PHP code to do this, it was based on the "JEEPS" C library.<br><br>It's available<br><br><a class="moz-txt-link-freetext" href="http://www.free-map.org.uk/svn/freemap/lib/latlong.php">http://www.free-map.org.uk/svn/freemap/lib/latlong.php</a><br><br>Also available is Jcoord, JScoord and PHPcoord from Jonathan Stott (<a class="moz-txt-link-abbreviated" href="http://www.jstott.me.uk/jcoord">www.jstott.me.uk/jcoord</a>). Note this is GPL, not LGPL, and therefore can only be used in GPL compatible software though he does dual-licence under a commercial licence.<br><br>Nick<br><br><font color="#990099">-----TimSC <a class="moz-txt-link-rfc2396E" href="mailto:mapping@sheerman-chase.org.uk"><mapping@sheerman-chase.org.uk></a> wrote: -----</font><div><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid black; margin-right: 0px;">To: <a class="moz-txt-link-abbreviated" href="mailto:talk-gb@openstreetmap.org">talk-gb@openstreetmap.org</a><br>From: TimSC <a class="moz-txt-link-rfc2396E" href="mailto:mapping@sheerman-chase.org.uk"><mapping@sheerman-chase.org.uk></a><br>Date: 09/05/2011 12:02PM<br>Subject: Re: [Talk-GB] OS grid positions<br><br><font face="Courier New,Courier,monospace" size="2">ael,<br><br>The OS national grid has been around for a long time and has been <br>adjusted and tweaked as measurement accuracy has improved. The official <br>transform from the national grid (OSGB36) to GPS lat lon (WGS84) is <br>known as OSTN02. OSTN02 uses a large look up table to account for the <br>strange shape of OSGB36. There are of course various mathematical <br>approximations of OSTN02 which are easier to use. I am not sure which <br>transformation Garmin uses but it seems to be accurate enough.<br><br>Various software libraries exist to do the conversion. I have played <br>with the perl library Geo::Coordinates::OSTN02 and ported it to python, <br>if you are interested.<br><br>Regards,<br><br>TimSC<br><br>On 09/05/11 11:44, ael wrote:<br>> I have been encouraging a friend to use OSM. He has just mailed in<br>> puzzlement after trying to find an OS grid reference (presumably<br>> looking at mapnik).<br>><br>> I saw <a href="http://help.openstreetmap.org/questions/2056/using-the-ordnance-survey-national-grid-with-openstreetmap">http://help.openstreetmap.org/questions/2056/using-the-ordnance-survey-national-grid-with-openstreetmap</a><br>> but just converting a single grid reference to a good approximation to<br>> (lat,long) isn't *that* difficult, surely? My Garmin does it a less than<br>> a ms or so with very low computing power.<br>><br>> Or am I being naive?<br>><br>> ael<br>>    <br><br><br>_______________________________________________<br>Talk-GB mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Talk-GB@openstreetmap.org">Talk-GB@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/listinfo/talk-gb">http://lists.openstreetmap.org/listinfo/talk-gb</a><br></font></blockquote></div><div></div></font> =<font face="Courier New,Courier,monospace" size="2">_______________________________________________<br>Talk-GB mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:Talk-GB@openstreetmap.org">Talk-GB@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/listinfo/talk-gb">http://lists.openstreetmap.org/listinfo/talk-gb</a><br></font></blockquote></div><div></div></font>