Currently we don't have a working solution for searching on postcodes in Canada. <br><br>Whilst I realise the interests of many don't include postcodes condensing them down to six characters would give us a working solution today even if the script had to be run say once a month.<br>
<br>Once we have a permanent solution running a second script that inserted a space would put things back to normal.<br><br>The script logic would be if country=ca and postcode data is 7 characters long postcode data becomes chars1-3+5-7. Allowing a walkthrough should catch any software errors.<br>
<br>This is probably one of those occasions when its worth while asking the
question is the client people entering data or people using the map? Condensing the postcode in this way would at least make it searchable.<br><br>Thanks<br><br>Cheerio John<br><br>>><br>Comment:<br>
<div class="im"><br>
> For GB postcodes either a search of "en3 6rg,gb" or "en36rg,gb"
works<br>
fine.<br>
</div> The current GB version only works through a hideous hack which
can't<br>
easily be extended because it uses a separate table of postcodes and<br>
knowledge of how the uk postcode system works to guess them.<br>
<div class="im"><br>
> For CA "k4a 1m7,ca" does not work, "k1e3p6,ca" does.
Unfortunately<br>
k1e3p6 was entered in the wrong format. It should have been "ANA NAN"
not<br>
"ANANAN" note the space.<br>
<br>
</div> I'm currently working on space sensitivity issue for the next
version but<br>
this is unlikely to be fixed quickly.<br>
<br>
--<br>
Brian<br><br><br><br><div class="gmail_quote">On 26 March 2010 17:02, Richard Weait <span dir="ltr"><<a href="mailto:richard@weait.com">richard@weait.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Fri, Mar 26, 2010 at 4:20 PM, john whelan <<a href="mailto:jwhelan0112@gmail.com">jwhelan0112@gmail.com</a>> wrote:<br>
> Would it be possible for someone to write a script and execute it that went<br>
> through the OSM database and where country=CA change the format for the<br>
> existing post codes to remove the space to make them searchable?<br>
><br>
> If some one could point me at a bit of sample code I could probably write<br>
> the script.<br>
<br>
</div></div>Let's give the nominatim developers a couple of days to react to your<br>
bug report first. No point in deliberately butchering the correct<br>
postcode data.<br>
<br>
Deliberately making the data incorrect to fix a bug seems suboptimal.<br>
The risk of a mis-behaving script, not once, but twice, seems<br>
contra-indicated as well.<br>
<br>
What's your rush?<br>
</blockquote></div><br>