https://github.com/quving/mobispring
https://github.com/quving/mobispring
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/quving/mobispring
- Owner: Quving
- Created: 2017-12-03T20:31:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T16:18:03.000Z (about 8 years ago)
- Last Synced: 2025-03-26T02:43:10.758Z (about 1 year ago)
- Language: Java
- Size: 12.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](http://drone.vingu.online/Quving/mobispring)
# What is Mobispring?
It provides a RestAPI to retrieve informations regarding the transport-network in Hamburg/Germany using the framework [Spring](https://projects.spring.io/spring-boot/).
To be able hosting it by yourself, you need to request an access to the [Geofox-API](http://www.geofox.de/).
___
## API Documentation / Usage
#### DepartureTimes
###### Postrequest without any authentification.
``` curl -X POST -H "Content-Type: application/json" -d '{"station":"Farmsen", "hhMMyyyy":"24.12.2017", "HHmm":"23:24", "maxList":"2"}' http://localhost:8080/api/geofox/departuretime ```
___
## Installation
###### Install docker and run the application:
- ``` docker pull pingu/mobispring ```
- ``` docker run -d -e GEOFOX_API_USER='user123' -e GEOFOX_API_PASSWORD='passw123' -e GEOFOX_API_URL='http://api.endpoint/' -p 8080:8080 pingu/mobispring```
###### Install java and gradle, build and host it by yourself.
- ```./gradlew clean build```
- ```./gradlew bootRun```
___
## Environments need to be set.
- GEOFOX_API_USER
- GEOFOX_API_PASSWORD
- GEOFOX_API_URL