Searching by CA (canadian) / GB postcode #2830
Comments
Author: twain
I'm currently working on space sensitivity issue for the next version but this is unlikely to be fixed quickly. -- |
Author: jwhelan0112[at]gmail.com So for the moment if they are entered as ANANAN that should work fine and if ever it is sorted out some one can write a script to rundown the database and split it to the correct format. Thanks John |
Author: jwhelan0112[at]gmail.com Idle thought time from my time with databases. Could we have a hidden field for all postcodes that condensed any spaces. Then simply parse out any spaces in the search request and search against this when searching for postcodes. Thanks Cheerio John |
Author: twain They will currently work if entered exactly as entered in OSM - so if they are entered as "k4a 1m7" then they will be searchable as "k4a 1m7". I see you have updated the node in OSM - so this would be fixed except Nominatim is not currently being updated due to a database problem. In general you should enter data correctly in OSM and wait for the tools to be improved. A condensed index will be added to v2 of the code but due to the size of the data re-indexing is not trivial so it will not be changed instantly. |
Author: jwhelan0112[at]gmail.com "528, Merkley Drive, K4A 1N5,CA" gives the result "528, Merkley Drive, K1E3P6, Ontario, Canada" but does find the correct location. "K1E3P6" is an adjacent post code that was entered incorrectly. 528 is one of the early ones entered and it shows up as "K4A 1N5" in JOSM. "K4A 1N5,CA" gives no results found as does A complicating factor would seem to be that although we have imported a large number of roads no city information was added. That is a separate issue that can be addressed. Looking in JOSM everything looks like it is in Ontario but even searches with Ontario bring up nothing. I realise that Canada is far away from Europe but whilst it is a problem that affects Canadians most I am disappointed that we rate only a minor enhancement for something that doesn't appear to work. |
Author: lonvia Issue with wrongly displayed postcode has been fixed. Other postcodes work if they have been mapped in OSM and with the known limitation that postcode centroids are currently not updated. |
Reporter: jwhelan0112[at]gmail.com
[Submitted to the original trac issue database at 2.50pm, Thursday, 25th March 2010]
For GB postcodes either a search of "en3 6rg,gb" or "en36rg,gb" works fine.
For CA "k4a 1m7,ca" does not work, "k1e3p6,ca" does. Unfortunately k1e3p6 was entered in the wrong format. It should have been "ANA NAN" not "ANANAN" note the space.
Could the search code for GB be copied when searching for Canadian postcodes please. This would make OSM in Canada much more useful. Currently it is not possible to search Canada by postcode.
John
The text was updated successfully, but these errors were encountered: