Select to view content in your preferred language

Using an external geocoder instead of ArcGIS World Geocoding Service

01-13-2021 04:59 AM
New Contributor III

Is it possible to use the search widget with a different geocoder instead of the one suggested by Esri? I have an address search API, but I don't know whether is is supported?

Tags (3)
0 Kudos
3 Replies
MVP Regular Contributor

Yes. I think geocode services are configured like normal with the sources property.

Esri Regular Contributor

Yes, the Search widget can work with the default Esri World Geocoder, with a layer, with a geocode service resource exposed by the ArcGIS Server REST API, or a properly configured 3rd party search API.

Search widget with a custom source (open data address search API for France)

Search widget with multiple sources (2 layers and Esri World Geocoder)


Regular Contributor

Be sure to set the includedefaultsources to false

var searchWidget = new Search({
view: view,
allPlaceholder: "Search by street address",
autoSelect: true,
suggestionsEnabled: true,
includeDefaultSources: false,
sources: [
locator: new Locator({
//url: "" //World GeocodeServer
url: "your GeocodeServer"
name: "City Locator",
placeholder: "Street Address",
zoomScale: 1000

0 Kudos