Geocoding and reverse Geocoding

Applications developed with the Sygic iOS SDK can perform offline geocoding, which allows geocode and reverse geocode requests to be performed without an active data connection. This is done automatically when an active data connection is not available, as long as the map and database information have been previously downloaded.

class SearchViewController: UIViewController, SYSearchDelegate {
    var searchResults: [SYReverseSearchResult]()

    func search(for searchQuery: String) {
        SYSearch.shared().delegate = self
        if let coordinate = SYGeoCoordinate(latitude: 48145822, longitude: 17126640) {
            SYSearch.shared().reverse(with: coordinate)
        }
    }

    // MARK: - SYSearchDelegate

    func search(_ search: SYSearch, didFinishReverseSearchingFor coordinate: SYGeoCoordinate, with results: [SYReverseSearchResult]) {
        searchResults = results
        // reload the table for example
    }
}