Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.
This repository was archived by the owner on May 22, 2023. It is now read-only.

API syntax #1

Description

@ITegs

INITIAL

UUID

on the endpoint /genUser the server returns a UUID in the following format:

	{
		"id": "c35fc27a-ceb2-4304-a45b-ec152c2ecba1"
	}

TRACK

routeInfo

on the endpoint /routeInfo planned trip infos are delivered
POST request:

   {
   	"id": "c35fc27a-ceb2-4304-a45b-ec152c2ecba1", 
   	"latitude": 33.123
   	"longitude": 33.123
   	"destination": "Leopoldstraße 9, 80802, München"
   }

Answer:

	{
		"credits": [bike, transit, walking, electric] //[bike, public transportation, walking, electric small vehicles]
		"duration": [bike, transit, walking, electric] //time in min
		"distance": [bike, walking, electric] //distance in m 
	}

sendTrip

on the endpoint sendTrip the device sends the list of geoPositions after finishing the trip
POST request:

	{
		"id": "c35fc27a-ceb2-4304-a45b-ec152c2ecba1",
		"method": 0 //0=bike, 1=walk, 2=public, 3= electric small vehicles, 4 = car
		"geoData": [
			{
				"timestamp":  1668866921
				"latitude": 0.12312342
				"longitude": 0.123143
			},
			{
				"timestamp":  1668866921
				"latitude": 0.12312342
				"longitude": 0.123143
			},
			{
				"timestamp": 1668866921
				"latitude": 0.12312342
				"longitude": 0.123143
			}
		]
	}

Answer:

	{
		"credits": 100
		"duration": 120
		"distance": 8000
	}

Metadata

Metadata

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions