Preferences are configuration options that control the behavior of the Geocode API. They define how requests are processed, how results are returned, and what fallback or matching strategies are applied. These fields are optional but allow fine‑tuning of the API's response.
| Option | Type | Description |
| 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. Specify the
coordinate reference system in the format
codespace:code.Note: The
API always returns the output coordinates in EPSG:4326,
regardless of the input coordinate system.
|
| cornerOffset |
Distance |
Specify the distance to offset the street endpoints in street-level matching. This is used to prevent addresses at street corners from being given the same geocode as the intersection. Defines the offset position of the geocoded point with respect to the corner. The default is 7 meters. |
| data_option | String |
Specifies the type of data option user opts for. Following are the available values for DATA_OPTION:
For example:
|
| distance | Distance | Define the search radius. The default is 5 meters. |
| 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 postcode centroid
when an address-level geocode cannot be determined. Optional.
|
| matchMode | String | Match modes determine the leniency used to make a match
between the input address and the reference data. Select a match
mode based on the quality of your input and your desired output.
The following match modes are available:
|
| maxResults | Integer | The maximum number of candidates to return. Default = 1. |
| returnAllInfo | Boolean | Specifies whether to return all available information for
each candidate.
|
| returnOfAdditionalFields | <String> array |
This lets the user control which additional fields they want to have returned if they do not want to return all info. For example, to return the Street segment identifier, use the
value
SEGMENT_ID |
| streetOffset |
Distance |
Specify the offset distance from the street segments to use
in street-level geocoding. The offset prevents the geocode from
being in the middle of a street. The default is 7 meters. |
| type | String |
Indicates the geocode type to be performed.
|