Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.36 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.36 KB

meteoblue Maps API – Android MapLibre example

A minimal Android app (Jetpack Compose) that shows a meteoblue temperature forecast map using MapLibre Compose.

Temperature forecast map in the MapLibre example app

All relevant code is in MainActivity.kt:

  1. Background map: the meteoblue map style https://maps-api.meteoblue.com/mapstyle/weathermap
  2. Time API: https://maps-api.meteoblue.com/v1/time/hourly/{domain} returns the current time step
  3. Tile API: raster tiles from https://maps-api.meteoblue.com/v1/map/raster/{domain}/{time}/{layer}/{z}/{x}/{y} are added as a MapLibre raster layer below the labels of the background map

Run

Open the project in Android Studio and run the app configuration.

The Gradle wrapper scripts are not included. To build from the command line, run gradle wrapper once, then ./gradlew installDebug.

API key

The app uses a rate-limited demo API key, which will be replaced from time to time. Get your own API key here and set API_KEY in MainActivity.kt.

Documentation