Response Description
A request to the Geocode service returns a
GeocodeServiceResponse object that contains:
- totalPossibleCandidates— the total number of possible candidates.
- totalMatches— the total number of matches.
- candidates — lists one or more candidates that matched to your input address/addresses. Matching and location information is returned for each match candidate.
Response Element | Description |
---|---|
totalPossibleCandidates (Integer) | Indicates the total number of possible candidates. |
totalMatches (Integer) | Indicates the total number of matches. |
candidates object of type Candidate, consisting of an array with one or more match candidates and associated address, matching and location information. Contains the following elements: | |
precisionLevel (Integer) | A code describing the precision of the geocode. One of
the following:
|
formattedStreetAddress (String) |
The formatted main address line. |
formattedLocationAddress (String) | The formatted last address line. |
identifier (String) | For street- or point-level candidates, this is usually the segment ID. |
precisionCode (String) | A code describing the precision of the geocode. The format of the geocode result string is The possible match categories are as follows:
The matches in the 'S' category indicate that the record was matched to a single address candidate.
PO Box candidates return a result code beginning with the letter B. Additional match information is of the format
HPNTSCSZA . If a match result was not made for the specified component, a dash (-) will appear in place of a letter.
|
DPV_CMRA | Indicates whether the address is for a Commercial Mail Receiving Agent:
|
DPV_CONFIRM | Indicates if a match occurred for DPV data:
|
DPV_FALSE_POS | DPV false-positive indicator:
|
DPV_FOOTNOTE1 | Information about the matched DPV records:
|
DPV_FOOTNOTE2 |
|
DPV_FOOTNOTE3 |
Note: A unique ZIP Code is a ZIP Code assigned to a company, agency, or entity with sufficient mail volume to receive its own ZIP Code.
|
DPV_NO_STAT | Indicates the deliverability of the Address:
|
DPV_SHUTDOWN | Value can be Y or N. This is for internal purposes. Does not impact end user and should be ignored. |
DPV_VACANT |
|
sourceDictionary (String) | Identifies the dictionary that is the source for the candidate information and data. The source dictionary is a 0-based integer value that indicates which configured dictionary the candidate came from. If you only have a single dictionary this will always be "0". |
matching object. Indicates what parts of the input matched; consisting of the following elements: | |
matchOnAddressNumber (Boolean) | Indicates if the input address number matched the candidate's address number.
|
matchOnPostCode1 (Boolean) | Indicates if the input postCode1 field matched the
candidate's postCode1 field.
|
matchOnPostCode2 (Boolean) | Indicates if the input postCode2 field (post code
extension) matched the candidate's postCode2 field.
|
matchOnAreaName1 (Boolean) | Indicates if the input areaName1 field matched the
candidate's areaName1 field.
|
matchOnAreaName2 (Boolean) | Indicates if the input areaName2 field matched the
candidate's areaName2 field.
|
matchOnAreaName3 (Boolean) | Indicates if the input areaName3 field matched the
candidate's areaName3 field.
|
matchOnAreaName4 (Boolean) | Indicates if the input areaName4 field matched the
candidate's areaName4 field.
|
matchOnStreetName (Boolean) | Indicates if the input street name matched the candidate's street name.
|
matchOnStreetType (Boolean) | Indicates if the input street type matched the candidate's street type.
|
matchOnStreetDirectional (Boolean) | Indicates if the input street directional matched the candidate's street
directional.
|
matchOnPlaceName (Boolean) | Indicates if the input place name matched the candidate's place name.
|
geometry object. Returned geocode consisting of the following elements: | |
coordinates (Double) | The candidate's geocode, specified as x (longitude) and y (latitiude) coordinates separated by a comma. |
crs (String) | The coordinate reference system used for the candidate's geocode. |
type (String) | Geometry type. The return value is always Point . |
address object. Returned candidate address which may contain some of the following elements: | |
Note: The meaning, valid values and support of the following address elements vary
by country:
In addition, there are certain matching and geocoding options that vary by country. It is important to review the information specific to your country/countries. To locate your country's information, refer to the Country Reference Listing and ISO 3166-1 Country Codes sections in the appendix. |
|
mainAddressLine (String) | Candidate address line. |
addressLastLine (String) | Candidate last address line. |
placeName (String) | Firm, company, organization, business or building name. |
areaName1 (String) | State, province or region. |
areaName2 (String) | County or district. |
areaName3 (String) | City, town or suburb. |
areaName4 (String) | Locality |
postCode1 (String) | Main postal code. |
postCode2 (String) | Secondary postal code, where one exists. |
country (String) | Country |
addressNumber (String) | House or building number. |
streetName (String) | Street name. |
unitType (String) | The type of unit, such as Apt., Ste. and Bldg. |
unitValue (String) | The unit value/number, such as "3B". |
customFields (Object) | The fields and corresponding values returned are country-specific. Refer to the Country-Specific Information sections in the appendix. |
ranges: CandidateRange object. Contains information about a candidate's ranges, consisting of the following elements: | |
placeName (String) | If applicable, indicates the name of the candidate's place or building. |
lowHouse (String) | Indicates the low house number in the candidate's street range. |
highHouse (String) | Indicates the high house number in the candidate's street range. |
side (String) | Provides information on the side of street that the candidate's range is
located.
|
oddEvenIndicator (String) | Provides information on the house numbering of the candidate's range.
|
customValues (Map) | A map of local values associated with the candidate's range. |
units: CandidateRangeUnit object. Contains information about a candidate range's units, consisting of the following elements: | |
placeName (String) | If applicable, indicates the name of the candidate's place or building. |
unitType (String) | Indicates the unit type (APT, STE, etc.). |
highUnitValue (String) | Indicates the high unit number for this range unit. |
lowUnitValue (String) | Indicates the low unit number for this range unit. |
customValues (Map) | A map of local values associated with the unit. |