SYReverseSearch Class Reference

Class providing reverse search functions for location data. More...

#import <SYReverseSearch.h>

Inheritance diagram for SYReverseSearch:
Collaboration diagram for SYReverseSearch:

Instance Methods

(void) - reverseSearchWithCoordinate:withCompletion:
 Invokes an asynchronous request to match a location on the world map. SYSearchResults is returned in SYReverseSearchDelegate::search:didFinishReverseSearchingForCoordinate:withResults: delegate function. This function search also walkways by default. More...
 
(void) - reverseSearchWithCoordinate:withFilter:withCompletion:
 Invokes an asynchronous request to match a location on the world map. SYSearchResults is returned in SYReverseSearchDelegate::search:didFinishReverseSearchingForCoordinate:withResults: delegate function. More...
 
(void) - getTimeZoneAtLocation:atTime:completion:
 Asynchronously returns time zone (in seconds from GMT) at specific location and time (result may differ for summer/winter time). The coordinate must be inside of maps already installed by SYMapInstaller, otherwise it will finish with error. It's recommended to use the result for creation of NSTimeZone object. More...
 

Detailed Description

Class providing reverse search functions for location data.

Method Documentation

◆ reverseSearchWithCoordinate:withCompletion:

- (void) reverseSearchWithCoordinate: (nonnull SYGeoCoordinate *)  coordinate
withCompletion: ("use reverseSearchWithCoordinate:withFilter:withCompletion instead.")  __deprecated_msg 

Invokes an asynchronous request to match a location on the world map. SYSearchResults is returned in SYReverseSearchDelegate::search:didFinishReverseSearchingForCoordinate:withResults: delegate function. This function search also walkways by default.

Parameters
coordinateObject representing the location used to search for results on map

◆ reverseSearchWithCoordinate:withFilter:withCompletion:

- (void) reverseSearchWithCoordinate: (nonnull SYGeoCoordinate *)  coordinate
withFilter: (nullable NSSet< NSNumber * > *)  filter
withCompletion: (nonnull void(^)(NSArray< SYReverseSearchResult * > *_Nullable results, NSError *_Nullable state))  completion 

Invokes an asynchronous request to match a location on the world map. SYSearchResults is returned in SYReverseSearchDelegate::search:didFinishReverseSearchingForCoordinate:withResults: delegate function.

Parameters
coordinateObject representing the location used to search for results on map
filterSYSearchFilter options for search results will remove all filter types from results

◆ getTimeZoneAtLocation:atTime:completion:

- (void) getTimeZoneAtLocation: (nonnull SYGeoCoordinate *)  location
atTime: (nonnull NSDate *)  time
completion: (nonnull SYReverseSearchGetTimeZoneCompletion)  completion 

Asynchronously returns time zone (in seconds from GMT) at specific location and time (result may differ for summer/winter time). The coordinate must be inside of maps already installed by SYMapInstaller, otherwise it will finish with error. It's recommended to use the result for creation of NSTimeZone object.

Parameters
locationGPS coordinate to get time zone for.
timeTime at which the time zone has to be evaluated.
completionCompletion block, result is NSNumber object containing integer value of seconds from GMT.

The documentation for this class was generated from the following file: