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

schema.v1.0.station_information.json Maven / Gradle / Ivy

The newest version!
{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id": "https://github.com/MobilityData/gbfs/blob/v1.0/gbfs.md#station_informationjson",
  "description": "List of all stations, their capacities and locations. REQUIRED of systems utilizing docks.",
  "type": "object",
  "properties": {
    "last_updated": {
      "description": 	"Last time the data in the feed was updated in POSIX time.",
      "type": "integer",
      "minimum": 0,
      "maximum": 1924988399
    },
    "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
    },
    "data": {
      "description": "Array that contains one object per station as defined below.",
      "type": "object",
      "properties": {
        "stations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "station_id": {
                "description": 	"Identifier of a station.",
                "type": "string"
              },
              "name": {
                "description": "Public name of the station.",
                "type": "string"
              },
              "short_name": {
                "description": "Short name or other type of identifier.",
                "type": "string"
              },
              "lat": {
                "description": 	"The latitude of the station.",
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              "lon": {
                "description": 	"The longitude fo the station.",
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              "address": {
                "description": 	"Address where station is located.",
                "type": "string"
              },
              "cross_street": {
                "description": 	"Cross street or landmark…the station is located.",
                "type": "string"
              },
              "region_id": {
                "description": "Identifier of the region…the station is located.",
                "type": "string"
              },
              "post_code": {
                "description": "Postal code where station is located.",
                "type": "string"
              },
              "rental_methods": {
                "description": "Payment methods accepted at this station.",
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "KEY",
                    "CREDITCARD",
                    "PAYPASS",
                    "APPLEPAY",
                    "ANDROIDPAY",
                    "TRANSITCARD",
                    "ACCOUNTNUMBER",
                    "PHONE"
                  ]
                }
              },
              "capacity": {
                "description": "Number of total docking …ilable and unavailable.",
                "type": "integer",
                "minimum": 0
              }
            },
            "required": ["station_id", "name", "lat", "lon"]
          }
        }
      },
      "required": ["stations"]
    }
  },
  "required": ["last_updated", "ttl", "data"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy