forked from dtemkin-volpe/GMNS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlink.schema.json
206 lines (206 loc) · 7.01 KB
/
link.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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
{
"primaryKey": "link_id",
"missingValues": [
"NaN",
""
],
"fields": [
{
"name": "link_id",
"type": "any",
"description": "Primary key - could be SharedStreets Reference ID",
"constraints": {
"required": true
}
},
{
"name": "parent_link_id",
"type": "any",
"foreign_key": ".link_id",
"description": "Optional. The parent of this link. For example,for a sidewalk, this is the adjacent road."
},
{
"name": "name",
"type": "string",
"description": "Optional. Street or Path Name"
},
{
"name": "from_node_id",
"type": "any",
"foreign_key": "node.node_id",
"constraints": {
"required": true
}
},
{
"name": "to_node_id",
"type": "any",
"foreign_key": "node.node_id",
"constraints": {
"required": true
}
},
{
"name": "directed",
"type": "boolean",
"description": "Required. Whether the link is directed (travel only occurs from the from_node to the to_node) or undirected."
},
{
"name": "geometry_id",
"type": "any",
"foreign_key": "geometry.geometry_id",
"description": "Optional. Foreign key (Link_Geometry table)."
},
{
"name": "geometry",
"type": "any",
"description": "Optional. Link geometry, in well-known text (WKT) format. Optionally, other formats supported by geopandas (GeoJSON, PostGIS) may be used if specified in geometry_field_format in gmns.spec.json"
},
{
"name": "dir_flag",
"type": "integer",
"description": "Optional. <br>1 shapepoints go from from_node to to_node;<br>-1 shapepoints go in the reverse direction;<br>0 link is undirected or no geometry information is provided.",
"constraints": {
"enum": [
-1,
0,
1
]
}
},
{
"name": "length",
"type": "number",
"description": "Optional. Length of the link in long_length units",
"constraints": {
"minimum": 0
}
},
{
"name": "grade",
"type": "number",
"description": "% grade, negative is downhill",
"constraints": {
"maximum": 100,
"minimum": -100
},
"warnings": {
"maximum": 25,
"minimum": -25
}
},
{
"name": "facility_type",
"type": "string",
"description": "Facility type (e.g., freeway, arterial, etc.)"
},
{
"name": "capacity",
"type": "number",
"description": "Optional. Capacity (veh / hr / lane)",
"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 permanent lanes (not including turn pockets) in the direction of travel open to motor vehicles. It does not include bike lanes, shoulders or parking lanes.",
"constraints": {
"minimum": 0
}
},
{
"name": "bike_facility",
"type": "string",
"description": "Optional. Types of bicycle accommodation based on the National Bikeway Network Data Template (Table 1-A at https://nmtdev.ornl.gov/assets/templates/NBN_DataTemplates_final.pdf)",
"constraints": {
"enum": [
"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",
"constraints": {
"enum": [
"unknown",
"none",
"shoulder",
"sidewalk",
"offstreet_path"
]
}
},
{
"name": "parking",
"type": "string",
"description": "Optional. Type of parking: unknown, none, parallel, angle, other",
"constraints": {
"enum": [
"unknown",
"none",
"parallel",
"angle",
"other"
]
}
},
{
"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 link, in currency units.",
"warning": {
"minimum": 0,
"maximum": 10000
}
},
{
"name": "jurisdiction",
"type": "string",
"description": "Optional. Owner/operator of the link."
},
{
"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": "link.schema.json",
"description": "A link is an edge in a network, defined by the nodes it travels from and to. It may have associated geometry information. Links have three types of attributes:<br> - Those that define the physical location of the link (e.g., `shape` `information`, `length`, `width`)<br> - Those that define the directionality of the link: `from_node`, `to_node`<br> - Those that define properties in the direction of travel: capacity,free flow speed, number of lanes, permitted uses, grade, facility type"
}