-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsegment.schema.json
187 lines (187 loc) · 5.92 KB
/
segment.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
{
"primaryKey": "segment_id",
"missingValues": [
"NaN",
""
],
"fieldsMatch": "subset",
"foreignKeys": [
{
"fields": "link_id",
"reference": {
"resource": "link",
"fields": "link_id"
}
},
{
"fields": "ref_node_id",
"reference": {
"resource": "node",
"fields": "node_id"
}
}
],
"fields": [
{
"name": "segment_id",
"type": "any",
"description": "Primary key.",
"constraints": {
"required": true
}
},
{
"name": "link_id",
"type": "any",
"description": "Required. Foreign key to road_links. The link that the segment is located on.",
"constraints": {
"required": true
}
},
{
"name": "ref_node_id",
"type": "any",
"description": "Required. Foreign key to node where distance is 0.",
"constraints": {
"required": true
}
},
{
"name": "start_lr",
"type": "number",
"description": "Required. Distance from `ref_node_id` in short_length units.",
"constraints": {
"required": true,
"minimum": 0
}
},
{
"name": "end_lr",
"type": "number",
"description": "Required. Distance from `ref_node_id`in short_length units.",
"constraints": {
"required": true,
"minimum": 0
}
},
{
"name": "grade",
"type": "number",
"description": "% grade, negative is downhill",
"constraints": {
"maximum": 100,
"minimum": -100
},
"warnings": {
"maximum": 25,
"minimum": -25
}
},
{
"name": "capacity",
"type": "number",
"description": "Optional. Saturation capacity (pce/hr/ln)",
"constraints": {
"minimum": 0
}
},
{
"name": "free_speed",
"type": "number",
"description": "Optional. Free flow speed, units defined by config file",
"constraints": {
"minimum": 0,
"maximum": 200
},
"warnings": {
"minimum": 1,
"maximum": 120
}
},
{
"name": "lanes",
"type": "integer",
"description": "Optional. Number of lanes in the direction of travel (must be consistent with link lanes + lanes added)."
},
{
"name": "l_lanes_added",
"type": "integer",
"description": "Optional. # of lanes added on the left of the road link (negative indicates a lane drop)."
},
{
"name": "r_lanes_added",
"type": "integer",
"description": "Optional. # of lanes added on the right of the road link (negative indicates a lane drop)."
},
{
"name": "bike_facility",
"type": "string",
"description": "Optional. Types of bicycle accommodation based on the National Bikeway Network Data Template (Table 1-A) See https://data.transportation.gov/stories/s/National-Bicycle-Network/88zh-3rqb/",
"categories": [
"unseparated bike lane",
"buffered bike lane",
"separated bike lane",
"counter-flow bike lane",
"paved shoulder",
"shared lane",
"shared use path",
"off-road unpaved trail",
"other",
"none"
]
},
{
"name": "ped_facility",
"type": "string",
"description": "Optional. Type of pedestrian accommodation:unknown,none,shoulder,sidewalk,offstreet_path.",
"categories": [
"unknown",
"none",
"shoulder",
"sidewalk",
"offstreet_path"
]
},
{
"name": "parking",
"type": "string",
"description": "Optional. Type of parking: unknown,none,shoulder,sidewalk,offstreet_path.",
"categories": [
"unknown",
"none",
"shoulder",
"sidewalk",
"offstreet_path"
]
},
{
"name": "allowed_uses",
"type": "string",
"description": "Optional. Set of allowed uses that should appear in either the use_definition or use_group tables; comma-separated."
},
{
"name": "toll",
"type": "number",
"description": "Optional. Toll on the segment, in currency units."
},
{
"name": "jurisdiction",
"type": "string",
"description": "Optional. Optional. Owner/operator of the segment."
},
{
"name": "row_width",
"type": "number",
"description": "Optional. Width (short_length units) of the entire right-of-way (both directions).",
"constraints": {
"minimum": 0
},
"warnings": {
"minimum": 10
}
}
],
"name": "segment.schema.json",
"description": "A portion of a link defined by `link_id`,`ref_node_id`, `start_lr`, and `end_lr`. Values in the segment will override they value specified in the link table. When one segment is fully contained within another, its value prevails.",
"$schema": "https://datapackage.org/profiles/2.0/tableschema.json"
}