Geocode Preferences
Preferences supported by the Geocode Service include a variety of settings for match mode, geocoding to a street or administrative area, fallback to a less specific location if an exact match cannot be found, and more. The following table describes the preferences available to all countries.
Parameter | Type | Description |
---|---|---|
maxResults | integer | The maximum number of candidates to return. Default = 1 |
returnAllInfo | boolean | Specifies whether to return all available information for each candidate |
factoryDescription | String | Controls which address processor will process the request. |
clientLocale | String | Specifies the locale value. For example, specify "th" for the Thai language. |
clientCoordSysName | String | Specifies the coordinate system that you want to convert the geometry to. The format must be the European Petroleum Survey Group (EPSG) code or the SRID code. Default = EPSG:4326. |
distance | number | Displays the defined search radius.
streetOffset specifies the offset distance from the street segments to use in street-level geocoding. Default 5 meters cornerOffset specifies the distance to offset the street end points in street-level matching Default 7 meters. |
originXY | number | XY coordinates of the origin address. |
matchMode | String | Match modes determine the leniency used to make a match between the input address and the reference data. |
returnOfAdditionalFields | String | Allows user to control which additional fields to return, if they choose not to return all the data. |
type |
String |
Indicates the geocode type to be performed. Optional.
|
returnAllCandidateInfo |
Boolean | Specifies whether to return all available information for each
candidate.
|
fallbackToGeographic |
Boolean | Specifies whether to attempt to determine a geographic region
centroid when an address-level geocode cannot be determined.
Optional.
|
fallbackToPostal |
Boolean | Specifies whether to attempt to determine a post code centroid
when an address-level geocode cannot be determined. Optional.
|
maxReturnedCandidates |
Integer | |
matchOnAddressNumber | Boolean |
|
matchOnPostCode1 |
Boolean |
|
matchOnPostCode2 |
Boolean |
|
matchOnAreaName1 |
Boolean |
|
matchOnAreaName2 |
Boolean |
Note: This option is not supported by
USA.
|
matchOnAreaName3 |
Boolean |
|
matchOnAreaName4 |
Boolean |
|
matchOnAllStreetFields |
Boolean |
|
returnAllCustomFields |
Boolean |
|
returnedCustomFieldKeys |
List<String> | Specifies a list of keys that represent the custom fields to be
returned in the candidate's customFields
output. To specify multiple key/value pairs for a country, use
spaces to separate the names of the custom fields to be returned.
Custom fields vary by country. For example:
“CTYST_KEY ” or “DATATYPE ”.
Default: empty. |
returnMatchDescriptor |
Boolean |
|
returnStreetAddressFields |
Boolean |
|
returnUnitInformation | Boolean |
|