-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GBFSMetadata : lit station_information.is_virtual_station (#4340)
- Loading branch information
1 parent
ce5e155
commit a23fd8b
Showing
7 changed files
with
139 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
apps/transport/test/fixture/gbfs/station_information.2.2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"last_updated": 1609866247, | ||
"ttl": 0, | ||
"version": "2.2", | ||
"data": { | ||
"stations": [ | ||
{ | ||
"station_id": "pga", | ||
"name": "Parking garage A", | ||
"lat": 12.345678, | ||
"lon": 45.678901, | ||
"vehicle_type_capacity": { | ||
"abc123": 7, | ||
"def456": 9 | ||
} | ||
} | ||
] | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
apps/transport/test/fixture/gbfs/station_information.3.0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"last_updated": "2023-07-17T13:34:13+02:00", | ||
"ttl": 0, | ||
"version": "3.0", | ||
"data": { | ||
"stations": [ | ||
{ | ||
"station_id": "pga", | ||
"name": [ | ||
{ | ||
"text": "Parking garage A", | ||
"language": "en" | ||
} | ||
], | ||
"lat": 12.345678, | ||
"lon": 45.678901, | ||
"station_opening_hours": "Su-Th 05:00-22:00; Fr-Sa 05:00-01:00", | ||
"parking_type": "underground_parking", | ||
"parking_hoop": false, | ||
"contact_phone": "+33109874321", | ||
"is_charging_station": true, | ||
"vehicle_docks_capacity": [ | ||
{ | ||
"vehicle_type_ids": ["abc123"], | ||
"count": 7 | ||
} | ||
] | ||
}, | ||
{ | ||
"station_id": "station12", | ||
"name": [ | ||
{ | ||
"text": "SE Belmont & SE 10th", | ||
"language": "en" | ||
} | ||
], | ||
"lat": 45.516445, | ||
"lon": -122.655775, | ||
"is_valet_station": false, | ||
"is_virtual_station": true, | ||
"is_charging_station": false, | ||
"station_area": { | ||
"type": "MultiPolygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
[ | ||
-122.655775, | ||
45.516445 | ||
], | ||
[ | ||
-122.655705, | ||
45.516445 | ||
], | ||
[ | ||
-122.655705, | ||
45.516495 | ||
], | ||
[ | ||
-122.655775, | ||
45.516495 | ||
], | ||
[ | ||
-122.655775, | ||
45.516445 | ||
] | ||
] | ||
] | ||
] | ||
}, | ||
"capacity": 16, | ||
"vehicle_types_capacity": [ | ||
{ | ||
"vehicle_type_ids": ["abc123", "def456"], | ||
"count": 15 | ||
}, | ||
{ | ||
"vehicle_type_ids": ["def456"], | ||
"count": 1 | ||
} | ||
|
||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters