Search methods
Querying the address database directly — useful for autocomplete back-ends, route-planning tools, and address-coverage audits.
SearchForAddresses#
POST /SearchForAddressesRetrieves address records matching a rich set of conditions (street name, street type, direction, municipality, province, postal code, number range). Powers the live demo's "Address searches" mode.
| Name | Type | Description |
|---|---|---|
| TargetTypeRequired | enum | NB_TargetAddresses / NB_TargetNames / NB_TargetMunicipalities / NB_TargetFSAs / NB_TargetPostalCodes. |
| StreetName | string | Partial or full street name. |
| StreetType | string | "ST", "AVE", "BLVD", … (or alt forms — see GetKeywords). |
| StreetDirection | string | "E", "W", "N", "S", "NE", … |
| Municipality | string | City / town name. |
| Province | string | Two-letter province code. |
| PostalCode | string | Full or partial postal code (FSA accepted). |
| StreetNumberFrom | string | Lower bound of the street number range. |
| StreetNumberTo | string | Upper bound of the street number range. |
| AddressTypes | string | Bitmask: Street, SSBR, PO Box, Route, GD, Urban, Rural. |
| MaxItems | number | Cap on returned addresses. Typical: 500–5000. |
| SearchConditions | object | { allowMisspellings, allowMissingWords, allowAltMunicipalities, accentedInput, accentedOutput, lowercaseOutput, … } |
curl $NCODE_BASE/SearchForAddresses \
-H "Authorization: AcmeLogistics|nck_live_…" \
-H "Content-Type: application/json" \
-d '{
"TargetType": "NB_TargetAddresses",
"StreetName": "KING",
"StreetType": "ST",
"Municipality": "TORONTO",
"Province": "ON",
"MaxItems": 500
}'Response includes Address[] (each with AddressElements) and ActualAddressesFound — the total matches before the MaxItems cap.
SearchForNames#
POST /SearchForNamesLike SearchForAddresses, but returns street names, station names, municipalities, FSAs, or postal codes rather than full addresses. Use for autocomplete on partial input.
SearchForAltMunicipalities · SearchForAltStreets#
POST /SearchForAltMunicipalities
POST /SearchForAltStreetsFind alternate (commonly-used) names — e.g. "St. Catharines" ↔ "Saint Catharines". Useful when matching user input against legacy data.
GetKeywords#
POST /GetKeywordsReturns optimum and alternate values for parameter keywords: street types, street directions, suite identifiers, route descriptors. Use to validate inputs before sending them to other endpoints.
BrowseAddressEx#
POST /BrowseAddressExAddress browsing for partial input that the AnalyzeAddress family would reject as non-correctable — e.g. when the user has typed only a postal code or only a street name + municipality. Returns a constrained set of viable completions.
OneStopAnalyze internally calls BrowseAddressEx; call this method directly only when you need fine-grained control over the browsing level.
ParseAddress#
POST /ParseAddressSplits a raw single-line address into structured elements without correction, returning one or more parser variants. Useful as a building block; most integrations should call OneStopAnalyze instead.
Related#
- OneStopAnalyze — combines
AnalyzeGetAlternatives+BrowseAddressEx+ParseAddressfor the common case. - Address layouts, Analysis modes, Correction styles.