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
ccd52f0a50
commit
6380bb9bed
1 changed files with 5 additions and 9 deletions
|
@ -15,19 +15,19 @@
|
|||
| description | o | text<=20 | short station description |
|
||||
| gps | + | array | GPS: latitude, longitude |
|
||||
| station | + | text | station prefix_number |
|
||||
| station_group | + | array | station_group describes which bike_groups are allowed at the station |
|
||||
| station_group | + | array | deprecated, it will be substituted by station_type object |
|
||||
| gps_radius | + | text | geofencing by meters around station, for bike return. |
|
||||
| uri_operator | + | text | URI of operator-server |
|
||||
| station_type | + | object | station values (see example) |
|
||||
| station_type | + | object | station values (see example). It can be "cargo" and/or "city" bike objects |
|
||||
| operator_data | o | object | operator values (see example) |
|
||||
|
||||
|
||||
**station_group** describes which **bike_group** are allowed at the station.
|
||||
**station_type** describes which **bike_group** are allowed at the station.
|
||||
Groups are identified by ID. The following groups of bicycles are defined:
|
||||
| Defined group ID's | bike type |
|
||||
| ------ | ------ |
|
||||
| 300101 | Cargobike |
|
||||
| 300103 | Citybike |
|
||||
| 300101 | cargo |
|
||||
| 300103 | city |
|
||||
Keep in mind, each ID is preceded by an operator-prefix. Datatype is array, because each station can have more byke_group
|
||||
|
||||
Example
|
||||
|
@ -55,10 +55,6 @@ https://shareeapp-primary.example.tld/APIjsonserver?request=stations_available&a
|
|||
"operator_color" : "#009699"
|
||||
},
|
||||
"station" : "WUE9301",
|
||||
"station_group" : [
|
||||
"WUE300101",
|
||||
"WUE300103"
|
||||
],
|
||||
"gps" : {
|
||||
"latitude" : "47.99814334149303",
|
||||
"longitude" : " 7.765779379576922"
|
||||
|
|
Loading…
Reference in a new issue