AddressSuggestion

data class AddressSuggestion(val id: String, val title: String, val subtitle: String)

One address the user can pick from the autocomplete list.

A suggestion carries only what the list needs to draw a row plus the identifier used to retrieve the full address. Mapbox returns the components on the retrieve call, not on suggest, so a suggestion alone cannot fill a form.

Constructors

Link copied to clipboard
constructor(id: String, title: String, subtitle: String)

Properties

Link copied to clipboard
val id: String

Identifies the suggestion within its search session.

Link copied to clipboard

The second line of the row, typically city, state, and country.

Link copied to clipboard

The first line of the row, typically the street address.