Skip to content

Request: Add ability to set geocode Url on SearchView #663

@ramtechjoe

Description

@ramtechjoe

This relates to Add Ability to Set ApiKey on SearchView.

Another useful functionality would be if one could set the geocode Url as a bindable property on the SearchView.

The driver for this is that if a user is logged into an on-premise ArcGIS Enterprise their credentials are not valid for the esri online geocoder. Because of this when a user opens a map with the SearchView it will try to authenticate for the world geocode service using the user's ArcGIS Enterprise credentials which will fail. After either canceling or timing out the address search does not work.

The geocoder url is set as an internal constant in LocatorSearchSource

internal const string WorldGeocoderUriString = "https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer";

If instead there was a BindableProperty on the SearchView for GeocodeUrl this could be set to the internal portal's geocode url

Something like
"https://server.domain.loc/portal/sharing/servers/6775d0b27ef8438aa4a2ef90c77e6aaa/rest/services/World/GeocodeServer",

This would then successfully be authenticated using the ArcGIS Enterprise user

Thanks
-Joe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions