-
Basic internal initializer
Declaration
Swift
public convenience init( accessToken: String? = nil, locationProvider: LocationProvider? = DefaultLocationProvider() )Parameters
accessTokenMapbox Access Token to be used. Info.plist value for key
MGLMapboxAccessTokenwill be used fornilargumentlocationProviderProvider configuration of LocationProvider that would grant location data by default
-
Search for places nearby the specified geographic point.
Declaration
Parameters
querySearch query
proximityGeographic point to search nearby.
optionsSearch options
completionResult of the search request, one of error or value.
-
Search for places nearby the specified geographic point.
Declaration
Swift
func search( for query: Query, in region: BoundingBox, proximity: CLLocationCoordinate2D? = nil, options: Options = .init(), completion: @escaping (Swift.Result<[Result], Error>) -> Void )Parameters
querySearch query
regionLimit results to only those contained within the supplied bounding box.
proximityOptional geographic point to search nearby.
optionsSearch options
completionResult of the search request, one of error or value.
-
Search for places nearby the specified geographic point.
Declaration
Swift
func search( for query: Query, route: RouteOptions, options: Options = .init(), completion: @escaping (Swift.Result<[Result], Error>) -> Void )Parameters
querySearch query
routeRoute to search across (points and deviation options).
optionsSearch options
completionResult of the search request, one of error or value.
-
Undocumented
See moreDeclaration
Swift
struct Address -
Undocumented
See moreDeclaration
Swift
struct Options -
Undocumented
See moreDeclaration
Swift
struct Query -
Undocumented
See moreDeclaration
Swift
struct Result
Discover Class Reference