{
  "$id": "https://schema.nfh.global/GeofencingZone/v2.0",
  "x-iri": "https://schema.nfh.global/GeofencingZone/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "GeofencingZone",
  "type": "object",
  "description": "A virtual geographic boundary used to define operational areas, speed limits, parking rules, or restrictions for shared mobility services.",
  "properties": {
    "featureType": {
      "description": "Type of geofencing zone feature (e.g. parking, restricted, slow)",
      "type": "string"
    },
    "geometry": {
      "description": "GeoJSON geometry defining the zone boundary",
      "$ref": "https://schema.nfh.global/GeoJSONGeometry/v2.0/schema.json"
    },
    "rideAllowed": {
      "description": "Whether riding is permitted within this zone",
      "type": "boolean"
    },
    "rideThroughAllowed": {
      "description": "Whether riding through without stopping is permitted",
      "type": "boolean"
    },
    "stationParking": {
      "description": "Whether docking at a station is required to end a trip here",
      "type": "boolean"
    },
    "id": {
      "description": "Unique identifier for the location",
      "type": "string"
    },
    "descriptor": {
      "description": "Human-readable description of the location",
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    },
    "gps": {
      "description": "GPS coordinates as a latitude,longitude string",
      "type": "string"
    },
    "address": {
      "description": "Physical address of the location",
      "$ref": "https://schema.nfh.global/Address/v2.0/schema.json"
    },
    "city": {
      "description": "City name",
      "type": "string"
    },
    "country": {
      "description": "ISO 3166-1 alpha-2 country code",
      "type": "string"
    },
    "geojson": {
      "description": "GeoJSON geometry object representing this location",
      "$ref": "https://schema.nfh.global/GeoJSONGeometry/v2.0/schema.json"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "geosparql",
    "schema-org",
    "ride-hailing"
  ]
}
