Class SuggestParameters

java.lang.Object
com.esri.arcgisruntime.tasks.geocode.SuggestParameters

public final class SuggestParameters extends Object
Holds parameters to be passed to suggest operations.
Since:
100.0.0
See Also:
  • Constructor Details Link icon

    • SuggestParameters Link icon

      public SuggestParameters()
      Constructs a SuggestParameters with default settings.
      Since:
      100.0.0
  • Method Details Link icon

    • getCategories Link icon

      public List<String> getCategories()
      Gets a mutable list of categories used to filter the results of the suggest operation. Initially this is an empty list which means no category filtering is done. Add entries to this list for each category for which results are required. Categories represent address and place types, for example "city", "school", "Ski Resort".
      Returns:
      the list of categories used to filter suggest results
      Since:
      100.0.0
    • getCountryCode Link icon

      public String getCountryCode()
      Gets the country code used to filter the results of the suggest operation.
      Returns:
      the country code, or an empty String if none has been set
      Since:
      100.0.0
    • setCountryCode Link icon

      public void setCountryCode(String countryCode)
      Sets the country code used to filter the results of the suggest operation. By default no such filtering is done.
      Parameters:
      countryCode - the country code
      Since:
      100.0.0
    • getMaxResults Link icon

      public int getMaxResults()
      Gets the maximum number of results to be returned by the suggest operation.
      Returns:
      the maximum number of results, in the range [1..15]
      Since:
      100.0.0
    • setMaxResults Link icon

      public void setMaxResults(int maxResults)
      Sets the maximum number of results to be returned by the suggest operation. The default value is 5.
      Parameters:
      maxResults - the maximum number of results, in the range [1..15]
      Since:
      100.0.0
    • getPreferredSearchLocation Link icon

      public Point getPreferredSearchLocation()
      Gets the preferred search location.
      Returns:
      the preferred search location point, or null if none has been set
      Since:
      100.0.0
    • setPreferredSearchLocation Link icon

      public void setPreferredSearchLocation(Point preferredSearchLocation)
      Sets the preferred search location. This defines an origin point location that is used to sort the SuggestResults based on their proximity to the location. The priority of results within a radius of 2000 meters (for online geocoding services) or 50000 meters (for offline locators) is boosted relative to those outside that radius. By default no preferred search location is set.
      Parameters:
      preferredSearchLocation - the preferred search location point
      Since:
      100.0.0
    • getSearchArea Link icon

      public Geometry getSearchArea()
      Gets the search area used to filter the results of the suggest operation. This is a bounding rectangle outside which results are not returned.
      Returns:
      a Geometry specifying the search area, or null if none has been set
      Since:
      100.0.0
    • setSearchArea Link icon

      public void setSearchArea(Geometry searchArea)
      Sets the search area used to filter the results of the suggest operation. This is a bounding rectangle outside which results are not returned. By default no preferred search area is set.
      Parameters:
      searchArea - an Envelope specifying the search area
      Since:
      100.0.0