0

Canadian incomplete zip codes

Hello,

I just noticed the following issue with Canadian addresses:
Let's say I need to geocode the following:
290 cassandra blvd. apt. 501, toronto ON

so I enter: http://where.yahooapis.com/geocode?location=270 cassandra blvd. apt. 301, toronto ON&locale=en_ca&appid=my_app_id

and I get:
......
<postal>M3A</postal>
<neighborhood>North York</neighborhood>
<city>Toronto</city>
<county>Toronto</county>
<state>Ontario</state>
<country>Canada</country>
<countrycode>CA</countrycode>
<statecode>ON</statecode>
<countycode />
<uzip>M3A</uzip>
........

Please note that postal code returned is M3A - only half of code is returned.
However it really should be M3A1V2 (or M3A 1V2) - as all Canadian zip codes have 6 digits. How can I get the complete postal code?

Thank you,
M. R. - Canada

by
2 Replies
  • QUOTE (Mircea @ Feb 9 2011, 12:25 PM) <{POST_SNAPBACK}>
    Hello,

    I just noticed the following issue with Canadian addresses:
    Let's say I need to geocode the following:
    290 cassandra blvd. apt. 501, toronto ON

    so I enter: http://where.yahooapis.com/geocode?location=270 cassandra blvd. apt. 301, toronto ON&locale=en_ca&appid=my_app_id

    and I get:
    ......
    <postal>M3A</postal>
    <neighborhood>North York</neighborhood>
    <city>Toronto</city>
    <county>Toronto</county>
    <state>Ontario</state>
    <country>Canada</country>
    <countrycode>CA</countrycode>
    <statecode>ON</statecode>
    <countycode />
    <uzip>M3A</uzip>
    ........

    Please note that postal code returned is M3A - only half of code is returned.
    However it really should be M3A1V2 (or M3A 1V2) - as all Canadian zip codes have 6 digits. How can I get the complete postal code?

    Thank you,
    M. R. - Canada


    PlaceFinder does not currently return full postal codes for street addresses in Canada. We are considering this feature for a future release of PlaceFinder.

    Eddie Babcock
    Yahoo! Geo Technologies
    0
  • Yeah - I had been testing with Calgary postal codes (which return the whole thing) but then I get a call saying why does this address in saskatchewan not supply the correct city - and I see it's because it returns only 1/2 the postal code.

    Hummm. Now I need to seek out a different API.
    That's too bad, I like the Yahoo! API.

    I'm sad that I did all this code with results that return full postal codes, but once in production I get feedback the API doesn't return correct information.
    0
This forum is locked.

Recent Posts

in PlaceFinder Enhancement Requests