-
Basic internal initializer
Declaration
Swift
public convenience init( accessToken: String? = nil, locationProvider: LocationProvider? = DefaultLocationProvider() )
Parameters
accessToken
Mapbox Access Token to be used. Info.plist value for key
MGLMapboxAccessToken
will be used fornil
argumentlocationProvider
Provider configuration of LocationProvider that would grant location data by default
-
Start searching for query with provided options
Declaration
Swift
func suggestions(for query: Query, with options: Options? = nil, completion: @escaping (Swift.Result<[Suggestion], Error>) -> Void)
Parameters
query
query string to search
options
if no value provided Search Engine will use options from requestOptions field
-
Start searching for query with provided options
Declaration
Swift
func suggestions(for coordinate: CLLocationCoordinate2D, with options: Options? = nil, completion: @escaping (Swift.Result<[Suggestion], Error>) -> Void)
Parameters
coordinate
point Coordinate to resolve
options
if no value provided Search Engine will use options from requestOptions field
-
Undocumented
See moreDeclaration
Swift
struct AddressComponent : Equatable
-
Undocumented
See moreDeclaration
Swift
struct Options
-
Undocumented
See moreDeclaration
Swift
struct Query
-
Undocumented
See moreDeclaration
Swift
struct Result
-
Undocumented
See moreDeclaration
Swift
struct Suggestion