Skip to content
GuidesToolkitAPI

SearchSource

SearchSource = { maximumResults?: number; maximumSuggestions?: number; name?: string; type: "locator"; url?: string; } | { maximumResults?: number; maximumSuggestions?: number; name?: string; repeatSearchResultThreshold?: number | null; repeatSuggestResultThreshold?: number | null; type: "smartLocator"; }

Defined in: packages/expo-arcgis-toolkit/src/Search.tsx:17

Where the search looks. Settings left out keep the Toolkit’s defaults: the world geocoder, 6 results and 6 suggestions.

{ maximumResults?: number; maximumSuggestions?: number; name?: string; type: "locator"; url?: string; }

optional maximumResults?: number

optional maximumSuggestions?: number

optional name?: string

The name shown for the source.

type: "locator"

The Toolkit’s LocatorSearchSource: a geocode service.

optional url?: string

The geocode service.

the ArcGIS World Geocoding Service

{ maximumResults?: number; maximumSuggestions?: number; name?: string; repeatSearchResultThreshold?: number | null; repeatSuggestResultThreshold?: number | null; type: "smartLocator"; }

optional maximumResults?: number

optional maximumSuggestions?: number

optional name?: string

optional repeatSearchResultThreshold?: number | null

The fewest results to try for; null searches once.

1

optional repeatSuggestResultThreshold?: number | null

The fewest suggestions to try for; null suggests once.

6

type: "smartLocator"

The Toolkit’s SmartLocatorSearchSource: the world geocoder, searching again with looser settings when it finds too few results.