TKTripGoGeocoder
public class TKTripGoGeocoder : NSObject
extension TKTripGoGeocoder: TKGeocoding
extension TKTripGoGeocoder: TKAutocompleting
An autocompleter and geocoder for transport-related POIs in supported TripGo regions
Implements TKAutocompleting
, providing instances of TKNamedCoordinate
in
object
. It also implements TKGeocoding
, returning
also a list of TKNamedCoordinate
. These search results can be of the subclass
TKStopCoordinate
for public transport stops matching the search.
This geocoder is a wrapper around the geocode.json
endpoint of the TripGo API.
-
Declaration
Swift
public func geocode(_ input: String, near mapRect: MKMapRect, completion: @escaping (Result<[TKNamedCoordinate], Error>) -> Void)
-
Declaration
Swift
public func autocomplete(_ input: String, near mapRect: MKMapRect, completion: @escaping (Result<[TKAutocompletionResult], Error>) -> Void)
-
Declaration
Swift
public func cancelAutocompletion()
-
Declaration
Swift
public func annotation(for result: TKAutocompletionResult, completion: @escaping (Result<MKAnnotation?, Error>) -> Void)