Response Description
A request to the Reverse Geocode service returns a GeocodeServiceResponse object that contains:
- totalPossibleCandidates— the total number of possible candidates.
- totalMatches— the total number of matches.
- candidates object — lists one or more candidates that matched to your input coordinate(s). Matching and address information is returned for each candidate.
Name | Type | 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. |
precisionCode | String | The returned reverse geocoding result code. The definitions are provided in the appendix:. For US, see Address Location Codes; for all other countries, see Reverse Geocode 'R' Result Codes. |
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". |
geometry object. Returned geocode consisting of the following elements: | ||
coordinates | Double | The candidate's geocode, specified as x (longitude) and y (latitude) 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 of the following address elements vary by country:
To locate your country's information, refer to the Country-Specific Information sections in the appendix that provides more details. |
||
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. |