forked from stadtnavi/generate-gtfs-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flex-spec-schema.json
59 lines (59 loc) · 2.06 KB
/
flex-spec-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"$schema": "http://json-schema.org/schema#",
"$ref": "#/$defs/FlexSpec",
"$defs": {
"FlexSpec": {
"title": "GTFS-Flex spec",
"type": "object",
"required": [
"id",
"radius",
"pickup_type",
"drop_off_type",
"bookingRule"
],
"properties": {
"id": {"type": "string", "minLength": 1},
"radius": {
"description": "Radius of the generated GTFS-FlexibleTrips (https://github.com/MobilityData/gtfs-flex/blob/e1832cfea5ddb9df29bd2fc50e80b0a4987695c1/spec/reference.md#gtfs-flexibletrips) location area, in kilometers.",
"type": "number",
"exclusiveMinimum": 0
},
"pickup_type": {
"description": "GTFS-Static stop_times.txt pickup_type value.",
"type": "integer"
},
"drop_off_type": {
"description": "GTFS-Static stop_times.txt drop_off_type value.",
"type": "integer"
},
"bookingRule": {"$ref": "#/$defs/BookingRule"}
}
},
"BookingRule": {
"description": "A GTFS-BookingRules booking_rules.txt (https://github.com/MobilityData/gtfs-flex/blob/e1832cfea5ddb9df29bd2fc50e80b0a4987695c1/spec/reference.md#booking_rulestxt-file-added) entry/row.",
"type": "object",
"required": [
"booking_rule_id",
"booking_type"
],
"properties": {
"booking_rule_id": {"type": "string", "minLength": 1},
"booking_type": {"type": "integer"},
"prior_notice_duration_min": {"type": "integer"},
"prior_notice_duration_max": {"type": "integer"},
"prior_notice_last_day": {"type": "integer"},
"prior_notice_last_time": {"type": "string", "minLength": 1},
"prior_notice_start_day": {"type": "integer"},
"prior_notice_start_time": {"type": "string", "minLength": 1},
"prior_notice_service_id": {"type": "string", "minLength": 1},
"message": {"type": "string", "minLength": 1},
"pickup_message": {"type": "string", "minLength": 1},
"drop_off_message": {"type": "string", "minLength": 1},
"phone_number": {"type": "string", "minLength": 1},
"info_url": {"type": "string", "minLength": 1},
"booking_url": {"type": "string", "minLength": 1}
}
}
}
}