Select to view content in your preferred language

Allow Parameter Passing for Geocode Service in Portal

351
1
07-21-2016 12:55 AM
Status: Open
DamienO_Callaghan1
Deactivated User

Allow Portal for ArcGIS to restrict the scope of a Geocode search by passing parameters in the same way as is allowed in ArcGIS online. So for example to restrict the Geocode service in AGOL you can append sourceCountry=AUS which works well.

http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer?sourceCountry=AUS

Unfortunately the same does not work in Portal and it will not accept the Geocode Service when parameters are appended to the URL.

1 Comment
StefanUseldinger

This should be possible, if You adapt Your "Geocode Service" config in /portal/sharing/rest/portals/0123456789ABCDEF/update by adding the language code.

Example:

[{"url":"https://maps.vdl.lu/portal/sharing/servers/8e3ff30824ce470b9c03d292a6957445/rest/services/World/Geoc...?sourceCountry=LUX","name":"ArcGIS World Geocoding Service","isEsriBatchGeocoder":true,"placeholder":"Find address or place","singleLineFieldName":"SingleLine","batch":true,"placefinding":true,"suggest":true,"zoomScale":1000}]