{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/data-models/specs/UrbanMobility/GtfsRoute/schema.json", "title": "Smart Data Models. GTFS Schema - Route", "description": "GTFS Route", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "GtfsRoute" ], "description": "Property. NGSI Entity type. It has to be GtfsRoute" }, "page": { "$ref": "https://smart-data-models.github.io/dataModel.UrbanMobility/gtfs-schema.json#/definitions/GTFS-Stop-Commons/properties/page" }, "routeColor": { "type": "string", "description": "Property. Same as GTFS `route_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)" }, "routeTextColor": { "type": "string", "description": "Property. Same as GTFS `route_text_color`. Model:'https://schema.org/Text'. See [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt)" }, "routeType": { "type": "string", "enum": [ "0", "1", "2", "3", "4", "5", "6", "7" ], "description": "Property. Same as GTFS `route_type`. Model:'https://schema.org/Text'. allowed values those allowed for `route_type` as prescribed by [GTFS](https://developers.google.com/transit/gtfs/reference/#routestxt). Enum:'0, 1, 2, 3, 4, 5, 6, 7'" }, "routeSortOrder": { "type": "integer", "minimum": 0, "description": "Property. Same as GTFS `route_sort_order`. Model:'https://schema.org/Number'." }, "operatedBy": { "anyOf": [ { "type": "string", "minLength": 1, "maxLength": 256, "pattern": "^[\\w\\-\\.\\{\\}\\$\\+\\*\\[\\]`|~^@!,:\\\\]+$", "description": "Property. Identifier format of any NGSI entity" }, { "type": "string", "format": "uri", "description": "Property. Identifier format of any NGSI entity" } ], "description": "Relationship. Agency that operates this route. Model:'https://schema.org/Text'. It shall point to an Entity of Type GtfsAgency" }, "shortName": { "type": "string", "description": "Property. Same as GTFS `route_short_name`. Model:'https://schema.org/Text'." } } } ], "required": [ "id", "type" ] }