TKPeliasGeocoder
public class TKPeliasGeocoder : NSObject
extension TKPeliasGeocoder: TKGeocoding
extension TKPeliasGeocoder: TKAutocompleting
An autocompleter and geocoder powered by a Pelias backend
Implements TKAutocompleting
, providing instances of TKNamedCoordinate
in
object
. It also implements TKGeocoding
, returning
also a list of TKNamedCoordinate
.
This geocoder hits the Pelias instance hosted by SkedGo at https://pelias.tripgo.com
.
-
Undocumented
Declaration
Swift
public override init()
-
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 annotation(for result: TKAutocompletionResult, completion: @escaping (Result<MKAnnotation?, Error>) -> Void)