Do you need to get to street level?  If not, you might be able to use this[1] list of UK outcodes to latitude/longitude.  I used this data to create a little website that returns json formatted postcode data[2]<br><br>[1] 
<a href="http://www.easypeasy.com/guides/article.php?article=64">http://www.easypeasy.com/guides/article.php?article=64</a><br>[2] <a href="http://seagul.co.uk/postcodes/se1">http://seagul.co.uk/postcodes/se1</a> (se1 is just an example)
<br><br><div><span class="gmail_quote">On 7/25/07, <b class="gmail_sendername">David Salgado</b> <<a href="mailto:david@digitalronin.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">david@digitalronin.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've used postcodeanywhere, who were OK but a bit pricy IIRC, and also this outfit; <a href="http://www.overmap.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.overmap.co.uk</a>

<br><br>They were fine, although they needed a bit of help with their algorithm that detected which bit of a string was the postcode! Given that a) that's their business, and b) it took all of 5 minutes to Google for a suitable regexp, that wasn't all that impressive, but the service itself seems OK.
<br><br>All the best<br><span><br>David</span><div><span><br><br><br><div><span class="gmail_quote">On 25/07/07, <b class="gmail_sendername">Ed Davey</b> <<a href="mailto:ed@veryreal.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

ed@veryreal.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br><br>Does anyone have a recommendation for looking up addresses from UK postcodes<br>in RoR?<br><br>I'm after an online service, pay per use with good doumentation (incl Rails<br>same code ideally).<br><br>


Came across this list on ruby-forum:<br><br><a href="http://www.postcodeanywhere.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.postcodeanywhere.co.uk</a><br><a href="http://www.afd.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.afd.co.uk</a><br><a href="http://www.allies-computing.co.uk/pcodeweb.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.allies-computing.co.uk/pcodeweb.html</a><br><a href="http://www.epostcode.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.epostcode.com</a><br><br>of which the first and last seem promising.
<br><br>Anyone got any recommendations?<br><br>Thanks
<br><br>ED<br><br><br>_______________________________________________<br>Chat mailing list<br><a href="mailto:Chat@lists.lrug.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Chat@lists.lrug.org
</a><br><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.lrug.org/listinfo.cgi/chat-lrug.org
</a><br></blockquote></div><br>
</span></div><br>_______________________________________________<br>Chat mailing list<br><a href="mailto:Chat@lists.lrug.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Chat@lists.lrug.org</a>
<br><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br><br></blockquote></div><br>