AddressAutofill

public final class AddressAutofill

Undocumented

  • Basic internal initializer

    Declaration

    Swift

    public convenience init(accessToken: String? = nil)

    Parameters

    accessToken

    Mapbox Access Token to be used. Info.plist value for key MGLMapboxAccessToken will be used for nil argument

  • 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 more

    Declaration

    Swift

    struct AddressComponent : Equatable
  • Undocumented

    See more

    Declaration

    Swift

    struct Options
  • Undocumented

    See more

    Declaration

    Swift

    struct Query
  • Undocumented

    See more

    Declaration

    Swift

    struct Result
  • Undocumented

    See more

    Declaration

    Swift

    struct Suggestion