https://github.com/christian-draeger/mobilitybox-kt
A kotlin client for https://themobilitybox.com
https://github.com/christian-draeger/mobilitybox-kt
Last synced: 3 months ago
JSON representation
A kotlin client for https://themobilitybox.com
- Host: GitHub
- URL: https://github.com/christian-draeger/mobilitybox-kt
- Owner: christian-draeger
- Created: 2021-06-06T20:20:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-10T19:47:30.000Z (over 4 years ago)
- Last Synced: 2025-05-14T08:48:40.753Z (5 months ago)
- Language: Kotlin
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mobilitybox Kotlin Client
A Kotlin client implementation for the [mobilitybox](https://developer.themobilitybox.com) API.## Installation
### Gradle
```kotlin
implementation("io.github.christian-draeger:mobilitybox-kt:0.1.0")
```### Maven
```xmlio.github.christian-draeger
mobilitybox-kt
0.1.0```
## Usage
### Search for Stations
```kotlin
val response = mobilitybox(apiKey = "your-api-key") {
stations {
searchByName("gransee")
// or
searchById("...")
// or
searchByPosition(GeoPosition(.0, .0))
}
}
```### Get Departures
```kotlin
val response = mobilitybox(apiKey = "your-api-key") {
departures {
get("vesputi-station-OW_67U4PIKCwCBxtnNWwZ2jnsNS2WZA1eNY9MyjyvKs")
}
}
```