-
Notifications
You must be signed in to change notification settings - Fork 0
API Docs
Gibt die günstigsten Parkmöglichkeiten zurück
-
URL
/search
-
Method:
GET
-
URL Params
Required:
lat=[double]
lon=[double]
Optional:
speed=[double]
hours=[integer]
-
Success Response:
Returns a state machine response either for state parking or driving
-
Code: 200
Content:{"state":"parking","distance":0.0,"parking":{"id":"P2.09","name":"P2.09","price":1.3,"type":2,"redpoint":null,"description":"Einfahrt: Frangenheimerstr., Ausfahrt : Frangenheimerstr."}}
-
Code: 200
Content:{"state":"driving","radius":400.0,"parking":[{"id":"P2.36","name":"P2.36","price":1.3,"type":2,"coord":[50.9346708,6.9136834]},{"id":"563","name":"Geibelstr. 29","price":0.5,"type":1,"coord":[50.930311921132862,6.9170574515418464]},{"id":"P2.22","name":"P2.22","price":1.3,"type":2,"coord":[50.933695,6.9190478]},{"id":"P2.14","name":"P2.14","price":1.3,"type":2,"coord":[50.9332944,6.9192939]},{"id":"P2.09","name":"P2.09","price":1.3,"type":2,"coord":[50.9330011,6.9200684]}]}
-
-
Error Response:
In case no
lat
orlon
parameters are submitted, the endpoint will error with a 400.-
Code: 400 BAD REQUEST
Content:{"error":"either 'lat' or 'lon' not defined as parameters"}
-
Code: 400 BAD REQUEST
-
Sample Call:
http://parkapi.azurewebsites.net/closest?lat=50.938569&lon=6.905511&speed=4.2
-
Notes:
Speed is meters per seconds!