Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions counterexamples/common/names/names-invalid-language.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ properties:
version: 1
subtype: road
class: primary
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
names:
primary: Foo
common:
Expand Down
5 changes: 5 additions & 0 deletions counterexamples/common/names/names-invalid-variant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ properties:
version: 1
subtype: road
class: primary
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
names:
primary: Bar
rules:
Expand Down
2 changes: 0 additions & 2 deletions counterexamples/places/bad-address-invalid-property.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ properties:
version: 0
names:
primary: Fancy POI with invalid address property (region2)
categories:
primary: some_category
addresses:
- freeform: "770 Broadway, Floor 8"
locality: "New York"
Expand Down
2 changes: 1 addition & 1 deletion counterexamples/places/bad-basic-category.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: counterexample:place:bad-categories-values
id: counterexample:place:bad-basic-category-values
type: Feature
geometry:
type: Point
Expand Down
16 changes: 0 additions & 16 deletions counterexamples/places/bad-categories-missing-primary.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions counterexamples/places/bad-categories-value.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions counterexamples/places/bad-empty-emails.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ geometry:
type: Point
coordinates: [0, 0]
properties:
categories:
primary: some_category
confidence: 0.9
websites:
- https://www.example.com
Expand Down
2 changes: 0 additions & 2 deletions counterexamples/places/bad-empty-phones.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ geometry:
type: Point
coordinates: [0, 0]
properties:
categories:
primary: some_category
confidence: 0.9
websites:
- https://www.example.com
Expand Down
2 changes: 0 additions & 2 deletions counterexamples/places/bad-empty-socials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ geometry:
type: Point
coordinates: [0, 0]
properties:
categories:
primary: some_category
confidence: 0.9
websites:
- https://www.example.com
Expand Down
2 changes: 0 additions & 2 deletions counterexamples/places/bad-empty-websites.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ geometry:
type: Point
coordinates: [0, 0]
properties:
categories:
primary: some_category
confidence: 0.9
websites: []
emails:
Expand Down
2 changes: 0 additions & 2 deletions counterexamples/places/bad-geometry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ properties:
theme: places
type: place
version: 0
categories:
primary: a_category
3 changes: 1 addition & 2 deletions counterexamples/places/bad-operating-status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ geometry:
type: Point
coordinates: [0, 0]
properties:
categories:
primary: some_category
confidence: 0.9
websites:
- https://www.example.com/
emails:
- info@example.com
Expand Down
4 changes: 4 additions & 0 deletions counterexamples/transportation/segment/bad-geometry-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"theme": "transportation",
"type": "segment",
"subtype": "water",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"version": 15
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"version": 26,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"width_rules": [],
"ext_expected_errors": [
"minItems: got 0, want 1"
Expand Down
4 changes: 4 additions & 0 deletions counterexamples/transportation/segment/bad-lr-width.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"version": 26,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"width_rules": [
{
"between" : [0, 0.5],
Expand Down
6 changes: 5 additions & 1 deletion counterexamples/transportation/segment/missing-subtype.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
],
"theme": "transportation",
"type": "segment",
"version": 26
"version": 26,
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
]
}
}
6 changes: 5 additions & 1 deletion counterexamples/transportation/segment/missing-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
],
"theme": "transportation",
"type": "segment",
"subtype": "water"
"subtype": "water",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ properties:
version: 1
# Segment of subtype rail has a road flag (should be disallowed)
subtype: rail
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
road_flags:
- values: [is_indoor]
ext_expected_errors:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"type": "segment",
"version": 18,
"subtype": "rail",
"class": "foo"
"class": "foo",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"version": 19,
"subtype": "rail",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"rail_flags": [
{
"values": ["is_freight", "is_freight"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"version": 20,
"subtype": "rail",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"rail_flags": [
{
"values": ["foo"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"type": "segment",
"version": 18,
"subtype": "road",
"class": "foo"
"class": "foo",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"version": 19,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"road_flags": [
{
"values": ["is_tunnel", "is_tunnel"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"version": 20,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"road_flags": [
{
"values": ["foo"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"version": 20,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"road_flags": [
{
"values": ["is_private"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"version": 20,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"road_flags": ["is_tunnel"]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"version": 20,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"road_flags": [
{
"values": ["is_bridge"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"version": 23,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"road_surface": [
{
"value": "hot mess"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ properties:
type: segment
subtype: road
class: tertiary
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
version: 1
access_restrictions:
- foo: bar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ properties:
type: segment
subtype: road
class: residential
connectors:
- connector_id: fooConnector
at: 0
- connector_id: barConnector
at: 1
version: 1
prohibited_transitions:
- sequence:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"version": 26,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"speed_limits": [
{}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"version": 0,
"subtype": "road",
"class": "primary",
"connectors": [
{ "connector_id": "fooConnector", "at": 0 },
{ "connector_id": "barConnector", "at": 1 }
],
"speed_limits": {},
"ext_expected_errors": [
"'/properties/speed_limits' [S#/$defs/propertyContainers/speedLimitsContainer/type]: got object, want array"
Expand Down
2 changes: 1 addition & 1 deletion docs/schema/0-Schema.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ In the Overture schema, all features have a unique `id` called a [GERS ID](https
Most but not all of the feature types in the Overture schema require data for the `names`, `subtype`, and `class` properties. The `names` property is complex enough to have its own schema, which we describe in detail [here](/schema/concepts/names).

### Properties may be specific to a feature type
Some properties in the Overture schema are only populated with data for specific feature types. For example, the `place` feature type must include data for the `categories` property, as required by the schema. The `division_area` and `address` feature types require the `country` property to be populated with ISO 3166-1 alpha-2 country codes. The `segment` feature type in the transportation theme is the only feature type that includes data for a complex set of properties that describe roads. The [schema concepts](concepts) section of this documentation describes these complexities in detail.
Some properties in the Overture schema are only populated with data for specific feature types. For example, the `place` feature type includes the `taxonomy` property. The `division_area` and `address` feature types require the `country` property to be populated with ISO 3166-1 alpha-2 country codes. The `segment` feature type in the transportation theme is the only feature type that includes data for a complex set of properties that describe roads. The [schema concepts](concepts) section of this documentation describes these complexities in detail.


## Schema conventions
Expand Down
Loading
Loading