All Downloads are FREE. Search and download functionalities are using the official Maven repository.

schema.v3.0-RC.gbfs.gbfs.json Maven / Gradle / Ivy

There is a newer version: 3.1.5
Show newest version
{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "https://github.com/NABSA/gbfs/blob/v3.0-RC/gbfs.md#gbfsjson",
  "description":
    "Auto-discovery file that links to all of the other files published by the system.",
  "type": "object",
  "properties": {
    "last_updated": {
      "description":
        "Last time the data in the feed was updated in POSIX time.",
      "type": "integer",
      "minimum": 1450155600
    },
    "ttl": {
      "description":
        "Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed).",
      "type": "integer",
      "minimum": 0
    },
    "version": {
      "description":
        "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
      "type": "string",
      "enum": [
        "3.0-RC",
        "3.0"
      ]
    },
    "data": {
      "type": "object",
      "properties": {
        "feeds": {
          "description": "An array of all of the feeds that are published by the auto-discovery file. Each element in the array is an object with the keys below.",
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "description": "Key identifying the type of feed this is. The key must be the base file name defined in the spec for the corresponding feed type.",
                "type": "string",
                "enum": [
                  "gbfs",
                  "gbfs_versions",
                  "system_information",
                  "vehicle_types",
                  "station_information",
                  "station_status",
                  "vehicle_status",
                  "system_alerts",
                  "system_regions",
                  "system_pricing_plans",
                  "geofencing_zones"
                ]
              },
              "url": {
                "description": "URL for the feed.",
                "type": "string",
                "format": "uri"
              }
            },
            "required": ["name", "url"]
          },
          "minItems": 1
        }
      },
      "required": ["feeds"]
    }
  },
  "additionalProperties": false,
  "required": ["last_updated", "ttl", "version", "data"]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy