Postal codes are six-character strings used to identify geographic locations in many countries. They are used for mail sortation, address verification and other purposes. Many postal code databases are available online and many are made accessible through an API. Canada Post maintains the official database for their country and makes it available through a simple API call.
In some countries, such as Australia, Canada, Ireland, Israel, and Singapore, the postal code is precise up to a unique house number, so it can be used to geocode addresses. The /geocode endpoint supports this use case with both qualified and freeform queries.
If you are looking to map a specific address you can also provide a street name and number to match it. This information will be returned with the coordinates in a json or xml response.
The /geocode endpoint also supports reverse geocoding. To do so you can provide a postal or zip+4 code or a street address as input. The results will be returned with latt and longt information.
You can also specify a query language to limit the output to only matches with certain syntax. This will return only a set of matches with the best accuracy for your request.
Providing accurate and validated address data speeds customers through checkout and registration forms, increases conversion and reduces failed deliveries due to human error. A canada postal code lookup api is a great way to standardize and verify addresses quickly.