Class SearchManager

java.lang.Object
com.navmii.sdk.search.SearchManager

public final class SearchManager
extends java.lang.Object
SearchManager is used to create objects of all types of search requests needed: geocoding, reverse geocoding, places (POI) search and light variation of reverse geocoding needed to get only country and state info.
  • Constructor Details

  • Method Details

    • destroy

      public void destroy()
    • createGeocodingRequest

      public GeocodingRequest.Builder createGeocodingRequest​(java.lang.String searchQuery, MapCoordinates coordinates)
      Creates a builder for the request to perform geocoding search.
      Parameters:
      searchQuery - The textual query to perform search.
      coordinates - The center of the area of search.
      Returns:
      The request object builder.
    • createReverseGeocodingRequest

      public ReverseGeocodingRequest.Builder createReverseGeocodingRequest​(MapCoordinates coordinates)
      Creates a builder for the request to perform reverse geocoding search. Use this type of request when you need to get the full address at some coordinates.

      If you want to know only country or state at some coordinates, use CountryAndStateRequest, which performs faster than full reverse geocoding.

      Parameters:
      coordinates - The coordinates of a point to perform reverse geocoding.
      Returns:
      The request object builder.
    • createPoiRequest

      public PoiRequest.Builder createPoiRequest​(java.lang.String searchQuery, MapCoordinates coordinates)
      Creates a builder for the request to perform search for POIs around the specified coordinates using the specified searchQuery. Results will be sorted by distance from the coordinates specified in the request.
      Parameters:
      searchQuery - The textual query to perform search.
      coordinates - The center of the area of search.
      Returns:
      The request object builder.
    • createCountryAndStateRequest

      public CountryAndStateRequest.Builder createCountryAndStateRequest​(MapCoordinates coordinates)
      Creates a builder for the request to perform search for the nearest POIs.

      Use this search request when you need to know only country or state at some coordinates. This request performs faster than full reverse geocoding.

      Parameters:
      coordinates - The coordinates of the point to perform reverse geocoding of country and state.
      Returns:
      The request object builder.