Skip to content

Commit 7842704

Browse files
committed
Updated jsonschema to include alleys, parking aisles and fixed broken intersection types for several edges
1 parent 957f91f commit 7842704

7 files changed

Lines changed: 629 additions & 102 deletions

File tree

jsonschema/src/edges/alley.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface AlleyIdentifyingFields extends BaseEdgeFields {
1414
/**
1515
* Fields that apply to an alley.
1616
*/
17-
type AlleyFields = AlleyIdentifyingFields & ServiceRoadFields;
17+
interface AlleyFields extends AlleyIdentifyingFields, ServiceRoadFields {};
1818

1919
/**
2020
* The centerline of an alley. An alley is usually located between properties and provides access to utilities and private entrances.

jsonschema/src/edges/driveway.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface DrivewayIdentifyingFields extends BaseEdgeFields {
1414
/**
1515
* Fields that apply to a driveway.
1616
*/
17-
type DrivewayFields = DrivewayIdentifyingFields & ServiceRoadFields;
17+
interface DrivewayFields extends DrivewayIdentifyingFields, ServiceRoadFields {}
1818

1919
/**
2020
* The centerline of a driveway. Typically connects a residence or business

jsonschema/src/edges/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import { TertiaryStreet } from "./tertiary-street";
1111
import { ResidentialStreet } from "./residential-street";
1212

1313
import { ServiceRoad } from "./service-road";
14+
import { Alley } from "./alley";
1415
import { Driveway } from "./driveway";
16+
import { ParkingAisle } from "./parking-aisle";
1517

1618
export type Edge =
1719
| Crossing
@@ -24,4 +26,6 @@ export type Edge =
2426
| TertiaryStreet
2527
| ResidentialStreet
2628
| ServiceRoad
27-
| Driveway;
29+
| Alley
30+
| Driveway
31+
| ParkingAisle;

jsonschema/src/edges/parking-aisle.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ interface ParkingAisleIdentifyingFields extends BaseEdgeFields {
1414
/**
1515
* Fields that apply to a parking aisle.
1616
*/
17-
type ParkingAisleFields = ParkingAisleIdentifyingFields & ServiceRoadFields;
17+
interface ParkingAisleFields
18+
extends ParkingAisleIdentifyingFields,
19+
ServiceRoadFields {}
1820

1921
/**
2022
* The centerline of a subordinated way in a parking lot: vehicles drive on parking aisles to reach parking spaces in a parking lot.

jsonschema/src/edges/sidewalk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface SidewalkIdentifyingFields extends BaseEdgeFields {
1414
/**
1515
* Fields that apply to a sidewalk.
1616
*/
17-
type SidewalkFields = SidewalkIdentifyingFields & FootwayFields;
17+
interface SidewalkFields extends SidewalkIdentifyingFields, FootwayFields {};
1818

1919
/**
2020
* The centerline of a sidewalk, a designated pedestrian pathway to the side of a street.

jsonschema/src/edges/traffic-island.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ interface TrafficIslandIdentifyingFields extends BaseEdgeFields {
1414
/**
1515
* Fields that apply to a traffic island.
1616
*/
17-
type TrafficIslandFields = TrafficIslandIdentifyingFields & FootwayFields;
17+
interface TrafficIslandFields
18+
extends TrafficIslandIdentifyingFields,
19+
FootwayFields {}
1820

1921
/**
2022
* The centerline of a footpath traversing a traffic island. Some complex, long, or busy pedestrian crossings have a built-up "island" to protect pedestrians, splitting up the crossing of the street into two or more crossings. As a pedestrian uses this crossing, they will transition across these path elements: sidewalk → footway → crossing → traffic island → crossing → footway → sidewalk.

0 commit comments

Comments
 (0)