Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transportation Destinations #176

Merged
merged 15 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added 1
jenningsanderson marked this conversation as resolved.
Show resolved Hide resolved
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
id: overture:transportation:segment:example:destinations:1
type: Feature
geometry:
type: LineString
coordinates: [[0, 0], [1, 1]]
properties:
theme: transportation
type: segment
subtype: road
class: secondary
version: 0
update_time: "2024-04-24T00:00:00-00:00"
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
destinations:
- labels:
- value: Seattle
type: place
- value: Seattle
type: place
- value: Redmond
- value:
foo: bar
type: place
- value: Bellevue
type: other
- value: Main Street
type: street
- value: I90
type: route
symbols:
- airport
from:
- segment_id: overture:transportation:segment:234
- segment_id: overture:transportation:segment:567
connector_id: overture:transportation:connector:567
foo: bar
when:
heading: forward
to_connector_id: overture:transportation:connector:123
final_heading: backward
- labels:
- value: Kirkland
type: place
from:
- segment_id: overture:transportation:segment:567
connector_id: overture:transportation:connector:567
ext_expected_errors:
- "[I#/properties/destinations/0/label] items at index 0 and 1 are equal"
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
id: overture:transportation:segment:example:destinations:1
type: Feature
geometry:
type: LineString
coordinates: [[0, 0], [1, 1]]
properties:
theme: transportation
type: segment
subtype: road
class: secondary
version: 0
update_time: "2024-04-24T00:00:00-00:00"
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
destinations:
- labels:
- value: Seattle
type: bad_type
symbols:
- airport
when:
heading: forward
from_connector_id: overture:transportation:connector:123
to_connector_id: overture:transportation:connector:123
to_segment_id: overture:transportation:segment:567
final_heading: backward
ext_expected_errors:
- "[I#/properties/destinations/0/labels/0/type] [S#/$defs/propertyDefinitions/destinationLabelType/enum] value must be one of"
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
id: overture:transportation:segment:example:destinations:1
type: Feature
geometry:
type: LineString
coordinates: [[0, 0], [1, 1]]
properties:
theme: transportation
type: segment
subtype: road
class: secondary
version: 0
update_time: "2024-04-24T00:00:00-00:00"
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
destinations:
- labels:
- value: Seattle
type: unknown
- value: Seattle
type: unknown
symbols:
- airport
when:
heading: forward
from_connector_id: overture:transportation:connector:123
to_connector_id: overture:transportation:connector:123
to_segment_id: overture:transportation:segment:567
final_heading: backward
ext_expected_errors:
- "[I#/properties/destinations/0/labels] items at index 0 and 1 are equal"
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
id: overture:transportation:segment:example:destinations:1
type: Feature
geometry:
type: LineString
coordinates: [[0, 0], [1, 1]]
properties:
theme: transportation
type: segment
subtype: road
class: secondary
version: 0
update_time: "2024-04-24T00:00:00-00:00"
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
destinations:
- labels:
- value:
type: unknown
symbols:
- airport
when:
heading: forward
from_connector_id: overture:transportation:connector:123
to_connector_id: overture:transportation:connector:123
to_segment_id: overture:transportation:segment:567
final_heading: backward
ext_expected_errors:
- "[I#/properties/destinations/0/labels/0/value] [S#/$defs/propertyDefinitions/destinations/items/properties/labels/items/properties/value/type] expected string, but got null"
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
id: overture:transportation:segment:example:destinations:1
type: Feature
geometry:
type: LineString
coordinates: [[0, 0], [1, 1]]
properties:
theme: transportation
type: segment
subtype: road
class: secondary
version: 0
update_time: "2024-04-24T00:00:00-00:00"
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
destinations:
- labels:
- value: Seattle
type: unknown
symbols:
- bad_symbol
when:
heading: forward
from_connector_id: overture:transportation:connector:123
to_connector_id: overture:transportation:connector:123
to_segment_id: overture:transportation:segment:567
final_heading: backward
ext_expected_errors:
- "[I#/properties/destinations/0] [S#/$defs/propertyDefinitions/destinationSignSymbol/enum] value must be one of ..."
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
id: overture:transportation:segment:example:destinations:1
type: Feature
geometry:
type: LineString
coordinates: [[0, 0], [1, 1]]
properties:
theme: transportation
type: segment
subtype: road
class: secondary
version: 0
update_time: "2024-04-24T00:00:00-00:00"
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
destinations:
- labels:
- value: Seattle
type: unknown
symbols:
- airport
when:
heading: forward
from_connector_id: overture:transportation:connector:123
to_connector_id: overture:transportation:connector:123
to_segment_id: overture:transportation:segment:567
ext_expected_errors:
- "[I#/properties/destinations/0] [S#/$defs/propertyDefinitions/destinations/items/required] missing properties: 'final_heading'"
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
id: overture:transportation:segment:example:destinations:1
type: Feature
geometry:
type: LineString
coordinates: [[0, 0], [1, 1]]
properties:
theme: transportation
type: segment
subtype: road
class: secondary
version: 0
update_time: "2024-04-24T00:00:00-00:00"
connector_ids: [overture:transportation:connector:123, overture:transportation:connector:678]
destinations:
- when:
heading: forward
from_connector_id: overture:transportation:connector:123
to_connector_id: overture:transportation:connector:123
to_segment_id: overture:transportation:segment:567
final_heading: backward
labels:
- value: Seattle
type: unknown
- value: Main Street
type: street
- value: I90
type: route_ref
symbols:
- motorway
- airport
- when:
heading: backward
from_connector_id: overture:transportation:connector:123
to_connector_id: overture:transportation:connector:123
to_segment_id: overture:transportation:segment:567
final_heading: backward
labels:
- value: Redmond
type: unknown
- value: I5
type: toward_route_ref
14 changes: 14 additions & 0 deletions examples/transportation/segment/road/road.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,17 @@ properties:
connector_id: overture:transportation:connector:456
final_heading: backward
when: {heading: backward}
destinations:
- labels:
- value: Seattle
type: unknown
- value: I 90
type: route_ref
symbols:
- airport
when:
heading: forward
from_connector_id: overture:transportation:connector:123
to_connector_id: overture:transportation:connector:123
to_segment_id: overture:transportation:segment:567
final_heading: backward
98 changes: 98 additions & 0 deletions schema/transportation/segment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ properties:
then:
required: [class]
properties:
destinations: { "$ref": "#/$defs/propertyDefinitions/destinations" }
lanes: { "$ref": "#/$defs/propertyContainers/lanesContainer" }
prohibited_transitions: { "$ref": "#/$defs/propertyContainers/prohibitedTransitionsContainer" }
road_surface: { "$ref": "#/$defs/propertyContainers/surfaceContainer"}
Expand Down Expand Up @@ -62,6 +63,78 @@ properties:
routes: { "$ref": "#/$defs/propertyDefinitions/routes" }
"$defs":
propertyDefinitions:
destinationLabelType:
description: >-
The type of object of the destination label.
type: string
enum:
- street
ibnt1 marked this conversation as resolved.
Show resolved Hide resolved
- country
- route_ref
- toward_route_ref
- unknown
destinations:
description: >-
Describes objects that can be reached by following a transportation segment in the
same way those objects are described on signposts or ground writing that a traveller
following the segment would observe in the real world. This allows navigation systems
to refer to signs and observable writing that a traveller actually sees.
type: array
items:
type: object
unevaluatedProperties: false
required: [labels, from_connector_id, to_connector_id, to_segment_id, final_heading]
properties:
labels:
description: >-
Labeled destinations that can be reached by following the segment.
type: array
items:
type: object
unevaluatedProperties: false
required: [value, type]
properties:
value:
description: >-
Names the object that is reached
type: string
pattern: ^(\S.*)?\S$
type: { "$ref": "#/$defs/propertyDefinitions/destinationLabelType" }
minItems: 1
uniqueItems: true
symbols:
description: >-
A collection of symbols or icons present on the sign next to current
destination label.
type: array
items: { "$ref": "#/$defs/propertyDefinitions/destinationSignSymbol" }
uniqueItems: true
minLength: 1
from_connector_id:
description: >-
Identifies the point of physical connection on this segment before which
the destination sign or marking is visible.
type: string
to_segment_id:
description: >-
Identifies the segment to transition to reach the destination(s) labeled
on the sign or marking.
type: string
ibnt1 marked this conversation as resolved.
Show resolved Hide resolved
to_connector_id:
description: >-
Identifies the point of physical connection on the segment identified by
'to_segment_id' to transition to for reaching the destination(s).
type: string
when:
allOf:
- "$ref": "#/$defs/propertyContainers/headingScopeContainer"
minProperties: 1
unevaluatedProperties: false
final_heading:
ibnt1 marked this conversation as resolved.
Show resolved Hide resolved
description: >-
Direction of travel on the segment identified by 'to_segment_id' that leads
to the destination.
"$ref": "#/$defs/propertyDefinitions/heading"
roadClass:
description:
Captures the kind of road and its position in the road network
Expand Down Expand Up @@ -137,6 +210,31 @@ properties:
enum: [ vehicle, motor_vehicle, car, truck, motorcycle, foot, bicycle, bus, hgv, hov, emergency ]
"$comment": >-
motor_vehicle includes car, truck and motorcycle
destinationSignSymbol:
description: >-
Indicates what special symbol/icon is present on a signpost, visible as road marking or similar.
type: string
enum:
- motorway
ibnt1 marked this conversation as resolved.
Show resolved Hide resolved
- airport
- hospital
- center # center of a locality, city center or downtown, from centre in raw OSM value
- industrial
- parking
- bus
- train_station
- rest_area
- ferry
- motorroad
- fuel
- viewpoint
- fuel_diesel
- food
- lodging
- info
- camp_site
ibnt1 marked this conversation as resolved.
Show resolved Hide resolved
- interchange
- restrooms # 'toilets' in OSM
roadFlag:
description: Simple flags that can be on or off for a road segment
type: string
Expand Down
Loading