TKGeocoding
public protocol TKGeocoding
Undocumented
-
geocode(_:
Default implementationnear: completion: ) 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(_:
Extension method, asynchronousnear: ) Undocumented
Declaration
Swift
public func geocode(_ object: TKGeocodable, near region: MKMapRect) async throws
-
geocode(_:
Extension method, asynchronousnear: ) 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.