Autocomplete/Typeahead API Example
This example shows the use of our typeahead API applied to a JQuery Autocomplete plugin.
The request and response JSON is shown in the boxes as you type.
This search control uses our typeahead API for each keypress, and typeahead/fetch when an address is selected.
- Entering a number followed by street name will search general urban and rural street addresses.
- Entering a unit and street number in the form aaa-bbb (hyphen between no spaces) will add the unit number to the search and response.
- Entering "PO BOX xxx" will search PO Box addresses only. Where xxx is a PO Box number.
- Entering "RR" or "SS" will search Rural Route Service addresses only.
- Entering "GD" will search General Delivery addresses only.
- You can type anything anywhere to search on city, street, prov and postal code.
- If you select an address without entering a valid street address, you will receive warnings (which you would present to your users).