GetMapboxConfigurationResponse

data class GetMapboxConfigurationResponse(val accessToken: String? = null, val expiresAt: String? = null)

Holds the search-scoped Mapbox access token used for address autocomplete.

Constructors

Link copied to clipboard
constructor(accessToken: String? = null, expiresAt: String? = null)

Properties

Link copied to clipboard
@SerializedName(value = "access_token")
val accessToken: String? = null

The Mapbox access token, scoped to search and geocoding only.

Link copied to clipboard
@SerializedName(value = "expires_at")
val expiresAt: String? = null

When the token stops working, as an ISO-8601 string, or null when it does not expire.

Link copied to clipboard

Whether expiresAt is in the past. False when absent or unparseable.