[Talk-GB] Postcode finder based on OSM data
Matt Williams
lists at milliams.com
Thu Mar 17 21:06:15 GMT 2011
On 17 March 2011 14:45, Matt Williams <lists at milliams.com> wrote:
> On 17 March 2011 13:49, Derick Rethans <osm at derickrethans.nl> wrote:
>> I found something else odd too:
>>
>> http://milliams.dev.openstreetmap.org/postcodefinder/search/?postcode=NW6
>>
>> returns:
>>
>> # NW6 7JN http://milliams.dev.openstreetmap.org/postcodefinder/NW6%207JN/
>> # nw6 7ny http://milliams.dev.openstreetmap.org/postcodefinder/search/?postcode=NW6
>>
>> http://milliams.dev.openstreetmap.org/postcodefinder/NW6%207JN/
>> works
>>
>> http://milliams.dev.openstreetmap.org/postcodefinder/NW6%207NY/ (can't find)
>> and
>> http://milliams.dev.openstreetmap.org/postcodefinder/nw6%207ny/ (404)
>> do not work
>
> Hmm, this seems like a bug in my code somewhere. Thanks for the
> detailed report, I'll look into this as soon as I get home from work.
Indeed this was a bug in my URL matching regular expressions having
problems with lower case postcodes. Should be fixed now.
This is one of the things I want to flag as a bug in the data though
since in the UK postcodes should be upper-case only.
--
Matt Williams
http://milliams.com
More information about the Talk-GB
mailing list