Re: [Talk-GB] Postcode finder based on OSM data
On Wed, 16 Mar 2011, Matt Williams wrote: On 16 March 2011 21:16, Tim François timhafranc...@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=63Gstreetname=victoria+road vs http://milliams.dev.openstreetmap.org/postcodefinder/search/?housenumber=63gstreetname=victoria+road 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/ cheers, Derick___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
Craig wrote: A practical approach would seem to be for an implementation to accept multiple instances of the street role, as either ways or relations. Where a child-relation of role=street is treated as a collection of segments. It does seem logical. Especially as any street currently mapped with an associatedStreet relation which is then split at a later date (by someone adding a bus route, change in speed limit, or whatever reason they split it) will end up as an associatedStreet relation with two street members anyway in all likelihood. I doubt the editors are at a stage where they can split such a relation into two separate relations and get the right houses with the correct street section automatically (and for some streets I can imagine this will never be possible automatically reliably anyway). I'd be surprised if there aren't already a number of associatedStreet relation with more than one street member, but not sure how easy it would be to find out. Ed ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
Matt Williams [mailto:li...@milliams.com] wrote: Sent: 16 March 2011 7:51 PM To: talk-gb@openstreetmap.org Subject: [Talk-GB] Postcode finder based on OSM data Greetings all, For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder (you know, the one with the ~5 queries a day limit without an account) [1] but based entirely on data in the OSM database. You can find my site at [2]. It's features are: - Covers the whole of Britain (based on the Geofabrik great_britain.osm.pbf file from 15 March) - Can search by full or partial postcode - Can search for street and house number or just for street name - Largely based on the Karlsruhe Schema (including the associatedStreet relation for grouping houses together) - Has a tagging guide [3] to help document the tags the system uses - Fully open-source [4] - 'Error' reporting - these are currently only shown at the bottom of the page with the error. I will probably make a map out of this at some point. I currently measure about a quarter of a million 'address points' - that is objects with a postcode or with both a housenumber and a street (associates street or addr:street). This compares with the reported 28 million entries in the Royal Mail's PAF. I will provide a more detailed breakdown when I get a chance. Of course in its current state it's not a competitor for the PAF but I'm hoping that the if you render it, they will map it rule will apply here to encourage people to add postcodes and addresses. I guess a good postcode to look at is B72 [5] given the excellent work done at [6]. I've also been doing a lot in CV4 so that should be quite good too. Please take a look a the site and give me any feedback on anything you like or don't like. As I said this is only about a week's part-time work so it's unpolished in many places but I figure that RERO is a good idea here. There are a number of features I am still planning on implementing which are recoded at [7,8]. The first time you connect to the site it might take a while to load but after that it should be snappy enough. Works a treat and it's great to see all my hard work with addressing for the B72 postcodes. Cheers Andy Regards, Matt Williams http://milliams.com [1] http://postcode.royalmail.com [2] http://milliams.dev.openstreetmap.org/postcodefinder/ [3] http://milliams.dev.openstreetmap.org/postcodefinder/tagging/ [4] http://gitorious.org/postcodefinder [5] http://milliams.dev.openstreetmap.org/postcodefinder/search/?postcode=B 72 [6] http://blog.mappa-mercia.org/2011/02/whats-in-postcode.html [7] http://gitorious.org/postcodefinder/postcode- analyser/blobs/master/TODO.rst [8] http://gitorious.org/postcodefinder/postcodefinder/blobs/master/TODO.rst ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb No virus found in this message. Checked by AVG - www.avg.com Version: 10.0.1204 / Virus Database: 1498/3511 - Release Date: 03/16/11 ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 16 March 2011 19:51, Matt Williams li...@milliams.com wrote: For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder (you know, the one with the ~5 queries a day limit without an account) [1] but based entirely on data in the OSM database. You can find my site at [2]. Thanks for doing this, a very useful development. I tried a few UK streets I had tagged with postcodes and it didn't work, but I guess that is because they use http://wiki.openstreetmap.org/wiki/Postal_code Could this tag be supported too? It seems quite widely used http://taginfo.openstreetmap.de/keys/?key=postal_code TagInfo says 48 306 values altogether for postal_code, versus 60 941 for addr:postcode. cheers, Ben ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 16 March 2011 19:51, Matt Williams li...@milliams.com wrote: For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder That's great; and I trust that my constructive feedback won't be taken as dissing your achievment... You return nothing for B1 1BB (Birmingham Council House), which is tagged addr:postcode=B1 1BB For a common address, such as 2 High Street, you return multiple results, with no obvious distinguishing feature. Please include the addr:city value in the results (if present); and allow searches to be limited by that tag. I'll be happy to log these in a bug tracker, if you have one. -- Andy Mabbett @pigsonthewing http://pigsonthewing.org.uk ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
This is great stuff - could I make a few suggestions? - When displaying the textual address put a comma between name and street. For example http://milliams.dev.openstreetmap.org/postcodefinder/house/way/42732730/ should show 'Mole Avon, Station Yard'. The comma is not necessary for house *numbers* but it is for names. - If a street does have house numbers but not the particular number entered, there might be the option to log this in a bug database. The following two suggestions would make the tool more useful, but they might be out of scope if your intention is strictly to show fully-tagged Karlsruhe schema data and nothing else. - Have you considered using the Code Point Open data as a fallback in case the postcode is not in OSM? It would not allow an exact address to be pinpointed but it could give a link to the right area of the map with a hint to get to work populating it fully. - Similarly if a street is found but has no house numbers, zoom to that street. -- Ed Avis e...@waniasset.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
Tom Chance tom@... writes: I've been switching any feature I find over to addr:postcode. If this is the consensus view then perhaps they should be changed en masse? At least just for the United Kingdom. What do others think? (I've always used postal_code until now, perhaps because when I started mapping the Karlsruhe 'addr' schema was not finalized.) -- Ed Avis e...@waniasset.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On Thu, 17 Mar 2011, Andy Mabbett wrote: On 16 March 2011 19:51, Matt Williams li...@milliams.com wrote: For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder That's great; and I trust that my constructive feedback won't be taken as dissing your achievment... Same here, I like this! You return nothing for B1 1BB (Birmingham Council House), which is tagged addr:postcode=B1 1BB 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 For a common address, such as 2 High Street, you return multiple results, with no obvious distinguishing feature. Please include the addr:city value in the results (if present); and allow searches to be limited by that tag. Actually, city wouldn't always work. There are f.e. 3 Victoria Roads in London. cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
Derick Rethans osm@... writes: For a common address, such as 2 High Street, you return multiple results, with no obvious distinguishing feature. Please include the addr:city value in the results (if present); Actually, city wouldn't always work. There are f.e. 3 Victoria Roads in London. Yes, I found this to my cost when trying to view a house in 'Victoria Road, West Hampstead' as the estate agent put it. There is no such street - but there is one near your house in nearby Kilburn. By matching up OSM data with average house prices, it might be possible to make a filter translating estate-agent-speak to normal addresses. -- Ed Avis e...@waniasset.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 12:49, Derick Rethans o...@derickrethans.nl wrote: On Thu, 17 Mar 2011, Andy Mabbett wrote: For a common address, such as 2 High Street, you return multiple results, with no obvious distinguishing feature. Please include the addr:city value in the results (if present); and allow searches to be limited by that tag. Actually, city wouldn't always work. There are f.e. 3 Victoria Roads in London. For some value of work. It might not guarantee a unique result, but it would reduce the number of results to 3 from an unmanageable national total of possibly hundreds. -- Andy Mabbett @pigsonthewing http://pigsonthewing.org.uk ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 12:09, Craig Loftus craigloftus+...@googlemail.com wrote: Nice work Matt, I look forward to an alternative to RM's postcode finder. - Largely based on the Karlsruhe Schema (including the associatedStreet relation for grouping houses together) A question with regard to your handling of associatedStreet; how do you tag for and 'parse' multi-segment streets? I've been using addr:street but the idea of the associatedStreet relation does appeal to me. However having just experimented with it, its not clear to me what the current 'popular' practice is for associating houses with multi-segment streets? The 'spec' for associatedStreet directs processors to consider type=street relations to be equivalent, but differs (cf. [1] [2]) in only allowing one instance of the street role. One might naturally create a separate street relation that defines the street and then add that as a child of associatedStreet, but this seems to be precluded by the 2 relations being considered equivalent. A practical approach would seem to be for an implementation to accept multiple instances of the street role, as either ways or relations. Where a child-relation of role=street is treated as a collection of segments. In my mapping and in the Postcode Finder I've been simply adding multiple all the relevant street ways as role=street such as at http://www.openstreetmap.org/browse/relation/555028. The 'street' and 'associatedStreet' relations are technically different and I've only been looking for associatedStreets but perhaps that will change. I would prefer if people would settle on just one of the two relations and in my mind associatedStreet seems simpler (with the addition of multiple role=street members) and so that is what I've been using in my mapping and parsing. I had considered grouping all the street segments together into a sub-relation and then adding that relation as the role=street in the associatedStreet but that didn't really seem to add any useful information to the database and seems over-engineered. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 12:09, Derick Rethans o...@derickrethans.nl wrote: On Wed, 16 Mar 2011, Matt Williams wrote: Greetings all, For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder (you know, the one with the ~5 queries a day limit without an account) [1] but based entirely on data in the OSM database. You can find my site at [2]. Awesome; I tried my own code, which I've mapped, and it works. However, I don't quite understand the sorting algorithm :-) : http://milliams.dev.openstreetmap.org/postcodefinder/NW6%206TB/ It sorts first by the number and then by the letter. It wasn't really prepared for spaces between the two. You'll also notice on some pages that it doesn't sort by street name yet so the streets will be mixed together. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 12:13, Derick Rethans o...@derickrethans.nl wrote: On Wed, 16 Mar 2011, Matt Williams wrote: On 16 March 2011 21:16, Tim François timhafranc...@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=63Gstreetname=victoria+road vs http://milliams.dev.openstreetmap.org/postcodefinder/search/?housenumber=63gstreetname=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 ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 12:29, Ed Loach e...@loach.me.uk wrote: Craig wrote: A practical approach would seem to be for an implementation to accept multiple instances of the street role, as either ways or relations. Where a child-relation of role=street is treated as a collection of segments. It does seem logical. Especially as any street currently mapped with an associatedStreet relation which is then split at a later date (by someone adding a bus route, change in speed limit, or whatever reason they split it) will end up as an associatedStreet relation with two street members anyway in all likelihood. I doubt the editors are at a stage where they can split such a relation into two separate relations and get the right houses with the correct street section automatically (and for some streets I can imagine this will never be possible automatically reliably anyway). I'd be surprised if there aren't already a number of associatedStreet relation with more than one street member, but not sure how easy it would be to find out. I'm commonly creating associatedStreet relations with multiple role=street members since there's no other way to easily map reality. I don't think it should be a problem. Most likely the people who first defined the relation didn't consider the possibility of split streets. I certainly don't consider it a 'bug' in the postcode finder. As for statistics on this, it should be quite easy for me to make a measurement this evening. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 13:04, Andy Robinson (blackadder-lists) ajrli...@gmail.com wrote: Excellent work Matt. http://milliams.dev.openstreetmap.org/postcodefinder/search/?postcode=B72 Yup, that's the page I'm most likely to show off to people. Good work. If you want to extend, then a custom P2 to enable folks to trace a house and tag it with their address data would open up contribution and be really cool. Then with a few other bits of data from the OSM database you have the makings of a replacement for the National Street Gazetteer and the proposed GeoPlace offrering. That is indeed the direction I was planning on taking this. I'm slowly making my way there :) As for P2, I hadn't thought of that but it sounds like a very cool idea. I'll have to see what it entails. It won't be at the top of list anyway. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 13:17, Ben Pollinger benpollinger+...@gmail.com wrote: On 16 March 2011 19:51, Matt Williams li...@milliams.com wrote: For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder (you know, the one with the ~5 queries a day limit without an account) [1] but based entirely on data in the OSM database. You can find my site at [2]. Thanks for doing this, a very useful development. I tried a few UK streets I had tagged with postcodes and it didn't work, but I guess that is because they use http://wiki.openstreetmap.org/wiki/Postal_code Could this tag be supported too? It seems quite widely used http://taginfo.openstreetmap.de/keys/?key=postal_code TagInfo says 48 306 values altogether for postal_code, versus 60 941 for addr:postcode. It doesn't currently parse any postcode tag on highway=* roads since strictly it's not the roads themselves that have postcodes, but the houses themselves. I didn't want to encourage this too much I guess. It is however a shame that your data isn't showing up; maybe I'll reconsider my position. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 13:37, Andy Mabbett a...@pigsonthewing.org.uk wrote: On 16 March 2011 19:51, Matt Williams li...@milliams.com wrote: For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder That's great; and I trust that my constructive feedback won't be taken as dissing your achievment... No, I'm happy for people to point out problems with it. Otherwise it'll never improve :) You return nothing for B1 1BB (Birmingham Council House), which is tagged addr:postcode=B1 1BB This is most likely a bug in my parser. I'll have to take a look at it this evening and see why it's being ignored. Thanks for the report. This is exactly what I need to find bugs. For a common address, such as 2 High Street, you return multiple results, with no obvious distinguishing feature. Please include the addr:city value in the results (if present); and allow searches to be limited by that tag. Yes, I'd realised this would be a problem but I hadn't been sure how to fix it. Adding the addr:city tag to the search results would be a good start but without a full reverse geocoder (or full PostGIS database) there's only so much I can do. I didn't want to bombard Nominatim all the time for these results. I'll be happy to log these in a bug tracker, if you have one. I don't currently so just send them to this list or to me directly. Maybe I'll get up a project on the OSM Trac. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 13:40, Tom Chance t...@acrewoods.net wrote: On 17 March 2011 12:17, Ben Pollinger benpollinger+...@gmail.com wrote: I tried a few UK streets I had tagged with postcodes and it didn't work, but I guess that is because they use http://wiki.openstreetmap.org/wiki/Postal_code Could this tag be supported too? It seems quite widely used http://taginfo.openstreetmap.de/keys/?key=postal_code TagInfo says 48 306 values altogether for postal_code, versus 60 941 for addr:postcode. I've been switching any feature I find over to addr:postcode. Much easier. Making developers work out these wrinkles so they have to support multiple tags is one of a few good reasons for us to have a process to just update the db and translate all postal_code keys to addr:postcode (if it were accepted by a process more valid than wiki votes). I currently accept both equally since postal_code had been around a long time before the Karlsruhe Schema. However, I would be happy for a tag convergence on addr:postcode since it makes things a little easier. These days I only add addr:postcode and this is what I recommend on the tagging page of the postcode finder. I wouldn't be averse to a mass 're-tagging'. If people want to discuss this though I suggest we start a new thread. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 13:49, Derick Rethans o...@derickrethans.nl wrote: On Thu, 17 Mar 2011, Andy Mabbett wrote: On 16 March 2011 19:51, Matt Williams li...@milliams.com wrote: For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder That's great; and I trust that my constructive feedback won't be taken as dissing your achievment... Same here, I like this! Thank you :) You return nothing for B1 1BB (Birmingham Council House), which is tagged addr:postcode=B1 1BB 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. For a common address, such as 2 High Street, you return multiple results, with no obvious distinguishing feature. Please include the addr:city value in the results (if present); and allow searches to be limited by that tag. Actually, city wouldn't always work. There are f.e. 3 Victoria Roads in London. Very true but at least it's a good start. As I said in another message, I either need to do some spatial processing myself (which I can't at the moment since I'm simply parsing the planet file in a SAX-type way) or use Nominatim somehow. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 14:02, Andy Mabbett a...@pigsonthewing.org.uk wrote: P.S. on an individual address's page, such as: http://milliams.dev.openstreetmap.org/postcodefinder/house/way/99795053/69/ it would be helpful to add hCard (venue), ADR (address) and GEO (coordinates; if shown on the page, which would be good) microformats, so that the details can be added easily to electronic address books. The mark up for this change is at: http://pastebin.com/fsuZg1C4 More on microformats: http://en.wikipedia.org/wiki/Microformat I'm happy to beta-test or assist further. I had indeed been considering this and so I'm glad that someone else thinks it would be useful :) The website is already HTML5 and so extending it with as much semantic markup as possible (whether that's microformats or microdata or both) can only be a good thing. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
- Have you considered using the Code Point Open data as a fallback in case the postcode is not in OSM? It would not allow an exact address to be pinpointed but it could give a link to the right area of the map with a hint to get to work populating it fully. Yup, this is already on my TODO. First I need to convert the OS grid refs to OSM coordinates. I've had success using the instructions located at http://baroque.posterous.com/uk-postcode-latitudelongitude Of course it depends on how you want to use the data in the first place! :) ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17/03/2011 14:33, Derick Rethans wrote: On Thu, 17 Mar 2011, Matt Williams wrote: snip.. It doesn't currently parse any postcode tag on highway=* roads since strictly it's not the roads themselves that have postcodes, but the houses themselves. I didn't want to encourage this too much I guess. It is however a shame that your data isn't showing up; maybe I'll reconsider my position. I actually think that the tags should be on the properties as well and not on the ways. cheers, Derick ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb Several local authorities (certainly Broxtowe, Gedling and Rushcliffe) round here have postcodes on street signs: http://www.flickr.com/photos/sk53_osm/5534947666/ I therefore tag the streets with them. P.S. Thanks to Matt for his work. ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
Matt Williams lists@... writes: I'm not sure that adding the postcoded street itself to my database would work since the base unit I work with is the 'house' or 'delivery point' whereas the street is simply part of the address. That's absolutely right but it might still be useful to provide a postcode-to- street lookup if only this lower-resolution data is there. Adding postcodes at the street level might be a useful halfway step between no postcode data and the exhaustive tagging of every building. -- Ed Avis e...@waniasset.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 16:25, Ed Avis e...@waniasset.com wrote: Matt Williams lists@... writes: I'm not sure that adding the postcoded street itself to my database would work since the base unit I work with is the 'house' or 'delivery point' whereas the street is simply part of the address. That's absolutely right but it might still be useful to provide a postcode-to- street lookup if only this lower-resolution data is there. Adding postcodes at the street level might be a useful halfway step between no postcode data and the exhaustive tagging of every building. Agreed. I'll see how it fits into my database model. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 14:35, Matt Williams li...@milliams.com wrote: On 17 March 2011 13:37, Andy Mabbett a...@pigsonthewing.org.uk wrote: On 16 March 2011 19:51, Matt Williams li...@milliams.com wrote: For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder That's great; and I trust that my constructive feedback won't be taken as dissing your achievment... No, I'm happy for people to point out problems with it. Otherwise it'll never improve :) You return nothing for B1 1BB (Birmingham Council House), which is tagged addr:postcode=B1 1BB This is most likely a bug in my parser. I'll have to take a look at it this evening and see why it's being ignored. Thanks for the report. This is exactly what I need to find bugs. I just spent a very confused half-hour trying to work out why this one was being ignored until I noticed that the addr:postcode tag was only added yesterday morning and the planet extract I am using is few days old. Fixed now: http://milliams.dev.openstreetmap.org/postcodefinder/B1%201BB/ For a common address, such as 2 High Street, you return multiple results, with no obvious distinguishing feature. Please include the addr:city value in the results (if present); and allow searches to be limited by that tag. Yes, I'd realised this would be a problem but I hadn't been sure how to fix it. Adding the addr:city tag to the search results would be a good start but without a full reverse geocoder (or full PostGIS database) there's only so much I can do. I didn't want to bombard Nominatim all the time for these results. I've now added this functionality. It only shows up in a few cases (e.g. search for street name 'Almond') but it's a little better than it was. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 17 March 2011 18:55, Matt Williams li...@milliams.com wrote: On 17 March 2011 17:44, Jerry Clough : SK53 on OSM sk53_...@yahoo.co.uk wrote: A few weeks ago I did pull out postcodes from all tagged objects compared them with CodePoint, IIRC OSM had about 0.6% of them (around 7000 in addr:postcode format, and another 4000 in postal_code tags). These figures will have increased substantally since then (B72 was only 41% complete at the time). Yeah, it looks a lot better now. I count 70,608 houses with postcodes in OSM. This will more than you measured because this is expanding out interpolated address ways and buildings with more than one house number. And interestingly that 70,608 number was from an extract a few days old. The latest extract (about a day old now) pushes the number up to 74,942 so we're doing well :). Perhaps it would be interesting to keep track of this data. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 16/03/11 19:51, Matt Williams wrote: Greetings all, For the last week I've been working on a sort of 'replacement' for the Royal Mail's postcode/address finder (you know, the one with the ~5 queries a day limit without an account) [1] but based entirely on data in the OSM database. You can find my site at [2]. It's features are: - Covers the whole of Britain (based on the Geofabrik great_britain.osm.pbf file from 15 March) - Can search by full or partial postcode - Can search for street and house number or just for street name - Largely based on the Karlsruhe Schema (including the associatedStreet relation for grouping houses together) - Has a tagging guide [3] to help document the tags the system uses - Fully open-source [4] - 'Error' reporting - these are currently only shown at the bottom of the page with the error. I will probably make a map out of this at some point. I currently measure about a quarter of a million 'address points' - that is objects with a postcode or with both a housenumber and a street (associates street or addr:street). This compares with the reported 28 million entries in the Royal Mail's PAF. I will provide a more detailed breakdown when I get a chance. Of course in its current state it's not a competitor for the PAF but I'm hoping that the if you render it, they will map it rule will apply here to encourage people to add postcodes and addresses. I guess a good postcode to look at is B72 [5] given the excellent work done at [6]. I've also been doing a lot in CV4 so that should be quite good too. Please take a look a the site and give me any feedback on anything you like or don't like. As I said this is only about a week's part-time work so it's unpolished in many places but I figure that RERO is a good idea here. There are a number of features I am still planning on implementing which are recoded at [7,8]. The first time you connect to the site it might take a while to load but after that it should be snappy enough. Regards, Matt Williams http://milliams.com [1] http://postcode.royalmail.com [2] http://milliams.dev.openstreetmap.org/postcodefinder/ [3] http://milliams.dev.openstreetmap.org/postcodefinder/tagging/ [4] http://gitorious.org/postcodefinder [5] http://milliams.dev.openstreetmap.org/postcodefinder/search/?postcode=B72 [6] http://blog.mappa-mercia.org/2011/02/whats-in-postcode.html [7] http://gitorious.org/postcodefinder/postcode-analyser/blobs/master/TODO.rst [8] http://gitorious.org/postcodefinder/postcodefinder/blobs/master/TODO.rst For anyone wanting to add postcodes to addresses you can use the postcode layer in JOSM or Potlatch 2 described here: http://wiki.openstreetmap.org/wiki/User:Chillly/codepoint If your postcode area is not yet in the layer (see the list on the page above, send me a message off list and I'll add it. I decided not to add them all until I knew how the site would perform. -- Cheers, Chris user: chillly ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb
Re: [Talk-GB] Postcode finder based on OSM data
On 16 March 2011 21:12, Chris Hill o...@raggedred.net wrote: For anyone wanting to add postcodes to addresses you can use the postcode layer in JOSM or Potlatch 2 described here: http://wiki.openstreetmap.org/wiki/User:Chillly/codepoint If your postcode area is not yet in the layer (see the list on the page above, send me a message off list and I'll add it. I decided not to add them all until I knew how the site would perform. I must thank you for that map, It's been very useful in Canley for adding postcodes to some of the more regularly-shaped estates. I'm planning on using Codepoint Open to augment my postcode finder by using to assist searches and reporting missing and misplaced postcode centroids in OSM. -- Matt Williams http://milliams.com ___ Talk-GB mailing list Talk-GB@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk-gb