Geocodio/docs

Canadian Zip Codes are dropping the last three digits during geocoding.

raysuelzer opened this issue · 1 comments

Canadian Zip Codes are dropping the last three digits during geocoding. It seems to be doing this for all the addresses I try.

See:
https://api.geocod.io/v1.7/geocode?q=1138%20Bathurst%20St,%20Toronto,%20ON%20M6G2B4,%20Canada&api_key=XXXXXXX

{
    "input": {
        "address_components": {
            "number": "1138",
            "street": "Bathurst",
            "suffix": "St",
            "formatted_street": "Bathurst St",
            "city": "Toronto",
            "state": "ON",
            "zip": "M6G 2B4",
            "country": "CA"
        },
        "formatted_address": "1138 Bathurst St, Toronto, ON M6G 2B4"
    },
    "results": [
        {
            "address_components": {
                "number": "1138",
                "street": "Bathurst",
                "suffix": "St",
                "formatted_street": "Bathurst St",
                "city": "Toronto",
                "state": "ON",
                "zip": "M5R",
                "country": "CA"
            },
            "formatted_address": "1138 Bathurst St, Toronto, ON M5R",
            "location": {
                "lat": 43.675909,
                "lng": -79.415761
            },
            "accuracy": 0.9,
            "accuracy_type": "rooftop",
            "source": "City of Toronto (Open Government Licence – Toronto Contains information licensed under the Open Government Licence – Toronto)"
        }
    ]
}

Hi @raysuelzer

At this time, Geocodio is only able to return the FSA (first 3 characters of Canadian postal codes). This is a limitation put on us by Canada Post. We have to respect this as postal codes in Canada are considered proprietary, and at this time Canada Post is not willing to let us license the full postal code data.

We are hoping that this changes in the future, so we are able to return the full postal codes.

Mathias