GeocodeParameters
GeocodeParameters =
object
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:1771
Parameters for geocoder.geocode. Mirrors the native GeocodeParameters.
Properties
Section titled “Properties”categories?
Section titled “categories?”
optionalcategories?:string[]
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:1797
Place categories to filter by (e.g. ['Coffee shop']).
countryCode?
Section titled “countryCode?”
optionalcountryCode?:string
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:1795
Two/three-letter country code to constrain the search.
locatorUrl?
Section titled “locatorUrl?”
optionallocatorUrl?:string
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:1804
Locator to use. An online geocode-service URL, or a local path to an offline locator
(.loc) for disconnected geocoding. Defaults to the ArcGIS World Geocoding Service.
maxResults?
Section titled “maxResults?”
optionalmaxResults?:number
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:1782
Maximum number of matches to return.
outputSpatialReference?
Section titled “outputSpatialReference?”
optionaloutputSpatialReference?:number
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:1793
WKID of the spatial reference for returned locations (e.g. 3857 for Web Mercator,
4326 for WGS84). When omitted the locator returns coordinates in its own SR.
preferredSearchLocation?
Section titled “preferredSearchLocation?”
optionalpreferredSearchLocation?:PointGeometry
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:1799
A point near which results are preferred.
resultAttributeNames?
Section titled “resultAttributeNames?”
optionalresultAttributeNames?:string[]
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:1788
Attribute names to include on each result (e.g. ['*'] for all, or
['Match_addr', 'City', 'Region'] for a specific subset). When omitted the locator
returns its default set.
searchValues?
Section titled “searchValues?”
optionalsearchValues?:Record<string,string>
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:1780
Structured address fields for multi-field geocoding (e.g.
{ Address: "380 New York St", City: "Redlands", Region: "CA", Postal: "92373" }).
When provided, the SDK’s multi-field overload is used instead of the single-line text
search. Field names must match the locator’s input fields (the World Geocoder accepts
Address, Address2, Address3, City, Region, Postal, PostalExt, CountryCode).
If both searchValues and searchText are supplied, searchValues takes precedence.