[Talk-GB] Postcode finder based on OSM data

Matt Williams lists at milliams.com
Thu Mar 17 13:21:14 GMT 2011


On 17 March 2011 12:13, Derick Rethans <osm at derickrethans.nl> wrote:
> On Wed, 16 Mar 2011, Matt Williams wrote:
>
>> On 16 March 2011 21:16, Tim François <timhafrancois at gmail.com> wrote:
>> > Good work!
>> >
>> > I just tried searching based on house number and street name, and it didn't
>> > work if I didn't capitalise the first letters of the street name. Is this a
>> > feature or a bug?
>>
>> That would probably be a bug. I've now made it a case-insentitive
>> search which also matches sub-strings. Thanks for trying it.
>
> That doesn't work for me yet for the house number:
>
> http://milliams.dev.openstreetmap.org/postcodefinder/search/?housenumber=63G&streetname=victoria+road
> vs
> http://milliams.dev.openstreetmap.org/postcodefinder/search/?housenumber=63g&streetname=victoria+road

Indeed, I missed out making housenumber case-insensitive. I'll add
that this evening.

> Also, sometimes a point has multiple addresses. I have separated those
> by a ;. Right now, it doesn't split on the ; (or , I guess) to be able
> to find both addresses:
>
> http://milliams.dev.openstreetmap.org/postcodefinder/house/way/69081058/63;63A/

The schema used is detailed at the bottom of the tagging page at
http://milliams.dev.openstreetmap.org/postcodefinder/tagging/#multiple_numbers.
It doesn't recognise semi-colons as a list separator for house
numbers, only commas. I could change this to be more lenient but I
think I prefer the use of commas so I would probably flag semi-colons
as a 'bug' (where of course 'bug' means "Matt Williams thinks this is
a bug", not anything official).

-- 
Matt Williams
http://milliams.com



More information about the Talk-GB mailing list