TKGeocoding

public protocol TKGeocoding

Undocumented

  • geocode(_:near:completion:) Default implementation

    Called to geocode a particular input.

    Default Implementation

    Declaration

    Swift

    func geocode(_ input: String, near mapRect: MKMapRect, completion: @escaping (Result<[TKNamedCoordinate], Error>) -> Void)

    Parameters

    input

    Query typed by the user

    mapRect

    Last map rect the map view was zoomed to (can be MKMapRectNull)

    completion

    Handler with the geocoding results for the query.

  • geocode(_:near:) Extension method, asynchronous

    Undocumented

    Declaration

    Swift

    public func geocode(_ object: TKGeocodable, near region: MKMapRect) async throws
  • geocode(_:near:) Extension method, asynchronous

    Called to geocode a particular input.

    Declaration

    Swift

    func geocode(_ input: String, near mapRect: MKMapRect) async throws -> [TKNamedCoordinate]

    Parameters

    input

    Query typed by the user

    mapRect

    Last map rect the map view was zoomed to (can be MKMapRectNull)

    Return Value

    Geocoding results for the query.