Package com.navmii.sdk.search
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SearchManager.SearchManagerPrivate
-
Constructor Summary
Constructors Constructor Description SearchManager()
-
Method Summary
Modifier and Type Method Description CountryAndStateRequest.Builder
createCountryAndStateRequest(MapCoordinates coordinates)
Creates a builder for the request to perform search for the nearest POIs.GeocodingRequest.Builder
createGeocodingRequest(java.lang.String searchQuery, MapCoordinates coordinates)
Creates a builder for the request to perform geocoding search.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.ReverseGeocodingRequest.Builder
createReverseGeocodingRequest(MapCoordinates coordinates)
Creates a builder for the request to perform reverse geocoding search.void
destroy()
-
Constructor Details
-
SearchManager
public SearchManager()
-
-
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
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
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.
-