Class PoiRequest.Builder

  • Enclosing class:
    PoiRequest

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

    • Constructor Detail

      • Builder

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

      • setCategories

        public PoiRequest.Builder setCategories​(java.util.List<PoiCategory> categories)
        Parameters:
        categories - The categories of places which should be used in the search.
        Returns:
        The builder.
      • addCategory

        public PoiRequest.Builder addCategory​(PoiCategory category)
        Adds the specified category to the list.
        Parameters:
        category - The category.
        Returns:
        The builder.
      • setCountryCodes

        public PoiRequest.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 PoiRequest.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 PoiRequest.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.