Skip to content

Commit

Permalink
Add deprecation notice, min entries, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-richardson committed Jul 24, 2024
1 parent 15d0106 commit 0d121d5
Show file tree
Hide file tree
Showing 25 changed files with 118 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "segment with an invalid entry in the connector_ids array",
"id": "segment with an invalid entry in the connectors array",
"type": "Feature",
"geometry": {
"type": "LineString",
Expand Down
10 changes: 7 additions & 3 deletions counterexamples/transportation/segment/bad-connector.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "segment with an invalid entry in the connector_ids array",
"id": "segment with an invalid entry in the connectors array",
"type": "Feature",
"geometry": {
"type": "LineString",
Expand All @@ -8,12 +8,16 @@
"properties": {
"ext_expected_errors": [
"expected string, but got number",
"expected string, but got boolean"
"expected string, but got boolean",
"expected object, but got string",
"expected object, but got number",
"expected object, but got boolean"
],
"theme": "transportation",
"type": "segment",
"version": 3,
"subtype": "rail",
"connector_ids": ["bazConnector", "qux", 1, false]
"connector_ids": ["bazConnector", "qux", 1, false],
"connectors": [{"connector_id": "foo", "at": 0.0}, {"connector_id": "bar", "at": 1.0}, "bazConnector", "qux", 1, false]
}
}
6 changes: 6 additions & 0 deletions counterexamples/transportation/segment/bad-route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
routes:
- name: ""
ref: 1234
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
level_rules:
- value: 1.5
ext_expected_errors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
level_rules:
- value: 1
foo: bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ properties:
subclass: link
subclass_rules:
- value: link
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
road_surface: gravel
road_flags:
- [is_link, is_tunnel] # Note: `is_link` is deprecated and will be removed in a future release in favor of the link subclass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ properties:
theme: transportation
type: segment
version: 1
connector_ids: [lanes-resolution-example-connector]
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
subtype: road
class: motorway
lanes: # A list of two geometrically-scoped rules for resolving the lane block.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ properties:
theme: transportation
type: segment
version: 2
connector_ids: [lanes-resolution-example-connector]
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
subtype: road
class: motorway
lanes:
Expand Down
10 changes: 8 additions & 2 deletions examples/transportation/docusaurus/simple-road.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ properties:
version: 5
subtype: road
class: residential
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:simple-road-connector-1
- overture:transportation:example:simple-road-connector-2
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
- connector_id: overture:transportation:example:via-turn-restriction-connector2
at: 1
names:
primary: Nicola Street
lanes:
Expand Down
10 changes: 8 additions & 2 deletions examples/transportation/docusaurus/turn-restriction-01-exit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:simple-turn-restriction-connector1
- overture:transportation:example:simple-turn-restriction-connector3
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
- connector_id: overture:transportation:example:via-turn-restriction-connector2
at: 1
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ properties:
version: 5
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:simple-turn-restriction-connector1
- overture:transportation:example:simple-turn-restriction-connector2
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
- connector_id: overture:transportation:example:via-turn-restriction-connector2
at: 1
prohibited_transitions:
- sequence:
- segment_id: overture:transportation:example:simple-turn-restriction-target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:simple-turn-restriction-connector2
- overture:transportation:example:simple-turn-restriction-connector3
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
- connector_id: overture:transportation:example:via-turn-restriction-connector2
at: 1
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ properties:
version: 5
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
- connector_id: overture:transportation:example:via-turn-restriction-connector2
at: 1
names:
primary: Arborway
prohibited_transitions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@ properties:
version: 5
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
- connector_id: overture:transportation:example:via-turn-restriction-connector2
at: 1
names:
primary: Arborway
road_surface:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ properties:
version: 5
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids:
- overture:transportation:example:via-turn-restriction-connector1
- overture:transportation:example:via-turn-restriction-connector2
connectors:
- connector_id: overture:transportation:example:via-turn-restriction-connector1
at: 0
- connector_id: overture:transportation:example:via-turn-restriction-connector2
at: 1
names:
primary: Washington Street
road_surface:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ properties:
version: 4
subtype: road
class: primary

connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ properties:
version: 5
subtype: road
class: primary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
---
id: overture:transportation:segment:0841f2c7ffffffff0477f88f6824635d
id: overture:transportation:segment:123
type: Feature
geometry:
type: LineString
coordinates: [[14.5161902, 56.6452609], [14.5151903, 56.6465165], [14.5128482, 56.6494576]]
coordinates: [[0, 0], [0.03, 0], [0.10, 0]]
properties:
theme: transportation
type: segment
version: 1
subtype: road
class: secondary
connector_ids: [08f1f2c6a5d612f20473f1d0ae2f3b9b, 08f1f2c78b6cd7480477fda99ff112b1, 08f1f2c78b6740300477f04e2259ca78]
road_surface:
- value: paved
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector, bazConnector]
connectors:
- connector_id: 08f1f2c6a5d612f20473f1d0ae2f3b9b
- connector_id: fooConnector
at: 0
- connector_id: 08f1f2c78b6cd7480477fda99ff112b1
- connector_id: barConnector
at: 0.3
- connector_id: 08f1f2c78b6740300477f04e2259ca78
- connector_id: bazConnector
at: 1
road_surface:
- value: paved
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ properties:
version: 6
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ properties:
version: 1
subtype: road
class: secondary
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
Expand Down
1 change: 1 addition & 0 deletions examples/transportation/segment/road/road-with-route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ properties:
version: 1
subtype: road
class: motorway
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
Expand Down
1 change: 1 addition & 0 deletions examples/transportation/segment/road/road.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ properties:
subclass: link
subclass_rules:
- value: link
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
Expand Down
1 change: 1 addition & 0 deletions examples/transportation/segment/road/sidewalk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ properties:
subclass: sidewalk
subclass_rules:
- value: sidewalk
# `connector_ids` is deprecated in favor of `connectors`, planned to be removed for the October release
connector_ids: [fooConnector, barConnector]
connectors:
- connector_id: fooConnector
Expand Down
4 changes: 3 additions & 1 deletion schema/transportation/segment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ properties:
"$comment": >-
Each entry in this array is the GERS ID of a transportation connector feature.
uniqueItems: true
minItems: 2
default: []
connectors:
description: >-
Expand All @@ -72,13 +73,14 @@ properties:
items:
type: object
"$comment": >-
Each entry in this array is the GERS ID and LR of a transportation connector feature.
Contains the GERS ID and relative position between 0 and 1 of a connector feature along the segment.
unevaluatedProperties: false
required: [connector_id, at]
properties:
connector_id: { "$ref": "../defs.yaml#/$defs/propertyDefinitions/id" }
at: { "$ref": "../defs.yaml#/$defs/propertyDefinitions/linearlyReferencedPosition" }
uniqueItems: true
minItems: 2
default: []
routes: { "$ref": "#/$defs/propertyDefinitions/routes" }
"$defs":
Expand Down

0 comments on commit 0d121d5

Please sign in to comment.