From 11dab02521bf2ee1f19a8900de28bb9f51cf09e1 Mon Sep 17 00:00:00 2001 From: Konrad Abicht Date: Tue, 7 May 2019 13:41:11 +0200 Subject: [PATCH 1/2] EquipmentProperties: added ramp related properties reference: https://github.com/sozialhelden/ac-format/issues/10 --- src/EquipmentProperties.ts | 98 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/src/EquipmentProperties.ts b/src/EquipmentProperties.ts index f9de99a..9264c35 100644 --- a/src/EquipmentProperties.ts +++ b/src/EquipmentProperties.ts @@ -296,6 +296,42 @@ export interface EquipmentProperties { * IDs of this equipment in external data sources, for example in GTFS, IMDF or other sources. */ ids?: ArrayLike; + + /** + * Length of a ramp. + */ + rampLength?: Length; + + /** + * Width of a ramp. + */ + rampWidth?: Length; + + /** + * The gradient of the ramp in percent (e.g. 6%). + */ + rampGradient?: Length; + + /** + * `true` if there is a handrail on the left side of the equipment, from the perspective in front of the entrance resp. the place. + * `false` if there is no handrail on the left side. + * `undefined` if there is no information about it. + */ + hasHandrailLeft?: boolean; + + /** + * `true` if there is a handrail on the right side of the equipment, from the perspective in front of the entrance resp. the place. + * `false` if there is no handrail on the right side. + * `undefined` if there is no information about it. + */ + hasHandrailRight?: boolean; + + /** + * `true` if the start and end of the ramp is colorized. + * `false` if the start and/or the end of the ramp is not colorized. + * `undefined` if there is no information about it. + */ + rampStartAndEndColorized?: boolean; } export const EquipmentPropertiesSchema = new SimpleSchema({ @@ -559,5 +595,67 @@ export const EquipmentPropertiesSchema = new SimpleSchema({ machineData: true, description: t`Reference to the place that this equipment belongs to (accessibility.cloud ID)` } + }, + rampLength: { + type: LengthSchema, + optional: true, + accessibility: { + componentHint: 'Unit', + question: t`What is the length of the ramp?` + } + }, + rampWidth: { + type: LengthSchema, + optional: true, + accessibility: { + componentHint: 'Unit', + question: t`What is the width of the ramp?` + } + }, + rampHeight: { + type: LengthSchema, + optional: true, + accessibility: { + componentHint: 'Unit', + question: t`What is the height of the ramp?` + } + }, + rampGradient: { + type: LengthSchema, + optional: true, + accessibility: { + componentHint: 'Unit', + question: t`What is the gradient of the ramp?` + } + }, + hasHandrailLeft: { + type: Boolean, + optional: true, + accessibility: { + question: t`Is there a handrail on the left side of the equipment, from from the perspective in front of the entrance resp. the place?`, + accessibility: { + machineData: true + } + } + }, + hasHandrailRight: { + type: Boolean, + optional: true, + accessibility: { + question: t`Is there a handrail on the right side of the equipment, from from the perspective in front of the entrance resp. the place?`, + accessibility: { + machineData: true + } + } + }, + rampStartAndEndColorized: { + type: Boolean, + optional: true, + accessibility: { + question: t`Is the start and end of the ramp colorized?`, + accessibility: { + machineData: true + } + } } }); From 0d0adf66b1726a04178da94272986e76350401ce Mon Sep 17 00:00:00 2001 From: Konrad Abicht Date: Fri, 17 May 2019 13:42:47 +0200 Subject: [PATCH 2/2] Renamed rampGradient to rampSlope to be in line with existing terms --- src/EquipmentProperties.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EquipmentProperties.ts b/src/EquipmentProperties.ts index 9264c35..245cb4a 100644 --- a/src/EquipmentProperties.ts +++ b/src/EquipmentProperties.ts @@ -310,7 +310,7 @@ export interface EquipmentProperties { /** * The gradient of the ramp in percent (e.g. 6%). */ - rampGradient?: Length; + rampSlope?: Length; /** * `true` if there is a handrail on the left side of the equipment, from the perspective in front of the entrance resp. the place.