mirror of
https://gitlab.com/t6353/sharee.bike.wiki.git
synced 2024-12-22 07:36:26 +01:00
Update 3.4. pri request=stations_available
This commit is contained in:
parent
044cbdc6be
commit
9b2b2814ab
1 changed files with 4 additions and 7 deletions
|
@ -18,16 +18,14 @@
|
||||||
| station_group | + | array | station group |
|
| station_group | + | array | station group |
|
||||||
| authed | o | text | return 1 if user is authenticated on operator |
|
| authed | o | text | return 1 if user is authenticated on operator |
|
||||||
| gps_radius | + | text | geofencing by meters around station, for bike return. |
|
| gps_radius | + | text | geofencing by meters around station, for bike return. |
|
||||||
| uri_operator | + | text | URI of operator-server |
|
| uri_operator | + | text | URI of operator-server |
|
||||||
| service_tour | o | text | service tour number |
|
|
||||||
| bike_count | + | text | Amount of available bikes on station |
|
| bike_count | + | text | Amount of available bikes on station |
|
||||||
| user_rental_count | + | text | Amount of user rentaled bikes on station |
|
|
||||||
| operator_data | o | object | operator values (see example) |
|
| operator_data | o | object | operator values (see example) |
|
||||||
|
|
||||||
Example
|
Example
|
||||||
**REST request=stations_available** for authorized users
|
**REST request=stations_available** for authorized users
|
||||||
```
|
```
|
||||||
https://shareeapp-primary.copri-bike.de/APIjsonserver?request=stations_available&authcookie=6103_0f667aa7f234fe317a2705ee89fde0c3_1234567998
|
https://shareeapp-primary.example.tld/APIjsonserver?request=stations_available&authcookie=6103_0f667aa7f234fe317a2705ee89fde0c3_1234567998
|
||||||
```
|
```
|
||||||
|
|
||||||
**response** sharee JSON defaults + **response** multiple station objects
|
**response** sharee JSON defaults + **response** multiple station objects
|
||||||
|
@ -38,7 +36,7 @@ https://shareeapp-primary.copri-bike.de/APIjsonserver?request=stations_available
|
||||||
},
|
},
|
||||||
"WUE9301" : {
|
"WUE9301" : {
|
||||||
"state" : "available",
|
"state" : "available",
|
||||||
"uri_operator" : "https://shareeapp-wue.copri-bike.de",
|
"uri_operator" : "https://shareeapp-wue.example.tld",
|
||||||
"description" : "Rieselfeldemo",
|
"description" : "Rieselfeldemo",
|
||||||
"operator_data" : {
|
"operator_data" : {
|
||||||
"operator_hours" : "Montag, Mittwoch, Freitag 9-12 Uhr",
|
"operator_hours" : "Montag, Mittwoch, Freitag 9-12 Uhr",
|
||||||
|
@ -59,8 +57,7 @@ https://shareeapp-primary.copri-bike.de/APIjsonserver?request=stations_available
|
||||||
"longitude" : " 7.765779379576922"
|
"longitude" : " 7.765779379576922"
|
||||||
},
|
},
|
||||||
"gps_radius" : "100",
|
"gps_radius" : "100",
|
||||||
"bike_count" : "2",
|
"bike_count" : "2"
|
||||||
"user_rental_count" : "1"
|
|
||||||
},
|
},
|
||||||
"WUE9302" : {
|
"WUE9302" : {
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue