Define GeoPoint Search Extent - Public Survey

355
8
10-05-2018 05:19 AM
Highlighted
New Contributor II

Is there any way to limit the address search extent for the GeoPoint  input on a public survey (without login) using the web app?  We have a public survey for users that are not part of our organization that requires a local GeoPoint and some users are confused when international results are returned. 

Tags (2)
Reply
0 Kudos
8 Replies
Highlighted
Occasional Contributor II

Hi Chris,

There is actually an enhancement logged and is in the current product plan for Survey123!

ENH-000114785: Provide the option to use a boundary dataset or feature service to restrict the spatial input extent in a Geopoint question in Survey123.

Best,

Marisa

Reply
0 Kudos
Highlighted
New Contributor

Hi Marisa,

Any update on when this feature might be deployed? I'm running into the same issue Chris described with a public-facing survey that relies entirely on geosearch rather than device location.

Thanks,

Will

Reply
0 Kudos
Highlighted
Esri Esteemed Contributor

Hi Will,

Unfortunately, Marisa was inferring from the status of the ENH request, and while that ENH request is tangentially related to what you are asking (an overall restriction of input), doesn't address directly what you are asking (provide a restriction to the geocoder search parameters).  

In order to address this, Survey123 first needs to be able to specify a locator for public web forms.  This does not have timeline yet.

Highlighted
Esri Contributor

Thanks James,

For anyone else looking for ENH-000114785 outcomes that found this post, the ability to limit inputs by feature-driven extents is now viable through custom JavaScript functions.  Possible workflows:

  • Conduct a spatial query with a feature layer to determine which polygon, if any, the location is within
  • Create a javascript function that determines if a point is within the set of coordinates that represent the polygon

As James indicated this is separate to the discussion in this thread, so please create a new post if you're interested.

Cheers,

Chris

Reply
0 Kudos
Highlighted
Esri Frequent Contributor

Hi, this is possible today by leveraging Locator Service Views.  The Geosearch control in Survey123 uses by default the locators defined in your ArcGIS Organization.  You can configure the default locator in your organization to include a filter using a geographic extent. This is accomplished using Locator Views.

For an introduction to Locator  Views:

Highlighted
New Contributor II

We had set up  a locator view and also configured a custom local locator, but problem was that only users from our organization that were logged in seemed to be able to use them.  Anyone not logged in would revert to the ArcGIS World Geocoding Service at full extent.  Our surveys are public and the users will not be logged in to ArcGIS Online.  Am I missing something in configuring this for all users of the survey regardless of if they are logged in or not?

Reply
0 Kudos
Highlighted
Esri Frequent Contributor

Hi Chris.

  1. Create a custom locator item pointing to http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer  Make sure that you embed the credentials.
  2. Share the locator item created in previous step with Everyone
  3. Next, create a Locator View with your map extent as a constraint and share with Everyone.
  4. Set Locator View created in 3 as your default locator in the ArcGIS Online org.
  5. Survey123 should now use your Locator View by default.

Thanks,

Ismael

Reply
0 Kudos
Highlighted
New Contributor II

Ismael,

Thank you for your response, but I am running in to the same issue that we were with custom locator.  After following your steps the locator shows up as the default locator for any user from our organization that is logged in, however, all public users that are not logged in revert to the ArcGIS World Geocoding Service.

Reply
0 Kudos