Navmii SDK  2.2.0
Write yourself a navigation system in iOS
Instance Methods | Class Methods | List of all members
NMSearchService Class Reference

Inherits <NSObject>.

Instance Methods

(nullable instancetype) - NS_UNAVAILABLE
 
(NMGeocodingRequest *) - createGeocodingRequestWithSearchQuery:andCoordinates:
 
(NMReverseGeocodingRequest *) - createReverseGeocodingRequestWithCoordinates:
 
(NMPoiRequest *) - createPoiRequestWithSearchQuery:andCoordinates:
 
(NMCountryAndStateRequest *) - createCountryAndStateRequestWithCoordinates:
 

Class Methods

(nullable instancetype) + NS_UNAVAILABLE
 

Detailed Description

NMSearchService is a factory 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.

Method Documentation

◆ createCountryAndStateRequestWithCoordinates:()

- (NMCountryAndStateRequest *) createCountryAndStateRequestWithCoordinates: (NMMapCoordinates *)  coordinates

Creates request to perform search for the nearest POIs.

Parameters
coordinatesof a point to perform reverse geocoding of country and state.
Returns
request object. @discussion Use this search request when you need to know only country or state at some coordinates. This request performs faster then full reverse geocoding.

◆ createGeocodingRequestWithSearchQuery:andCoordinates:()

- (NMGeocodingRequest *) createGeocodingRequestWithSearchQuery: (NSString *)  searchQuery
andCoordinates: (NMMapCoordinates *)  coordinates 

Creates request to perform geocoding search.

Parameters
searchQuerytextual query to perform search.
coordinatescenter of the area of search.
Returns
request object.

◆ createPoiRequestWithSearchQuery:andCoordinates:()

- (NMPoiRequest *) createPoiRequestWithSearchQuery: (NSString *)  searchQuery
andCoordinates: (NMMapCoordinates *)  coordinates 

Creates 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
searchQuerytextual query to perform search.
coordinatescenter of the area of search.
Returns
request object.

◆ createReverseGeocodingRequestWithCoordinates:()

- (NMReverseGeocodingRequest *) createReverseGeocodingRequestWithCoordinates: (NMMapCoordinates *)  coordinates

Creates request to perform reverse geocoding search. Use this type of request when you need to get the full address at some coordinates.

Parameters
coordinatescoordinates of a point to perform reverse geocoding.
Returns
request object. @discussion If you want to know only country or state at some coordinates, use NMCountryAndStateRequest. NMCountryAndStateRequest performs faster then full reverse geocoding.

◆ NS_UNAVAILABLE() [1/2]

- (nullable instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE() [2/2]

+ (nullable instancetype) NS_UNAVAILABLE