Class GeocodingRequest.Builder

  • Enclosing class:
    GeocodingRequest

    public static final class GeocodingRequest.Builder
    extends java.lang.Object
    • Field Detail

    • Constructor Detail

      • Builder

        public Builder​(com.navmii.sdk.search.SearchManager.SearchManagerPrivate searchManagerPrivate,
                       java.lang.String searchQuery,
                       MapCoordinates searchLocation)
    • Method Detail

      • setCountryCodes

        public GeocodingRequest.Builder setCountryCodes​(java.util.List<java.lang.String> countryCodes)
        Limit search results to one or more countries. Must be the ISO 3166-1alpha2 code. Example: country_codes=de,at
        Returns:
        The builder.
      • setSearchLocation

        public GeocodingRequest.Builder setSearchLocation​(MapCoordinates searchLocation)
        Sets the center of the circle where the search will be performed.

        Setting this option overrides the bounds set with setViewBox(MapRectangle).

        Parameters:
        searchLocation - The search location.
        Returns:
        The builder.
      • setSearchRadius

        public GeocodingRequest.Builder setSearchRadius​(int searchRadius)
        Sets the radius of the circle around the search location where the search will be performed.

        Setting this option overrides the bounds set with setViewBox(MapRectangle).

        The default radius is 10000 meters.

        Parameters:
        searchRadius - The search radius.
        Returns:
        The builder.
      • setMaxResultCount

        public ConcreteBuilder setMaxResultCount​(int maxResultCount)
        Parameters:
        maxResultCount - The maximum number of search results.
        Returns:
        The builder.
      • setLocale

        public ConcreteBuilder setLocale​(java.lang.String locale)
        Parameters:
        locale - The language used for results.
        Returns:
        The builder.