MapboxWeatherApi

class MapboxWeatherApi @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP_PREFIX]) constructor(baseUrl: String, options: MapboxWeatherApiOptions)

Constructors

Link copied to clipboard
constructor(options: MapboxWeatherApiOptions = MapboxWeatherApiOptions.Builder().build())
@RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP_PREFIX])
constructor(baseUrl: String, options: MapboxWeatherApiOptions)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Fetches weather conditions based on the provided WeatherQuery.

Link copied to clipboard
suspend fun getWeatherAlerts(location: Point): Result<List<WeatherAlert>>

Retrieves a list of severe weather alerts for the given location. The attribution phrase must display: Issued by - , , , .

Link copied to clipboard