GeocodeParameters
GeocodeParameters =
object
Defined in: src/ExpoArcgis.types.ts:1246
Parameters for geocoder.geocode. Mirrors the native GeocodeParameters.
Properties
Section titled “Properties”categories?
Section titled “categories?”
optionalcategories?:string[]
Defined in: src/ExpoArcgis.types.ts:1272
Place categories to filter by (e.g. ['Coffee shop']).
countryCode?
Section titled “countryCode?”
optionalcountryCode?:string
Defined in: src/ExpoArcgis.types.ts:1270
Two/three-letter country code to constrain the search.
locatorUrl?
Section titled “locatorUrl?”
optionallocatorUrl?:string
Defined in: src/ExpoArcgis.types.ts:1279
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: src/ExpoArcgis.types.ts:1257
Maximum number of matches to return.
outputSpatialReference?
Section titled “outputSpatialReference?”
optionaloutputSpatialReference?:number
Defined in: src/ExpoArcgis.types.ts:1268
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: src/ExpoArcgis.types.ts:1274
A point near which results are preferred.
resultAttributeNames?
Section titled “resultAttributeNames?”
optionalresultAttributeNames?:string[]
Defined in: src/ExpoArcgis.types.ts:1263
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: src/ExpoArcgis.types.ts:1255
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.