AddressAutofill

interface AddressAutofill

Main entrypoint to the Mapbox Autofill SDK. Performs forward or reverse geocoding requests to fetch addresses.

Types

Link copied to clipboard
object Companion

Companion object.

Functions

Link copied to clipboard
abstract suspend fun reverse(point: Point, options: AddressAutofillOptions): Expected<Exception, List<AddressAutofillResult>>

Performs reverse geocoding request.

Link copied to clipboard
abstract suspend fun select(suggestion: AddressAutofillSuggestion): Expected<Exception, AddressAutofillResult>

Retrieves detailed information about the AddressAutofillSuggestion. Use this function to end search session even if you don't need detailed information.

Link copied to clipboard
abstract suspend fun suggestions(query: Query, options: AddressAutofillOptions): Expected<Exception, List<AddressAutofillSuggestion>>

Performs forward geocoding request.