1- import { Feature as GeoJsonFeature , Geometry , LineString , Point , Polygon } from "geojson"
1+ import { Feature as GeoJsonFeature , Geometry , LineString , Point , Polygon , MultiPolygon } from "geojson"
2+
3+ export type Polygonal = Polygon | MultiPolygon
24
35export interface Door {
46 type : DOOR_TYPE | null ,
@@ -194,7 +196,7 @@ export interface Detail extends Feature {
194196export interface Fixture extends LabeledFeature {
195197 id : FixtureId ,
196198 feature_type : FeatureType . fixture ,
197- geometry : Polygon ,
199+ geometry : Polygonal ,
198200 properties : FeatureProperties & {
199201 category : FIXTURE_CATEGORY ,
200202 name : Labels | null ,
@@ -212,7 +214,7 @@ export interface Fixture extends LabeledFeature {
212214export interface Footprint {
213215 id : FootprintId ,
214216 feature_type : FeatureType . footprint ,
215- geometry : Polygon ,
217+ geometry : Polygonal ,
216218 properties : FeatureProperties & {
217219 category : FOOTPRINT_CATEGORY ,
218220 name : Labels | null ,
@@ -227,7 +229,7 @@ export interface Footprint {
227229export interface Geofence extends Feature {
228230 id : GeofenceId ,
229231 feature_type : FeatureType . geofence ,
230- geometry : Polygon ,
232+ geometry : Polygonal ,
231233 properties : FeatureProperties & {
232234 category : GEOFENCE_CATEGORY
233235 }
@@ -248,7 +250,7 @@ export interface KioskProperties extends NamedFeatureProperties {
248250export interface Kiosk extends NamedFeature < LevelProperties > {
249251 id : KioskId ,
250252 feature_type : FeatureType . kiosk ,
251- geometry : Polygon ,
253+ geometry : Polygonal ,
252254 properties : KioskProperties
253255}
254256
@@ -271,7 +273,7 @@ export interface LevelProperties extends NamedFeatureProperties {
271273export interface Level extends NamedFeature < LevelProperties > {
272274 id : LevelId ,
273275 feature_type : FeatureType . level ,
274- geometry : Polygon ,
276+ geometry : Polygonal ,
275277 properties : LevelProperties
276278}
277279
@@ -340,7 +342,7 @@ export interface Relationship extends Feature {
340342export interface Section extends LabeledFeature {
341343 id : SectionId ,
342344 feature_type : FeatureType . section ,
343- geometry : Polygon ,
345+ geometry : Polygonal ,
344346 properties : LabeledFeatureProperties & {
345347 category : SECTION_CATEGORY ,
346348 restriction : RESTRICTION_CATEGORY | null ,
@@ -372,7 +374,7 @@ export interface UnitProperties extends LabeledFeatureProperties {
372374export interface Unit extends LabeledFeature < UnitProperties > {
373375 id : UnitId ,
374376 feature_type : FeatureType . unit ,
375- geometry : Polygon ,
377+ geometry : Polygonal ,
376378 properties : UnitProperties
377379}
378380
@@ -383,7 +385,7 @@ export interface Unit extends LabeledFeature<UnitProperties> {
383385export interface Venue extends LabeledFeature {
384386 id : VenueId ,
385387 feature_type : FeatureType . venue ,
386- geometry : Polygon ,
388+ geometry : Polygonal ,
387389 properties : FeatureProperties & {
388390 category : VENUE_CATEGORY ,
389391 restriction : RESTRICTION_CATEGORY | null ,
0 commit comments