GeofencingZones

data class GeofencingZones(val geofencingZones: FeatureCollection<MultiPolygon, GeofencingZone>, val globalRules: List<GeofencingZoneRule>) : GbfsFeedData(source)

Describes geofencing zones and their associated rules and attributes.

Geofenced areas are delineated using GeoJSON in accordance with RFC 7946. By default, no restrictions apply everywhere. Geofencing zones SHOULD be modeled according to restrictions rather than allowance.

Constructors

Link copied to clipboard
constructor(geofencingZones: FeatureCollection<MultiPolygon, GeofencingZone>, globalRules: List<GeofencingZoneRule>)

Properties

Link copied to clipboard
@SerialName(value = "geofencing_zones")
val geofencingZones: FeatureCollection<MultiPolygon, GeofencingZone>

Each geofenced zone and its associated rules and attributes is described as an object within the array of features.

Link copied to clipboard
@SerialName(value = "global_rules")
val globalRules: List<GeofencingZoneRule>

Array of Rule objects defining restrictions that apply globally in all areas as the default restrictions, except where overridden with an explicit geofencing zone.