diff --git a/docs/openapi/gen.go b/docs/openapi/gen.go index 35b107ad..9422d046 100644 --- a/docs/openapi/gen.go +++ b/docs/openapi/gen.go @@ -1,6 +1,13 @@ -package openapi +//go:generate go run . rest.json +package main import ( + "context" + "encoding/json" + "errors" + "fmt" + "os" + oa "github.com/getkin/kin-openapi/openapi3" "github.com/interline-io/transitland-server/server/rest" ) @@ -41,11 +48,62 @@ func GenerateOpenAPI() (*oa.T, error) { &rest.TripRequest{}, &rest.StopRequest{}, &rest.StopDepartureRequest{}, + &rest.FeedVersionDownloadRequest{}, + &rest.FeedDownloadLatestFeedVersionRequest{}, } for _, handler := range handlers { requestInfo := handler.RequestInfo() - pathOpts = append(pathOpts, oa.WithPath(requestInfo.Path, requestInfo.PathItem)) + oaResponse, err := queryToOAResponses(requestInfo.Get.Query) + if err != nil { + return outdoc, err + } + getOp := requestInfo.Get.Operation + getOp.Responses = oaResponse + getOp.Description = requestInfo.Description + pathItem := &oa.PathItem{Get: getOp} + pathOpts = append(pathOpts, oa.WithPath(requestInfo.Path, pathItem)) } outdoc.Paths = oa.NewPaths(pathOpts...) return outdoc, nil } + +func main() { + args := os.Args + if len(args) != 2 { + exit(errors.New("output file required")) + } + outfile := args[1] + + // Generate OpenAPI schema + outdoc, err := GenerateOpenAPI() + if err != nil { + exit(err) + } + + // Validate output + jj, err := json.MarshalIndent(outdoc, "", " ") + if err != nil { + exit(err) + } + + schema, err := oa.NewLoader().LoadFromData(jj) + if err != nil { + exit(err) + } + var validationOpts []oa.ValidationOption + if err := schema.Validate(context.Background(), validationOpts...); err != nil { + exit(err) + } + + // After validation, write to file + outf, err := os.Create(outfile) + if err != nil { + exit(err) + } + outf.Write(jj) +} + +func exit(err error) { + fmt.Println("Error: ", err.Error()) + os.Exit(1) +} diff --git a/docs/openapi/gen_test.go b/docs/openapi/gen_test.go deleted file mode 100644 index 0c859912..00000000 --- a/docs/openapi/gen_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package openapi - -import ( - "context" - "encoding/json" - "os" - "testing" - - oa "github.com/getkin/kin-openapi/openapi3" -) - -func TestGenerateOpenAPI(t *testing.T) { - outdoc, err := GenerateOpenAPI() - if err != nil { - t.Fatal(err) - } - // Write output - jj, _ := json.MarshalIndent(outdoc, "", " ") - - // Validate output - schema, err := oa.NewLoader().LoadFromData(jj) - if err != nil { - t.Fatal(err) - } - var validationOpts []oa.ValidationOption - if err := schema.Validate(context.Background(), validationOpts...); err != nil { - t.Fatal(err) - } - outf, err := os.Create("rest.json") - if err != nil { - t.Fatal(err) - } - outf.Write(jj) -} diff --git a/server/rest/openapi_gql.go b/docs/openapi/openapi.go similarity index 78% rename from server/rest/openapi_gql.go rename to docs/openapi/openapi.go index b28394b8..2995037d 100644 --- a/server/rest/openapi_gql.go +++ b/docs/openapi/openapi.go @@ -1,4 +1,4 @@ -package rest +package main import ( "fmt" @@ -12,14 +12,15 @@ import ( "github.com/vektah/gqlparser/v2/ast" ) -func queryToOAResponses(queryString string) *oa.Responses { +func queryToOAResponses(queryString string) (*oa.Responses, error) { // Load schema schema := gqlout.NewExecutableSchema(gqlout.Config{Resolvers: &gql.Resolver{}}) + gs := schema.Schema() // Prepare document - query, err := gqlparser.LoadQuery(schema.Schema(), queryString) + query, err := gqlparser.LoadQuery(gs, queryString) if err != nil { - panic(err) + return nil, err } /////////// @@ -28,8 +29,8 @@ func queryToOAResponses(queryString string) *oa.Responses { Properties: oa.Schemas{}, }} for _, op := range query.Operations { - for _, sel := range op.SelectionSet { - queryRecurse(sel, responseObj.Value.Properties, 0) + for selOrder, sel := range op.SelectionSet { + queryRecurse(gs, sel, responseObj.Value.Properties, 0, selOrder) } } desc := "ok" @@ -38,7 +39,7 @@ func queryToOAResponses(queryString string) *oa.Responses { Content: oa.NewContentWithSchemaRef(&responseObj, []string{"application/json"}), }}) ret := oa.NewResponses(res) - return ret + return ret, nil } var gqlScalarToOASchema = map[string]oa.Schema{ @@ -107,6 +108,7 @@ type ParsedDocstring struct { ExternalDocs []ParsedUrl Examples []string Enum []string + Hide bool } var reLinks = regexp.MustCompile(`(\[(?P.+)\]\((?P.+)\))`) @@ -131,28 +133,30 @@ func ParseDocstring(v string) ParsedDocstring { for _, e := range strings.Split(value, ",") { ret.Enum = append(ret.Enum, strings.TrimSpace(e)) } + case "hide": + ret.Hide = true } } ret.Text = strings.TrimSpace(reAnno.ReplaceAllString(v, "")) return ret } -func queryRecurse(recurseValue any, parentSchema oa.Schemas, level int) { +func queryRecurse(gs *ast.Schema, recurseValue any, parentSchema oa.Schemas, level int, order int) int { schema := &oa.Schema{ Properties: oa.Schemas{}, + Extensions: map[string]any{}, } gqlType := "" namedType := "" isArray := false - if frag, ok := recurseValue.(*ast.FragmentSpread); ok { - for _, sel := range frag.Definition.SelectionSet { - queryRecurse(sel, schema.Properties, level) - } - schema.Title = frag.Name - schema.Description = frag.ObjectDefinition.Description - } else if field, ok := recurseValue.(*ast.Field); ok { - for _, sel := range field.SelectionSet { - queryRecurse(sel, schema.Properties, level+1) + if field, ok := recurseValue.(*ast.Field); ok { + if field.Comment != nil { + for _, c := range field.Comment.List { + pd := ParseDocstring(c.Value) + if pd.Hide { + return order + } + } } schema.Title = field.Name schema.Description = field.Definition.Description @@ -161,15 +165,32 @@ func queryRecurse(recurseValue any, parentSchema oa.Schemas, level int) { gqlType = field.Definition.Type.NamedType if field.Definition.Type.Elem != nil { gqlType = field.Definition.Type.Elem.Name() + + } + if gst, ok := gs.Types[field.Definition.Type.String()]; ok { + for _, ev := range gst.EnumValues { + schema.Enum = append(schema.Enum, ev.Name) + } } if strings.HasPrefix(field.Definition.Type.String(), "[") { isArray = true } + for _, sel := range field.SelectionSet { + order = queryRecurse(gs, sel, schema.Properties, level+1, order+1) + } + } else if frag, ok := recurseValue.(*ast.FragmentSpread); ok { + for _, sel := range frag.Definition.SelectionSet { + // Ugly hack to put fragments at the end of the selection set + order = queryRecurse(gs, sel, parentSchema, level, order+1) + } + return order } else { - return + return order } - fmt.Printf("%s %s (%s : %s)\n", strings.Repeat(" ", level*4), schema.Title, namedType, gqlType) + fmt.Printf("%s %s (%s : %s : order %d)\n", strings.Repeat(" ", level*4), schema.Title, namedType, gqlType, order) + order += 1 + schema.Extensions["x-order"] = order // Scalar types if scalarType, ok := gqlScalarToOASchema[namedType]; ok { @@ -179,7 +200,7 @@ func queryRecurse(recurseValue any, parentSchema oa.Schemas, level int) { } else { schema.Type = oa.NewObjectSchema().Type if gqlType != "" { - schema.Extensions = map[string]any{"x-graphql-type": gqlType} + schema.Extensions["x-graphql-type"] = gqlType } } @@ -212,12 +233,14 @@ func queryRecurse(recurseValue any, parentSchema oa.Schemas, level int) { ExternalDocs: schema.ExternalDocs, Enum: schema.Enum, Items: oa.NewSchemaRef("", innerSchema), + Extensions: schema.Extensions, } schema = outerSchema } // Add to parent parentSchema[schema.Title] = oa.NewSchemaRef("", schema) + return order } func parseGroups(re *regexp.Regexp, v string) []map[string]string { diff --git a/docs/openapi/rest.json b/docs/openapi/rest.json index dd79b8a0..d804b445 100644 --- a/docs/openapi/rest.json +++ b/docs/openapi/rest.json @@ -267,7 +267,6 @@ "paths": { "/agencies": { "get": { - "description": "Search for agencies", "parameters": [ { "description": "Agency lookup key; can be an integer ID, a '\u003cfeed onestop_id\u003e:\u003cgtfs agency_id\u003e' key, or a Onestop ID", @@ -315,25 +314,68 @@ "$ref": "#/components/parameters/afterParam" }, { - "$ref": "#/components/parameters/limitParam" + "$ref": "#/components/parameters/limitParam", + "x-example-requests": [ + { + "description": "limit=1", + "url": "limit=1" + } + ] }, { - "$ref": "#/components/parameters/formatParam" + "$ref": "#/components/parameters/formatParam", + "x-example-requests": [ + { + "description": "format=geojson", + "url": "format=geojson" + } + ] }, { - "$ref": "#/components/parameters/searchParam" + "$ref": "#/components/parameters/searchParam", + "x-example-requests": [ + { + "description": "search=bart", + "url": "search=bart" + } + ] }, { - "$ref": "#/components/parameters/onestopParam" + "$ref": "#/components/parameters/onestopParam", + "x-example-requests": [ + { + "description": "onestop_id=o-9q9-caltrain", + "url": "onestop_id=o-9q9-caltrain" + } + ] }, { - "$ref": "#/components/parameters/sha1Param" + "$ref": "#/components/parameters/sha1Param", + "x-example-requests": [ + { + "description": "feed_version_sha1=1c4721d4...", + "url": "feed_version_sha1=1c4721d4e0c9fae1e81f7c79660696e4280ed05b" + } + ] }, { - "$ref": "#/components/parameters/feedParam" + "$ref": "#/components/parameters/feedParam", + "x-example-requests": [ + { + "description": "feed_onestop_id=f-sf~bay~area~rg", + "url": "feed_onestop_id=f-sf~bay~area~rg" + } + ] }, { - "$ref": "#/components/parameters/radiusParam" + "$ref": "#/components/parameters/radiusParam", + "x-description": "Search for agencies geographically, based on stops at this location; radius is in meters, requires lon and lat", + "x-example-requests": [ + { + "description": "lon=-122.3\u0026lat=37.8\u0026radius=1000", + "url": "lon=-122.3\u0026lat=37.8\u0026radius=1000" + } + ] }, { "$ref": "#/components/parameters/lonParam" @@ -342,22 +384,58 @@ "$ref": "#/components/parameters/latParam" }, { - "$ref": "#/components/parameters/bboxParam" + "$ref": "#/components/parameters/bboxParam", + "x-example-requests": [ + { + "description": "bbox=-122.269,37.807,-122.267,37.808", + "url": "bbox=-122.269,37.807,-122.267,37.808" + } + ] }, { - "$ref": "#/components/parameters/adm0NameParam" + "$ref": "#/components/parameters/adm0NameParam", + "x-example-requests": [ + { + "description": "adm0_name=Mexico", + "url": "adm0_name=Mexico" + } + ] }, { - "$ref": "#/components/parameters/adm0IsoParam" + "$ref": "#/components/parameters/adm0IsoParam", + "x-example-requests": [ + { + "description": "adm0_iso=US", + "url": "adm0_iso=US" + } + ] }, { - "$ref": "#/components/parameters/adm1NameParam" + "$ref": "#/components/parameters/adm1NameParam", + "x-example-requests": [ + { + "description": "adm1_name=California", + "url": "adm1_name=California" + } + ] }, { - "$ref": "#/components/parameters/adm1IsoParam" + "$ref": "#/components/parameters/adm1IsoParam", + "x-example-requests": [ + { + "description": "adm1_iso=US-CA", + "url": "adm1_iso=US-CA" + } + ] }, { - "$ref": "#/components/parameters/cityNameParam" + "$ref": "#/components/parameters/cityNameParam", + "x-example-requests": [ + { + "description": "city_name=Oakland", + "url": "city_name=Oakland" + } + ] }, { "$ref": "#/components/parameters/licenseCommercialUseAllowedParam" @@ -388,228 +466,261 @@ "agency_email": { "description": "GTFS agency.agency_email", "title": "agency_email", - "type": "string" + "type": "string", + "x-order": 20 }, "agency_fare_url": { "description": "GTFS agency.agency_fare_url", "title": "agency_fare_url", - "type": "string" + "type": "string", + "x-order": 18 }, "agency_id": { "description": "GTFS agency.agency_id", "title": "agency_id", - "type": "string" + "type": "string", + "x-order": 6 }, "agency_lang": { "description": "GTFS agency.agency_lang", "title": "agency_lang", - "type": "string" + "type": "string", + "x-order": 14 }, "agency_name": { "description": "GTFS agency.agency_name", "title": "agency_name", - "type": "string" + "type": "string", + "x-order": 4 }, "agency_phone": { "description": "GTFS agency.agency_phone", "title": "agency_phone", - "type": "string" + "type": "string", + "x-order": 16 }, "agency_timezone": { "description": "GTFS agency.agency_timezone", "title": "agency_timezone", - "type": "string" + "type": "string", + "x-order": 12 }, "agency_url": { "description": "GTFS agency.agency_url", "title": "agency_url", - "type": "string" + "type": "string", + "x-order": 10 }, "alerts": { "description": "GTFS-RT alerts for this agency", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 85 }, - "nullable": true, - "title": "cause", - "type": "string" + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 83 + } }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 86 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 86 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 46 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 65 }, - "title": "description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 67 + } }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 68 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 68 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 48 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 59 }, - "nullable": true, - "title": "effect", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 61 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 62 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 62 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 50 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 77 }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 79 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 80 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 80 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 71 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 73 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 74 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 74 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 53 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 55 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 56 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 56 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 87 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 87 }, "feed_version": { "description": "Source feed version for this entity", @@ -620,55 +731,65 @@ "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 105 }, "onestop_id": { "description": "OnestopID for this feed", "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 107 } }, "title": "feed", "type": "object", - "x-graphql-type": "Feed" + "x-graphql-type": "Feed", + "x-order": 108 }, "fetched_at": { "description": "Time when the file was fetched from the url", "example": "2019-11-15T00:45:55.409906", "format": "datetime", "title": "fetched_at", - "type": "string" + "type": "string", + "x-order": 102 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 98 }, "sha1": { "description": "SHA1 hash of the zip file", "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", "title": "sha1", - "type": "string" + "type": "string", + "x-order": 100 } }, "title": "feed_version", "type": "object", - "x-graphql-type": "FeedVersion" + "x-graphql-type": "FeedVersion", + "x-order": 109 }, "geometry": { "description": "Geometry for this agency, generated as the convex hull of all stops", "nullable": true, - "title": "geometry" + "title": "geometry", + "x-order": 22 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 2 }, "onestop_id": { "description": "OnestopID for this agency (or its associated operator)", "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 8 }, "operator": { "description": "Operator associated with this agency", @@ -681,62 +802,80 @@ "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 34 }, "name": { "description": "A common name for this feed. Optional. Alternatively use `associated_operators[].name`", "nullable": true, "title": "name", - "type": "string" + "type": "string", + "x-order": 38 }, "onestop_id": { "description": "OnestopID for this feed", "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 36 }, "spec": { "description": "Type of feed", + "enum": [ + "GTFS", + "GTFS_RT", + "GBFS", + "MDS" + ], "nullable": true, "title": "spec", "type": "object", - "x-graphql-type": "FeedSpecTypes" + "x-graphql-type": "FeedSpecTypes", + "x-order": 40 } }, "type": "object", - "x-graphql-type": "Feed" + "x-graphql-type": "Feed", + "x-order": 41 }, "nullable": true, "title": "feeds", - "type": "array" + "type": "array", + "x-graphql-type": "Feed", + "x-order": 41 }, "name": { "description": "Operator name", "nullable": true, "title": "name", - "type": "string" + "type": "string", + "x-order": 27 }, "onestop_id": { "description": "OnestopID for this operator", "nullable": true, "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 25 }, "short_name": { "description": "Operator short name, if available", "nullable": true, "title": "short_name", - "type": "string" + "type": "string", + "x-order": 29 }, "tags": { "description": "Source DMFR tag data", "nullable": true, "title": "tags", - "type": "object" + "type": "object", + "x-order": 31 } }, "title": "operator", "type": "object", - "x-graphql-type": "Operator" + "x-graphql-type": "Operator", + "x-order": 42 }, "places": { "description": "Places associated with this agency through a matching process", @@ -746,27 +885,33 @@ "description": "Best-matched country name", "nullable": true, "title": "adm0_name", - "type": "string" + "type": "string", + "x-order": 92 }, "adm1_name": { "description": "Best-matched state or province name", "nullable": true, "title": "adm1_name", - "type": "string" + "type": "string", + "x-order": 94 }, "city_name": { "description": "Best-matched city name", "nullable": true, "title": "city_name", - "type": "string" + "type": "string", + "x-order": 90 } }, "type": "object", - "x-graphql-type": "AgencyPlace" + "x-graphql-type": "AgencyPlace", + "x-order": 95 }, "nullable": true, "title": "places", - "type": "array" + "type": "array", + "x-graphql-type": "AgencyPlace", + "x-order": 95 }, "routes": { "description": "Routes associated with this agency", @@ -776,221 +921,256 @@ "description": "GTFS-RT alerts for this route", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 161 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 159 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 162 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 162 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 122 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 141 }, - "title": "description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 143 + } }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 144 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 144 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 124 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 135 }, - "nullable": true, - "title": "effect", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 137 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 138 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 138 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 126 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 153 }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 155 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 156 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 156 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 147 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 149 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 150 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 150 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 129 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 131 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 132 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 132 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 163 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 163 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 112 }, "route_id": { "description": "GTFS routes.route_id", "title": "route_id", - "type": "string" + "type": "string", + "x-order": 114 }, "route_long_name": { "description": "GTFS routes.route_long_name", "title": "route_long_name", - "type": "string" + "type": "string", + "x-order": 118 }, "route_short_name": { "description": "GTFS routes.route_short_name", "title": "route_short_name", - "type": "string" + "type": "string", + "x-order": 116 } }, "type": "object", - "x-graphql-type": "Route" + "x-graphql-type": "Route", + "x-order": 164 }, "title": "routes", - "type": "array" + "type": "array", + "x-graphql-type": "Route", + "x-order": 164 } }, "type": "object", - "x-graphql-type": "Agency" + "x-graphql-type": "Agency", + "x-order": 165 }, "title": "agencies", - "type": "array" + "type": "array", + "x-graphql-type": "Agency", + "x-order": 165 } }, "title": "data" @@ -1000,29 +1180,28 @@ "description": "ok" } }, - "summary": "Agencies", + "summary": "Search for agencies", "x-alternates": [ { "method": "GET", "path": "/agencies.{format}", - "description": "Request agencies in specified format" + "summary": "Request agencies in specified format" }, { "method": "GET", "path": "/agencies/{agency_key}", - "description": "Request an agency" + "summary": "Request an agency" }, { "method": "GET", "path": "/agencies/{agency_key}.format", - "description": "Request an agency in a specified format" + "summary": "Request an agency in a specified format" } ] } }, "/feed_versions": { "get": { - "description": "Search for feed versions", "parameters": [ { "description": "Feed version lookup key; can be an integer ID or a SHA1 value", @@ -1050,7 +1229,7 @@ "x-example-requests": [ { "description": "sha1=e535eb2b3...", - "url": "/feed_versions?sha1=dd7aca4a8e4c90908fd3603c097fabee75fea907" + "url": "sha1=dd7aca4a8e4c90908fd3603c097fabee75fea907" } ] }, @@ -1064,7 +1243,7 @@ "x-example-requests": [ { "description": "feed_onestop_id=f-sf~bay~area~rg", - "url": "/feed_versions?feed_onestop_id=f-sf~bay~area~rg" + "url": "feed_onestop_id=f-sf~bay~area~rg" } ] }, @@ -1079,7 +1258,7 @@ "x-example-requests": [ { "description": "fetched_before=2023-01-01T00:00:00Z", - "url": "/feed_versions?fetched_before=2023-01-01T00:00:00Z" + "url": "fetched_before=2023-01-01T00:00:00Z" } ] }, @@ -1094,7 +1273,7 @@ "x-example-requests": [ { "description": "fetched_after=2023-01-01T00:00:00Z", - "url": "/feed_versions?fetched_after=2023-01-01T00:00:00Z" + "url": "fetched_after=2023-01-01T00:00:00Z" } ] }, @@ -1105,13 +1284,32 @@ "$ref": "#/components/parameters/afterParam" }, { - "$ref": "#/components/parameters/limitParam" + "$ref": "#/components/parameters/limitParam", + "x-example-requests": [ + { + "description": "limit=1", + "url": "limit=1" + } + ] }, { - "$ref": "#/components/parameters/formatParam" + "$ref": "#/components/parameters/formatParam", + "x-example-requests": [ + { + "description": "format=geojson", + "url": "format=geojson" + } + ] }, { - "$ref": "#/components/parameters/radiusParam" + "$ref": "#/components/parameters/radiusParam", + "x-description": "Search for feed versions geographically; radius is in meters, requires lon and lat", + "x-example-requests": [ + { + "description": "lon=-122.3\u0026lat=37.8\u0026radius=1000", + "url": "lon=-122.3\u0026lat=37.8\u0026radius=1000" + } + ] }, { "$ref": "#/components/parameters/lonParam" @@ -1120,7 +1318,13 @@ "$ref": "#/components/parameters/latParam" }, { - "$ref": "#/components/parameters/bboxParam" + "$ref": "#/components/parameters/bboxParam", + "x-example-requests": [ + { + "description": "bbox=-122.269,37.807,-122.267,37.808", + "url": "bbox=-122.269,37.807,-122.267,37.808" + } + ] } ], "responses": { @@ -1138,7 +1342,8 @@ "example": "2020-01-01", "format": "date", "title": "earliest_calendar_date", - "type": "string" + "type": "string", + "x-order": 10 }, "feed": { "description": "Feed associated with this feed version", @@ -1147,24 +1352,34 @@ "description": "A common name for this feed. Optional. Alternatively use `associated_operators[].name`", "nullable": true, "title": "name", - "type": "string" + "type": "string", + "x-order": 19 }, "onestop_id": { "description": "OnestopID for this feed", "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 17 }, "spec": { "description": "Type of feed", + "enum": [ + "GTFS", + "GTFS_RT", + "GBFS", + "MDS" + ], "nullable": true, "title": "spec", "type": "object", - "x-graphql-type": "FeedSpecTypes" + "x-graphql-type": "FeedSpecTypes", + "x-order": 21 } }, "title": "feed", "type": "object", - "x-graphql-type": "Feed" + "x-graphql-type": "Feed", + "x-order": 22 }, "feed_infos": { "description": "Feed infos associated with this feed version, if imported", @@ -1174,19 +1389,22 @@ "description": "GTFS feed_info.default_lang", "nullable": true, "title": "default_lang", - "type": "string" + "type": "string", + "x-order": 59 }, "feed_contact_email": { "description": "GTFS feed_info.feed_contact_email", "nullable": true, "title": "feed_contact_email", - "type": "string" + "type": "string", + "x-order": 61 }, "feed_contact_url": { "description": "GTFS feed_info.feed_contact_url", "nullable": true, "title": "feed_contact_url", - "type": "string" + "type": "string", + "x-order": 63 }, "feed_end_date": { "description": "GTFS feed_info.feed_end_date", @@ -1194,22 +1412,26 @@ "format": "date", "nullable": true, "title": "feed_end_date", - "type": "string" + "type": "string", + "x-order": 65 }, "feed_lang": { "description": "GTFS feed_info.feed_lang", "title": "feed_lang", - "type": "string" + "type": "string", + "x-order": 67 }, "feed_publisher_name": { "description": "GTFS feed_info.feed_publisher_name", "title": "feed_publisher_name", - "type": "string" + "type": "string", + "x-order": 69 }, "feed_publisher_url": { "description": "GTFS feed_info.feed_publisher_url", "title": "feed_publisher_url", - "type": "string" + "type": "string", + "x-order": 73 }, "feed_start_date": { "description": "GTFS feed_info.feed_start_date", @@ -1217,14 +1439,18 @@ "format": "date", "nullable": true, "title": "feed_start_date", - "type": "string" + "type": "string", + "x-order": 71 } }, "type": "object", - "x-graphql-type": "FeedInfo" + "x-graphql-type": "FeedInfo", + "x-order": 74 }, "title": "feed_infos", - "type": "array" + "type": "array", + "x-graphql-type": "FeedInfo", + "x-order": 74 }, "feed_version_gtfs_import": { "description": "Current database import status of this feed version", @@ -1233,55 +1459,65 @@ "exception_log": { "description": "Exception log if any errors occurred during import", "title": "exception_log", - "type": "string" + "type": "string", + "x-order": 81 }, "in_progress": { "description": "Is the import currently in-progress", "title": "in_progress", - "type": "boolean" + "type": "boolean", + "x-order": 77 }, "interpolated_stop_time_count": { "description": "Number of stop times with arrival/departure times set by interpolation during import process", "nullable": true, "title": "interpolated_stop_time_count", - "type": "integer" + "type": "integer", + "x-order": 91 }, "skip_entity_error_count": { "description": "Counts of entities skipped due to errors", "nullable": true, - "title": "skip_entity_error_count" + "title": "skip_entity_error_count", + "x-order": 85 }, "skip_entity_filter_count": { "description": "Counts of entities skipped due to import filters", "nullable": true, - "title": "skip_entity_filter_count" + "title": "skip_entity_filter_count", + "x-order": 87 }, "skip_entity_marked_count": { "description": "Counts of entities skipped due to marker filters", "nullable": true, - "title": "skip_entity_marked_count" + "title": "skip_entity_marked_count", + "x-order": 89 }, "success": { "description": "Did the import complete successfully", "title": "success", - "type": "boolean" + "type": "boolean", + "x-order": 79 }, "warning_count": { "description": "Counts of warnings by file name", "nullable": true, - "title": "warning_count" + "title": "warning_count", + "x-order": 83 } }, "title": "feed_version_gtfs_import", "type": "object", - "x-graphql-type": "FeedVersionGtfsImport" + "x-graphql-type": "FeedVersionGtfsImport", + "x-order": 92 }, "fetched_at": { "description": "Time when the file was fetched from the url", "example": "2019-11-15T00:45:55.409906", "format": "datetime", "title": "fetched_at", - "type": "string" + "type": "string", + "x-order": 6 }, "files": { "description": "Metadata for each text file present in the main directory of the zip archive", @@ -1290,56 +1526,68 @@ "csv_like": { "description": "Is the file CSV-like?", "title": "csv_like", - "type": "boolean" + "type": "boolean", + "x-order": 33 }, "header": { "description": "Normalized header row of the file, if CSV-like", "title": "header", - "type": "string" + "type": "string", + "x-order": 31 }, "name": { "description": "Name of the file", "title": "name", - "type": "string" + "type": "string", + "x-order": 25 }, "rows": { "description": "Number of rows in the file", "title": "rows", - "type": "integer" + "type": "integer", + "x-order": 27 }, "sha1": { "description": "SHA1 hash of the file", "title": "sha1", - "type": "string" + "type": "string", + "x-order": 29 }, "size": { "description": "File size, in bytes", "title": "size", - "type": "integer" + "type": "integer", + "x-order": 35 } }, "type": "object", - "x-graphql-type": "FeedVersionFileInfo" + "x-graphql-type": "FeedVersionFileInfo", + "x-order": 36 }, "title": "files", - "type": "array" + "type": "array", + "x-graphql-type": "FeedVersionFileInfo", + "x-order": 36 }, "geometry": { "description": "Convex hull around all active stops in the feed version", "nullable": true, - "title": "geometry" + "title": "geometry", + "x-order": 14 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 2 }, "latest_calendar_date": { "description": "The latest date with scheduled service", "example": "2020-12-31", "format": "date", "title": "latest_calendar_date", - "type": "string" + "type": "string", + "x-order": 12 }, "service_levels": { "description": "Service levels (in seconds per day) for this feed version", @@ -1350,74 +1598,91 @@ "example": "2019-11-15", "format": "date", "title": "end_date", - "type": "string" + "type": "string", + "x-order": 41 }, "friday": { "description": "Number of seconds of service scheduled on the Friday of this week", "title": "friday", - "type": "integer" + "type": "integer", + "x-order": 51 }, "monday": { "description": "Number of seconds of service scheduled on the Monday of this week", "title": "monday", - "type": "integer" + "type": "integer", + "x-order": 43 }, "saturday": { "description": "Number of seconds of service scheduled on the Saturday of this week", "title": "saturday", - "type": "integer" + "type": "integer", + "x-order": 53 }, "start_date": { "description": "Start date of this week", "example": "2019-11-15", "format": "date", "title": "start_date", - "type": "string" + "type": "string", + "x-order": 39 }, "sunday": { "description": "Number of seconds of service scheduled on the Sunday of this week", "title": "sunday", - "type": "integer" + "type": "integer", + "x-order": 55 }, "thursday": { "description": "Number of seconds of service scheduled on the Thursday of this week", "title": "thursday", - "type": "integer" + "type": "integer", + "x-order": 49 }, "tuesday": { "description": "Number of seconds of service scheduled on the Tuesday of this week", "title": "tuesday", - "type": "integer" + "type": "integer", + "x-order": 45 }, "wednesday": { "description": "Number of seconds of service scheduled on the Wednesday of this week", "title": "wednesday", - "type": "integer" + "type": "integer", + "x-order": 47 } }, "type": "object", - "x-graphql-type": "FeedVersionServiceLevel" + "x-graphql-type": "FeedVersionServiceLevel", + "x-order": 56 }, "title": "service_levels", - "type": "array" + "type": "array", + "x-graphql-type": "FeedVersionServiceLevel", + "x-order": 56 }, "sha1": { "description": "SHA1 hash of the zip file", "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", "title": "sha1", - "type": "string" + "type": "string", + "x-order": 4 }, "url": { "description": "URL used to fetch the file", "title": "url", - "type": "string" + "type": "string", + "x-order": 8 } }, "type": "object", - "x-graphql-type": "FeedVersion" + "x-graphql-type": "FeedVersion", + "x-order": 93 }, "title": "feed_versions", - "type": "array" + "type": "array", + "x-graphql-type": "FeedVersion", + "x-order": 93 } }, "title": "data" @@ -1427,34 +1692,62 @@ "description": "ok" } }, - "summary": "Feed Versions", + "summary": "Search for feed versions", "x-alternates": [ { "method": "GET", "path": "/feed_versions.{format}", - "description": "Request feed versions in specified format" + "summary": "Request feed versions in specified format" }, { "method": "GET", "path": "/feed_versions/{feed_version_key}", - "description": "Request a feed version by ID or SHA1" + "summary": "Request a feed version by ID or SHA1" }, { "method": "GET", "path": "/feed_versions/{feed_version_key}.format", - "description": "Request a feed version by ID or SHA1 in specifed format" + "summary": "Request a feed version by ID or SHA1 in specifed format" }, { "method": "GET", "path": "/feeds/{feed_key}/feed_versions", - "description": "Request feed versions by feed ID or Onestop ID" + "summary": "Request feed versions by feed ID or Onestop ID" } ] } }, + "/feed_versions/{feed_version_key}/download": { + "get": { + "description": "Download this feed version GTFS zip for this feed, if redistribution is allowd by the source feed's license. Available only using Transitland professional or enterprise plan API keys.", + "parameters": [ + { + "description": "Feed version lookup key; can be an integer ID or a SHA1 value", + "in": "path", + "name": "feed_version_key", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "data" + } + } + }, + "description": "ok" + } + }, + "summary": "Download feed version" + } + }, "/feeds": { "get": { - "description": "Search for feeds", "parameters": [ { "description": "Feed lookup key; can be an integer ID or a Onestop ID", @@ -1480,7 +1773,7 @@ "x-example-requests": [ { "description": "spec=gtfs", - "url": "/feeds?spec=gtfs" + "url": "spec=gtfs" } ] }, @@ -1498,7 +1791,7 @@ "x-example-requests": [ { "description": "fetch_error=true", - "url": "/feeds?fetch_error=true" + "url": "fetch_error=true" } ] }, @@ -1526,7 +1819,7 @@ "x-example-requests": [ { "description": "tag_key=unstable_url\u0026tag_value=true", - "url": "/feeds?tag_key=unstable_url\u0026tag_value=true" + "url": "tag_key=unstable_url\u0026tag_value=true" } ] }, @@ -1537,16 +1830,40 @@ "$ref": "#/components/parameters/afterParam" }, { - "$ref": "#/components/parameters/limitParam" + "$ref": "#/components/parameters/limitParam", + "x-example-requests": [ + { + "description": "limit=1", + "url": "limit=1" + } + ] }, { - "$ref": "#/components/parameters/formatParam" + "$ref": "#/components/parameters/formatParam", + "x-example-requests": [ + { + "description": "format=geojson", + "url": "format=geojson" + } + ] }, { - "$ref": "#/components/parameters/searchParam" + "$ref": "#/components/parameters/searchParam", + "x-example-requests": [ + { + "description": "search=caltrain", + "url": "search=caltrain" + } + ] }, { - "$ref": "#/components/parameters/onestopParam" + "$ref": "#/components/parameters/onestopParam", + "x-example-requests": [ + { + "description": "onestop_id=f-sf~bay~area~rg", + "url": "onestop_id=f-sf~bay~area~rg" + } + ] }, { "$ref": "#/components/parameters/lonParam" @@ -1555,10 +1872,23 @@ "$ref": "#/components/parameters/latParam" }, { - "$ref": "#/components/parameters/radiusParam" + "$ref": "#/components/parameters/radiusParam", + "x-description": "Search for feeds geographically; radius is in meters, requires lon and lat", + "x-example-requests": [ + { + "description": "lon=-122.3?lat=37.8\u0026radius=1000", + "url": "lon=-122.3?lat=37.8\u0026radius=1000" + } + ] }, { - "$ref": "#/components/parameters/bboxParam" + "$ref": "#/components/parameters/bboxParam", + "x-example-requests": [ + { + "description": "bbox=-122.269,37.807,-122.267,37.808", + "url": "bbox=-122.269,37.807,-122.267,37.808" + } + ] }, { "$ref": "#/components/parameters/licenseCommercialUseAllowedParam" @@ -1593,22 +1923,26 @@ "info_url": { "description": "Website to visit to sign up for an account", "title": "info_url", - "type": "string" + "type": "string", + "x-order": 55 }, "param_name": { "description": "When `type=query_param`, this specifies the name of the query parameter. When `type=header`, this specifies the name of the header", "title": "param_name", - "type": "string" + "type": "string", + "x-order": 53 }, "type": { "description": "Method for inserting authorization secret into request", "title": "type", - "type": "string" + "type": "string", + "x-order": 51 } }, "title": "authorization", "type": "object", - "x-graphql-type": "FeedAuthorization" + "x-graphql-type": "FeedAuthorization", + "x-order": 56 }, "feed_state": { "description": "Current feed state", @@ -1625,65 +1959,77 @@ "exception_log": { "description": "Exception log if any errors occurred during import", "title": "exception_log", - "type": "string" + "type": "string", + "x-order": 77 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 71 }, "in_progress": { "description": "Is the import currently in-progress", "title": "in_progress", - "type": "boolean" + "type": "boolean", + "x-order": 73 }, "success": { "description": "Did the import complete successfully", "title": "success", - "type": "boolean" + "type": "boolean", + "x-order": 75 } }, "title": "feed_version_gtfs_import", "type": "object", - "x-graphql-type": "FeedVersionGtfsImport" + "x-graphql-type": "FeedVersionGtfsImport", + "x-order": 78 }, "fetched_at": { "description": "Time when the file was fetched from the url", "example": "2019-11-15T00:45:55.409906", "format": "datetime", "title": "fetched_at", - "type": "string" + "type": "string", + "x-order": 66 }, "geometry": { "description": "Convex hull around all active stops in the feed version", "nullable": true, - "title": "geometry" + "title": "geometry", + "x-order": 68 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 60 }, "sha1": { "description": "SHA1 hash of the zip file", "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", "title": "sha1", - "type": "string" + "type": "string", + "x-order": 62 }, "url": { "description": "URL used to fetch the file", "title": "url", - "type": "string" + "type": "string", + "x-order": 64 } }, "title": "feed_version", "type": "object", - "x-graphql-type": "FeedVersion" + "x-graphql-type": "FeedVersion", + "x-order": 79 } }, "title": "feed_state", "type": "object", - "x-graphql-type": "FeedState" + "x-graphql-type": "FeedState", + "x-order": 80 }, "feed_versions": { "description": "Versions of this feed that have been fetched, archived, and imported", @@ -1694,59 +2040,72 @@ "example": "2020-01-01", "format": "date", "title": "earliest_calendar_date", - "type": "string" + "type": "string", + "x-order": 91 }, "fetched_at": { "description": "Time when the file was fetched from the url", "example": "2019-11-15T00:45:55.409906", "format": "datetime", "title": "fetched_at", - "type": "string" + "type": "string", + "x-order": 87 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 83 }, "latest_calendar_date": { "description": "The latest date with scheduled service", "example": "2020-12-31", "format": "date", "title": "latest_calendar_date", - "type": "string" + "type": "string", + "x-order": 93 }, "sha1": { "description": "SHA1 hash of the zip file", "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", "title": "sha1", - "type": "string" + "type": "string", + "x-order": 85 }, "url": { "description": "URL used to fetch the file", "title": "url", - "type": "string" + "type": "string", + "x-order": 89 } }, "type": "object", - "x-graphql-type": "FeedVersion" + "x-graphql-type": "FeedVersion", + "x-order": 94 }, "title": "feed_versions", - "type": "array" + "type": "array", + "x-graphql-type": "FeedVersion", + "x-order": 94 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 2 }, "languages": { "description": "Language(s) included in this feed", "items": { "type": "object", - "x-graphql-type": "String" + "x-graphql-type": "String", + "x-order": 10 }, "nullable": true, "title": "languages", - "type": "array" + "type": "array", + "x-graphql-type": "String", + "x-order": 10 }, "license": { "description": "Feed license metadata", @@ -1755,70 +2114,89 @@ "attribution_instructions": { "description": "Feed consumers must follow these instructions for how to provide attribution", "title": "attribution_instructions", - "type": "string" + "type": "string", + "x-order": 47 }, "attribution_text": { "description": "Feed consumers must include this particular text when using this feed", "title": "attribution_text", - "type": "string" + "type": "string", + "x-order": 45 }, "commercial_use_allowed": { "description": "Are feed consumers allowed to use the feed for commercial purposes?", "title": "commercial_use_allowed", - "type": "string" + "type": "string", + "x-order": 41 }, "create_derived_product": { "description": "Are feed consumers allowed to create and share derived products from the feed?", "title": "create_derived_product", - "type": "string" + "type": "string", + "x-order": 37 }, "redistribution_allowed": { "description": "Are feed consumers allowed to redistribute the feed in its entirety?", "title": "redistribution_allowed", - "type": "string" + "type": "string", + "x-order": 39 }, "share_alike_optional": { "description": "Are feed consumers allowed to keep their modifications of this feed private?", "title": "share_alike_optional", - "type": "string" + "type": "string", + "x-order": 43 }, "spdx_identifier": { "description": "SPDX identifier for a common license. See https://spdx.org/licenses/", "title": "spdx_identifier", - "type": "string" + "type": "string", + "x-order": 31 }, "url": { "description": "URL for a custom license", "title": "url", - "type": "string" + "type": "string", + "x-order": 33 }, "use_without_attribution": { "description": "Are feed consumers allowed to use the feed contents without including attribution text in their app or map?", "title": "use_without_attribution", - "type": "string" + "type": "string", + "x-order": 35 } }, "title": "license", "type": "object", - "x-graphql-type": "FeedLicense" + "x-graphql-type": "FeedLicense", + "x-order": 48 }, "name": { "description": "A common name for this feed. Optional. Alternatively use `associated_operators[].name`", "nullable": true, "title": "name", - "type": "string" + "type": "string", + "x-order": 6 }, "onestop_id": { "description": "OnestopID for this feed", "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 8 }, "spec": { "description": "Type of feed", + "enum": [ + "GTFS", + "GTFS_RT", + "GBFS", + "MDS" + ], "nullable": true, "title": "spec", "type": "object", - "x-graphql-type": "FeedSpecTypes" + "x-graphql-type": "FeedSpecTypes", + "x-order": 4 }, "urls": { "description": "URLs associated with this feed", @@ -1827,58 +2205,72 @@ "gbfs_auto_discovery": { "description": "URL for GBFS feed `gbfs.json` auto-discovery file", "title": "gbfs_auto_discovery", - "type": "string" + "type": "string", + "x-order": 25 }, "mds_provider": { "description": "URL for MDS feed provider endpoint", "title": "mds_provider", - "type": "string" + "type": "string", + "x-order": 27 }, "realtime_alerts": { "description": "URL for GTFS-RT Alert messages", "title": "realtime_alerts", - "type": "string" + "type": "string", + "x-order": 23 }, "realtime_trip_updates": { "description": "URL for GTFS-RT TripUpdate messages", "title": "realtime_trip_updates", - "type": "string" + "type": "string", + "x-order": 21 }, "realtime_vehicle_positions": { "description": "URL for GTFS-RT VehiclePosition messages", "title": "realtime_vehicle_positions", - "type": "string" + "type": "string", + "x-order": 19 }, "static_current": { "description": "URL for the static feed that represents today's service", "title": "static_current", - "type": "string" + "type": "string", + "x-order": 13 }, "static_historic": { "description": "URLs for static feeds that represent past service that is no longer in effect", "items": { "type": "object", - "x-graphql-type": "String" + "x-graphql-type": "String", + "x-order": 15 }, "title": "static_historic", - "type": "array" + "type": "array", + "x-graphql-type": "String", + "x-order": 15 }, "static_planned": { "description": "URLs for static feeds that represent service planned for upcoming dates. Typically used to represent calendar/service changes that will take effect few weeks or months in the future", "title": "static_planned", - "type": "string" + "type": "string", + "x-order": 17 } }, "title": "urls", "type": "object", - "x-graphql-type": "FeedUrls" + "x-graphql-type": "FeedUrls", + "x-order": 28 } }, "type": "object", - "x-graphql-type": "Feed" + "x-graphql-type": "Feed", + "x-order": 95 }, "title": "feeds", - "type": "array" + "type": "array", + "x-graphql-type": "Feed", + "x-order": 95 } }, "title": "data" @@ -1888,43 +2280,71 @@ "description": "ok" } }, - "summary": "Feeds", + "summary": "Search for feeds", "x-alternates": [ { "method": "GET", "path": "/feeds.{format}", - "description": "Request feeds in specified format" + "summary": "Request feeds in specified format" }, { "method": "GET", "path": "/feeds/{feed_key}", - "description": "Request a feed by ID or Onestop ID" + "summary": "Request a feed by ID or Onestop ID" }, { "method": "GET", "path": "/feeds/{feed_key}.format", - "description": "Request a feed by ID or Onestop ID in specifed format" + "summary": "Request a feed by ID or Onestop ID in specifed format" } ] } }, - "/operators": { + "/feeds/{feed_key}/download_latest_feed_version": { "get": { - "description": "Search for operators", + "description": "Download the latest feed version GTFS zip for this feed, if redistribution is allowd by the source feed's license", "parameters": [ { - "description": "Search for operators with a tag. Combine with tag_value also query for the value of the tag.", - "in": "query", - "name": "tag_key", + "description": "Feed lookup key; can be an integer ID or Onestop ID value", + "in": "path", + "name": "feed_key", + "required": true, "schema": { "type": "string" - }, - "x-example-requests": [ - { - "description": "tag_key=us_ntd_id", - "url": "tag_key=us_ntd_id" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "title": "data" + } } - ] + }, + "description": "ok" + } + }, + "summary": "Download latest feed version" + } + }, + "/operators": { + "get": { + "parameters": [ + { + "description": "Search for operators with a tag. Combine with tag_value also query for the value of the tag.", + "in": "query", + "name": "tag_key", + "schema": { + "type": "string" + }, + "x-example-requests": [ + { + "description": "tag_key=us_ntd_id", + "url": "tag_key=us_ntd_id" + } + ] }, { "description": "Search for feeds tagged with a given value. Must be combined with tag_key.", @@ -1941,13 +2361,31 @@ ] }, { - "$ref": "#/components/parameters/onestopParam" + "$ref": "#/components/parameters/onestopParam", + "x-example-requests": [ + { + "description": "onestop_id=o-9q9-caltrain", + "url": "onestop_id=o-9q9-caltrain" + } + ] }, { - "$ref": "#/components/parameters/feedParam" + "$ref": "#/components/parameters/feedParam", + "x-example-requests": [ + { + "description": "feed_onestop_id=f-sf~bay~area~rg", + "url": "feed_onestop_id=f-sf~bay~area~rg" + } + ] }, { - "$ref": "#/components/parameters/searchParam" + "$ref": "#/components/parameters/searchParam", + "x-example-requests": [ + { + "description": "search=bart", + "url": "search=bart" + } + ] }, { "$ref": "#/components/parameters/includeAlertsParam" @@ -1962,22 +2400,59 @@ "$ref": "#/components/parameters/limitParam" }, { - "$ref": "#/components/parameters/adm0NameParam" + "$ref": "#/components/parameters/adm0NameParam", + "x-example-requests": [ + { + "description": "adm0_name=Mexico", + "url": "adm0_name=Mexico" + } + ] }, { - "$ref": "#/components/parameters/adm0IsoParam" + "$ref": "#/components/parameters/adm0IsoParam", + "x-example-requests": [ + { + "description": "adm0_iso=US", + "url": "adm0_iso=US" + } + ] }, { - "$ref": "#/components/parameters/adm1NameParam" + "$ref": "#/components/parameters/adm1NameParam", + "x-example-requests": [ + { + "description": "adm1_name=California", + "url": "adm1_name=California" + } + ] }, { - "$ref": "#/components/parameters/adm1IsoParam" + "$ref": "#/components/parameters/adm1IsoParam", + "x-example-requests": [ + { + "description": "adm1_iso=US-CA", + "url": "adm1_iso=US-CA" + } + ] }, { - "$ref": "#/components/parameters/cityNameParam" + "$ref": "#/components/parameters/cityNameParam", + "x-example-requests": [ + { + "description": "city_name=Oakland", + "url": "city_name=Oakland" + } + ] }, { - "$ref": "#/components/parameters/radiusParam" + "$ref": "#/components/parameters/radiusParam", + "x-description": "Search for operators geographically, based on stops at this location; radius is in meters, requires lon and lat", + "x-example-requests": [ + { + "description": "lon=-122.3\u0026lat=37.8\u0026radius=1000", + "url": "lon=-122.3\u0026lat=37.8\u0026radius=1000" + } + ] }, { "$ref": "#/components/parameters/lonParam" @@ -1986,7 +2461,13 @@ "$ref": "#/components/parameters/latParam" }, { - "$ref": "#/components/parameters/bboxParam" + "$ref": "#/components/parameters/bboxParam", + "x-example-requests": [ + { + "description": "bbox=-122.269,37.807,-122.267,37.808", + "url": "bbox=-122.269,37.807,-122.267,37.808" + } + ] }, { "$ref": "#/components/parameters/licenseCommercialUseAllowedParam" @@ -2021,208 +2502,237 @@ "agency_id": { "description": "GTFS agency.agency_id", "title": "agency_id", - "type": "string" + "type": "string", + "x-order": 27 }, "agency_name": { "description": "GTFS agency.agency_name", "title": "agency_name", - "type": "string" + "type": "string", + "x-order": 29 }, "alerts": { "description": "GTFS-RT alerts for this agency", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 74 }, - "nullable": true, - "title": "cause", - "type": "string" + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 72 + } }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 75 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 75 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 35 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 54 }, - "title": "description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 56 + } }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 57 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 57 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 37 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 48 }, - "nullable": true, - "title": "effect", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 50 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 51 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 51 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 39 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 66 }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 68 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 69 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 69 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 60 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 62 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 63 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 63 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 42 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 44 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 45 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 45 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 76 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 76 }, "geometry": { "description": "Geometry for this agency, generated as the convex hull of all stops", "nullable": true, - "title": "geometry" + "title": "geometry", + "x-order": 31 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 25 }, "places": { "description": "Places associated with this agency through a matching process", @@ -2232,35 +2742,44 @@ "description": "Best-matched country name", "nullable": true, "title": "adm0_name", - "type": "string" + "type": "string", + "x-order": 81 }, "adm1_name": { "description": "Best-matched state or province name", "nullable": true, "title": "adm1_name", - "type": "string" + "type": "string", + "x-order": 83 }, "city_name": { "description": "Best-matched city name", "nullable": true, "title": "city_name", - "type": "string" + "type": "string", + "x-order": 79 } }, "type": "object", - "x-graphql-type": "AgencyPlace" + "x-graphql-type": "AgencyPlace", + "x-order": 84 }, "nullable": true, "title": "places", - "type": "array" + "type": "array", + "x-graphql-type": "AgencyPlace", + "x-order": 84 } }, "type": "object", - "x-graphql-type": "Agency" + "x-graphql-type": "Agency", + "x-order": 85 }, "nullable": true, "title": "agencies", - "type": "array" + "type": "array", + "x-graphql-type": "Agency", + "x-order": 85 }, "feeds": { "description": "Feeds associated with this operator", @@ -2269,75 +2788,97 @@ "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 15 }, "name": { "description": "A common name for this feed. Optional. Alternatively use `associated_operators[].name`", "nullable": true, "title": "name", - "type": "string" + "type": "string", + "x-order": 19 }, "onestop_id": { "description": "OnestopID for this feed", "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 17 }, "spec": { "description": "Type of feed", + "enum": [ + "GTFS", + "GTFS_RT", + "GBFS", + "MDS" + ], "nullable": true, "title": "spec", "type": "object", - "x-graphql-type": "FeedSpecTypes" + "x-graphql-type": "FeedSpecTypes", + "x-order": 21 } }, "type": "object", - "x-graphql-type": "Feed" + "x-graphql-type": "Feed", + "x-order": 22 }, "nullable": true, "title": "feeds", - "type": "array" + "type": "array", + "x-graphql-type": "Feed", + "x-order": 22 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 2 }, "name": { "description": "Operator name", "nullable": true, "title": "name", - "type": "string" + "type": "string", + "x-order": 6 }, "onestop_id": { "description": "OnestopID for this operator", "nullable": true, "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 4 }, "short_name": { "description": "Operator short name, if available", "nullable": true, "title": "short_name", - "type": "string" + "type": "string", + "x-order": 8 }, "tags": { "description": "Source DMFR tag data", "nullable": true, "title": "tags", - "type": "object" + "type": "object", + "x-order": 12 }, "website": { "description": "Operator website, if available", "nullable": true, "title": "website", - "type": "string" + "type": "string", + "x-order": 10 } }, "type": "object", - "x-graphql-type": "Operator" + "x-graphql-type": "Operator", + "x-order": 86 }, "title": "operators", - "type": "array" + "type": "array", + "x-graphql-type": "Operator", + "x-order": 86 } }, "title": "data" @@ -2347,29 +2888,28 @@ "description": "ok" } }, - "summary": "Operators", + "summary": "Search for operators", "x-alternates": [ { "method": "GET", "path": "/operators.{format}", - "description": "Request operators in specified format" + "summary": "Request operators in specified format" }, { "method": "GET", "path": "/operators/{onestop_id}", - "description": "Request an operator by Onestop ID" + "summary": "Request an operator by Onestop ID" }, { "method": "GET", "path": "/operators/{onestop_id}.format", - "description": "Request an operator by Onestop ID in specified format" + "summary": "Request an operator by Onestop ID in specified format" } ] } }, "/routes": { "get": { - "description": "Search for routes", "parameters": [ { "description": "Route lookup key; can be an integer ID, a '\u003cfeed onestop_id\u003e:\u003cgtfs route_id\u003e' key, or a Onestop ID", @@ -2471,25 +3011,68 @@ "$ref": "#/components/parameters/afterParam" }, { - "$ref": "#/components/parameters/limitParam" - }, - { - "$ref": "#/components/parameters/formatParam" + "$ref": "#/components/parameters/limitParam", + "x-example-requests": [ + { + "description": "limit=1", + "url": "limit=1" + } + ] }, { - "$ref": "#/components/parameters/searchParam" + "$ref": "#/components/parameters/formatParam", + "x-example-requests": [ + { + "description": "format=png", + "url": "?format=png\u0026feed_onestop_id=f-dr5r7-nycdotsiferry" + } + ] }, { - "$ref": "#/components/parameters/onestopParam" + "$ref": "#/components/parameters/searchParam", + "x-example-requests": [ + { + "description": "search=daly+city", + "url": "?search=daly+city" + } + ] }, { - "$ref": "#/components/parameters/sha1Param" - }, + "$ref": "#/components/parameters/onestopParam", + "x-example-requests": [ + { + "description": "onestop_id=r-9q9j-l1", + "url": "onestop_id=r-9q9j-l1" + } + ] + }, + { + "$ref": "#/components/parameters/sha1Param", + "x-example-requests": [ + { + "description": "feed_version_sha1=041ffeec...", + "url": "feed_version_sha1=041ffeec98316e560bc2b91960f7150ad329bd5f" + } + ] + }, { - "$ref": "#/components/parameters/feedParam" + "$ref": "#/components/parameters/feedParam", + "x-example-requests": [ + { + "description": "feed_onestop_id=f-sf~bay~area~rg", + "url": "feed_onestop_id=f-sf~bay~area~rg" + } + ] }, { - "$ref": "#/components/parameters/radiusParam" + "$ref": "#/components/parameters/radiusParam", + "x-description": "Search for routes geographically, based on stops at this location; radius is in meters, requires lon and lat", + "x-example-requests": [ + { + "description": "lon=-122\u0026lat=37\u0026radius=1000", + "url": "lon=-122.3\u0026lat=37.8\u0026radius=1000" + } + ] }, { "$ref": "#/components/parameters/latParam" @@ -2498,7 +3081,13 @@ "$ref": "#/components/parameters/lonParam" }, { - "$ref": "#/components/parameters/bboxParam" + "$ref": "#/components/parameters/bboxParam", + "x-example-requests": [ + { + "description": "bbox=-122.269,37.807,-122.267,37.808", + "url": "bbox=-122.269,37.807,-122.267,37.808" + } + ] }, { "$ref": "#/components/parameters/licenseCommercialUseAllowedParam" @@ -2532,224 +3121,18 @@ "agency_id": { "description": "GTFS agency.agency_id", "title": "agency_id", - "type": "string" + "type": "string", + "x-order": 78 }, "agency_name": { "description": "GTFS agency.agency_name", "title": "agency_name", - "type": "string" + "type": "string", + "x-order": 80 }, "alerts": { "description": "GTFS-RT alerts for this agency", "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } - }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this agency (or its associated operator)", - "title": "onestop_id", - "type": "string" - } - }, - "title": "agency", - "type": "object", - "x-graphql-type": "Agency" - }, - "alerts": { - "description": "GTFS-RT alerts for this route", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, "properties": { "active_period": { "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", @@ -2759,21 +3142,26 @@ "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", "nullable": true, "title": "end", - "type": "integer" + "type": "integer", + "x-order": 125 }, "start": { "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", "nullable": true, "title": "start", - "type": "integer" + "type": "integer", + "x-order": 123 } }, "type": "object", - "x-graphql-type": "RTTimeRange" + "x-graphql-type": "RTTimeRange", + "x-order": 126 }, "nullable": true, "title": "active_period", - "type": "array" + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 126 }, "cause": { "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", @@ -2783,7 +3171,8 @@ }, "nullable": true, "title": "cause", - "type": "string" + "type": "string", + "x-order": 86 }, "description_text": { "description": "GTFS-RT Alert description text", @@ -2793,19 +3182,24 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 105 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 107 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 108 }, "title": "description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 108 }, "effect": { "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", @@ -2815,7 +3209,8 @@ }, "nullable": true, "title": "effect", - "type": "string" + "type": "string", + "x-order": 88 }, "header_text": { "description": "GTFS-RT Alert header text", @@ -2825,25 +3220,31 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 99 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 101 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 102 }, "title": "header_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 102 }, "severity_level": { "description": "GTFS-RT Alert severity level", "nullable": true, "title": "severity_level", - "type": "string" + "type": "string", + "x-order": 90 }, "tts_description_text": { "description": "GTFS-RT Alert TTS description text", @@ -2853,20 +3254,25 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 117 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 119 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 120 }, "nullable": true, "title": "tts_description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 120 }, "tts_header_text": { "description": "GTFS-RT Alert TTS header text", @@ -2876,20 +3282,25 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 111 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 113 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 114 }, "nullable": true, "title": "tts_header_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 114 }, "url": { "description": "GTFS-RT Alert uRL for more information", @@ -2899,134 +3310,385 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 93 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 95 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 96 }, "nullable": true, "title": "url", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 96 } }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "continuous_drop_off": { - "description": "GTFS routes.continuous_drop_off", - "nullable": true, - "title": "continuous_drop_off", - "type": "integer" - }, - "continuous_pickup": { - "description": "GTFS routes.continuous_pickup", - "nullable": true, - "title": "continuous_pickup", - "type": "integer" - }, - "feed_version": { - "description": "Source feed version for this entity", - "properties": { - "feed": { - "description": "Feed associated with this feed version", - "properties": { - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this feed", - "title": "onestop_id", - "type": "string" - } + "type": "object", + "x-graphql-type": "Alert", + "x-order": 127 }, - "title": "feed", - "type": "object", - "x-graphql-type": "Feed" - }, - "fetched_at": { - "description": "Time when the file was fetched from the url", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "title": "fetched_at", - "type": "string" + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 127 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 76 }, - "sha1": { - "description": "SHA1 hash of the zip file", - "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", - "title": "sha1", - "type": "string" + "onestop_id": { + "description": "OnestopID for this agency (or its associated operator)", + "title": "onestop_id", + "type": "string", + "x-order": 82 } }, - "title": "feed_version", + "title": "agency", "type": "object", - "x-graphql-type": "FeedVersion" - }, - "geometry": { - "description": "Representative geometry for this route", - "nullable": true, - "title": "geometry" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this route", - "nullable": true, - "title": "onestop_id", - "type": "string" + "x-graphql-type": "Agency", + "x-order": 128 }, - "route_color": { - "description": "GTFS routes.route_color", + "alerts": { + "description": "GTFS-RT alerts for this route", + "items": { + "properties": { + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 71 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 69 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 72 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 72 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 32 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 51 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 53 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 54 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 54 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 34 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 45 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 47 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 48 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 48 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 36 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 63 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 65 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 66 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 66 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 57 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 59 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 60 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 60 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 39 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 41 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 42 + }, + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 42 + } + }, + "type": "object", + "x-graphql-type": "Alert", + "x-order": 73 + }, + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 73 + }, + "continuous_drop_off": { + "description": "GTFS routes.continuous_drop_off", + "nullable": true, + "title": "continuous_drop_off", + "type": "integer", + "x-order": 24 + }, + "continuous_pickup": { + "description": "GTFS routes.continuous_pickup", + "nullable": true, + "title": "continuous_pickup", + "type": "integer", + "x-order": 22 + }, + "feed_version": { + "description": "Source feed version for this entity", + "properties": { + "feed": { + "description": "Feed associated with this feed version", + "properties": { + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 138 + }, + "onestop_id": { + "description": "OnestopID for this feed", + "title": "onestop_id", + "type": "string", + "x-order": 140 + } + }, + "title": "feed", + "type": "object", + "x-graphql-type": "Feed", + "x-order": 141 + }, + "fetched_at": { + "description": "Time when the file was fetched from the url", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "title": "fetched_at", + "type": "string", + "x-order": 135 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 131 + }, + "sha1": { + "description": "SHA1 hash of the zip file", + "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", + "title": "sha1", + "type": "string", + "x-order": 133 + } + }, + "title": "feed_version", + "type": "object", + "x-graphql-type": "FeedVersion", + "x-order": 142 + }, + "geometry": { + "description": "Representative geometry for this route", + "nullable": true, + "title": "geometry", + "x-order": 28 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 2 + }, + "onestop_id": { + "description": "OnestopID for this route", + "nullable": true, + "title": "onestop_id", + "type": "string", + "x-order": 26 + }, + "route_color": { + "description": "GTFS routes.route_color", "title": "route_color", - "type": "string" + "type": "string", + "x-order": 4 }, "route_desc": { "description": "GTFS routes.route_desc", "title": "route_desc", - "type": "string" + "type": "string", + "x-order": 6 }, "route_id": { "description": "GTFS routes.route_id", "title": "route_id", - "type": "string" + "type": "string", + "x-order": 8 }, "route_long_name": { "description": "GTFS routes.route_long_name", "title": "route_long_name", - "type": "string" + "type": "string", + "x-order": 10 }, "route_short_name": { "description": "GTFS routes.route_short_name", "title": "route_short_name", - "type": "string" + "type": "string", + "x-order": 12 }, "route_sort_order": { "description": "GTFS routes.route_sort_order", "title": "route_sort_order", - "type": "integer" + "type": "integer", + "x-order": 14 }, "route_stops": { "description": "Stops associated with this route", @@ -3039,242 +3701,281 @@ "description": "GTFS-RT Alerts for this stop", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 195 }, - "nullable": true, - "title": "active_period", - "type": "array" + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 193 + } }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 196 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 196 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 156 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 175 }, - "nullable": true, - "title": "cause", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 177 + } }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 178 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 178 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 158 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 169 }, - "title": "description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 171 + } }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 172 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 172 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 160 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 187 }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 189 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 190 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 190 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 181 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 183 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 184 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 184 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 163 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 165 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 166 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 166 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 197 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 197 }, "geometry": { "description": "Stop geometry", - "title": "geometry" + "title": "geometry", + "x-order": 152 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 146 }, "stop_id": { "description": "GTFS stops.stop_id", "example": "400029", "title": "stop_id", - "type": "string" + "type": "string", + "x-order": 148 }, "stop_name": { "description": "GTFS stops.stop_name", "example": "MADISON AV/E 68 ST", "title": "stop_name", - "type": "string" + "type": "string", + "x-order": 150 } }, "title": "stop", "type": "object", - "x-graphql-type": "Stop" + "x-graphql-type": "Stop", + "x-order": 198 } }, "type": "object", - "x-graphql-type": "RouteStop" + "x-graphql-type": "RouteStop", + "x-order": 199 }, "title": "route_stops", - "type": "array" + "type": "array", + "x-graphql-type": "RouteStop", + "x-order": 199 }, "route_text_color": { "description": "GTFS routes.route_text_color", "title": "route_text_color", - "type": "string" + "type": "string", + "x-order": 16 }, "route_type": { "description": "GTFS routes.route_type", "title": "route_type", - "type": "integer" + "type": "integer", + "x-order": 18 }, "route_url": { "description": "GTFS routes.route_url", "title": "route_url", - "type": "string" + "type": "string", + "x-order": 20 } }, "type": "object", - "x-graphql-type": "Route" + "x-graphql-type": "Route", + "x-order": 200 }, "title": "routes", - "type": "array" + "type": "array", + "x-graphql-type": "Route", + "x-order": 200 } }, "title": "data" @@ -3284,29 +3985,28 @@ "description": "ok" } }, - "summary": "Routes", + "summary": "Search for routes", "x-alternates": [ { "method": "GET", "path": "/routes.{format}", - "description": "Request routes in specified format" + "summary": "Request routes in specified format" }, { "method": "GET", "path": "/routes/{route_key}", - "description": "Request a route by ID or Onestop ID" + "summary": "Request a route by ID or Onestop ID" }, { "method": "GET", "path": "/routes/{route_key}.format", - "description": "Request a route by ID or Onestop ID in specified format" + "summary": "Request a route by ID or Onestop ID in specified format" } ] } }, "/routes/{route_key}/trips": { "get": { - "description": "Search for trips", "parameters": [ { "description": "Route lookup key; can be an integer ID, a '\u003cfeed onestop_id\u003e:\u003cgtfs route_id\u003e' key, or a Onestop ID", @@ -3383,7 +4083,13 @@ ] }, { - "$ref": "#/components/parameters/relativeDateParam" + "$ref": "#/components/parameters/relativeDateParam", + "x-example-requests": [ + { + "description": "relative_date=NEXT_MONDAY", + "url": "route_onestop_id=r-9q9j-l1\u0026relative_date=NEXT_MONDAY" + } + ] }, { "$ref": "#/components/parameters/includeAlertsParam" @@ -3395,16 +4101,40 @@ "$ref": "#/components/parameters/afterParam" }, { - "$ref": "#/components/parameters/limitParam" + "$ref": "#/components/parameters/limitParam", + "x-example-requests": [ + { + "description": "limit=1", + "url": "route_onestop_id=r-9q9j-l1\u0026limit=10\u0026limit=1" + } + ] }, { - "$ref": "#/components/parameters/formatParam" + "$ref": "#/components/parameters/formatParam", + "x-example-requests": [ + { + "description": "format=geojson", + "url": "route_onestop_id=r-9q9j-l1\u0026limit=10\u0026format=geojson" + } + ] }, { - "$ref": "#/components/parameters/sha1Param" + "$ref": "#/components/parameters/sha1Param", + "x-example-requests": [ + { + "description": "feed_version_sha1=041ffeec...", + "url": "route_onestop_id=r-9q9j-l1\u0026feed_version_sha1=041ffeec98316e560bc2b91960f7150ad329bd5f" + } + ] }, { - "$ref": "#/components/parameters/feedParam" + "$ref": "#/components/parameters/feedParam", + "x-example-requests": [ + { + "description": "feed_onestop_id=f-sf~bay~area~rg", + "url": "route_onestop_id=r-9q9j-l1\u0026feed_onestop_id=f-sf~bay~area~rg" + } + ] }, { "$ref": "#/components/parameters/latParam" @@ -3442,197 +4172,224 @@ "description": "GTFS-RT alerts for this trip", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 119 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 117 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 120 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 120 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 80 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 99 }, - "nullable": true, - "title": "active_period", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 101 + } }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 102 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 102 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 82 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 93 }, - "nullable": true, - "title": "cause", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 95 + } }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 96 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 96 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 84 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 111 }, - "title": "description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 113 + } }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 114 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 114 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 105 }, - "nullable": true, - "title": "effect", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 107 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 108 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 108 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 87 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 89 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 90 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 90 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 121 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 121 }, "bikes_allowed": { "description": "GTFS trips.bikes_allowed", "title": "bikes_allowed", - "type": "integer" + "type": "integer", + "x-order": 16 }, "block_id": { "description": "GTFS trips.block_id", "title": "block_id", - "type": "string" + "type": "string", + "x-order": 12 }, "calendar": { "description": "Calendar for this trip", @@ -3641,83 +4398,101 @@ "description": "Added dates, derived from GTFS calendar_dates", "items": { "type": "object", - "x-graphql-type": "Date" + "x-graphql-type": "Date", + "x-order": 63 }, "title": "added_dates", - "type": "array" + "type": "array", + "x-graphql-type": "Date", + "x-order": 63 }, "end_date": { "description": "GTFS calendar.end_date", "example": "2019-11-15", "format": "date", "title": "end_date", - "type": "string" + "type": "string", + "x-order": 47 }, "friday": { "description": "GTFS calendar.friday", "title": "friday", - "type": "integer" + "type": "integer", + "x-order": 57 }, "monday": { "description": "GTFS calendar.monday", "title": "monday", - "type": "integer" + "type": "integer", + "x-order": 49 }, "removed_dates": { "description": "Removed dates, derived from GTFS calendar_dates", "items": { "type": "object", - "x-graphql-type": "Date" + "x-graphql-type": "Date", + "x-order": 65 }, "title": "removed_dates", - "type": "array" + "type": "array", + "x-graphql-type": "Date", + "x-order": 65 }, "saturday": { "description": "GTFS calendar.saturday", "title": "saturday", - "type": "integer" + "type": "integer", + "x-order": 59 }, "service_id": { "description": "GTFS calendar.service_id", "title": "service_id", - "type": "string" + "type": "string", + "x-order": 43 }, "start_date": { "description": "GTFS calendar.start_date", "example": "2019-11-15", "format": "date", "title": "start_date", - "type": "string" + "type": "string", + "x-order": 45 }, "sunday": { "description": "GTFS calendar.sunday", "title": "sunday", - "type": "integer" + "type": "integer", + "x-order": 61 }, "thursday": { "description": "GTFS calendar.thursday", "title": "thursday", - "type": "integer" + "type": "integer", + "x-order": 55 }, "tuesday": { "description": "GTFS calendar.tuesday", "title": "tuesday", - "type": "integer" + "type": "integer", + "x-order": 51 }, "wednesday": { "description": "GTFS calendar.wednesday", "title": "wednesday", - "type": "integer" + "type": "integer", + "x-order": 53 } }, "title": "calendar", "type": "object", - "x-graphql-type": "Calendar" + "x-graphql-type": "Calendar", + "x-order": 66 }, "direction_id": { "description": "GTFS trips.direction_id", "title": "direction_id", - "type": "integer" + "type": "integer", + "x-order": 10 }, "feed_version": { "description": "Feed version for this entity", @@ -3728,35 +4503,41 @@ "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 28 }, "onestop_id": { "description": "OnestopID for this feed", "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 30 } }, "title": "feed", "type": "object", - "x-graphql-type": "Feed" + "x-graphql-type": "Feed", + "x-order": 31 }, "fetched_at": { "description": "Time when the file was fetched from the url", "example": "2019-11-15T00:45:55.409906", "format": "datetime", "title": "fetched_at", - "type": "string" + "type": "string", + "x-order": 25 }, "sha1": { "description": "SHA1 hash of the zip file", "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", "title": "sha1", - "type": "string" + "type": "string", + "x-order": 23 } }, "title": "feed_version", "type": "object", - "x-graphql-type": "FeedVersion" + "x-graphql-type": "FeedVersion", + "x-order": 32 }, "frequencies": { "description": "Frequencies for this trip", @@ -3767,36 +4548,44 @@ "example": "15:21:04", "format": "hms", "title": "end_time", - "type": "string" + "type": "string", + "x-order": 71 }, "exact_times": { "description": "GTFS frequencies.exact_times", "title": "exact_times", - "type": "integer" + "type": "integer", + "x-order": 75 }, "headway_secs": { "description": "GTFS frequencies.headway_secs", "title": "headway_secs", - "type": "integer" + "type": "integer", + "x-order": 73 }, "start_time": { "description": "GTFS frequencies.start_time", "example": "15:21:04", "format": "hms", "title": "start_time", - "type": "string" + "type": "string", + "x-order": 69 } }, "type": "object", - "x-graphql-type": "Frequency" + "x-graphql-type": "Frequency", + "x-order": 76 }, "title": "frequencies", - "type": "array" + "type": "array", + "x-graphql-type": "Frequency", + "x-order": 76 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 2 }, "route": { "description": "Route for this trip", @@ -3807,224 +4596,18 @@ "agency_id": { "description": "GTFS agency.agency_id", "title": "agency_id", - "type": "string" + "type": "string", + "x-order": 182 }, "agency_name": { "description": "GTFS agency.agency_name", "title": "agency_name", - "type": "string" + "type": "string", + "x-order": 184 }, "alerts": { "description": "GTFS-RT alerts for this agency", "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } - }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this agency (or its associated operator)", - "title": "onestop_id", - "type": "string" - } - }, - "title": "agency", - "type": "object", - "x-graphql-type": "Agency" - }, - "alerts": { - "description": "GTFS-RT alerts for this route", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, "properties": { "active_period": { "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", @@ -4034,21 +4617,26 @@ "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", "nullable": true, "title": "end", - "type": "integer" + "type": "integer", + "x-order": 229 }, "start": { "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", "nullable": true, "title": "start", - "type": "integer" + "type": "integer", + "x-order": 227 } }, "type": "object", - "x-graphql-type": "RTTimeRange" + "x-graphql-type": "RTTimeRange", + "x-order": 230 }, "nullable": true, "title": "active_period", - "type": "array" + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 230 }, "cause": { "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", @@ -4058,7 +4646,8 @@ }, "nullable": true, "title": "cause", - "type": "string" + "type": "string", + "x-order": 190 }, "description_text": { "description": "GTFS-RT Alert description text", @@ -4068,19 +4657,24 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 209 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 211 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 212 }, "title": "description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 212 }, "effect": { "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", @@ -4090,7 +4684,8 @@ }, "nullable": true, "title": "effect", - "type": "string" + "type": "string", + "x-order": 192 }, "header_text": { "description": "GTFS-RT Alert header text", @@ -4100,25 +4695,31 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 203 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 205 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 206 }, "title": "header_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 206 }, "severity_level": { "description": "GTFS-RT Alert severity level", "nullable": true, "title": "severity_level", - "type": "string" + "type": "string", + "x-order": 194 }, "tts_description_text": { "description": "GTFS-RT Alert TTS description text", @@ -4128,20 +4729,25 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 221 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 223 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 224 }, "nullable": true, "title": "tts_description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 224 }, "tts_header_text": { "description": "GTFS-RT Alert TTS header text", @@ -4151,20 +4757,25 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 215 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 217 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 218 }, "nullable": true, "title": "tts_header_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 218 }, "url": { "description": "GTFS-RT Alert uRL for more information", @@ -4174,101 +4785,358 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 197 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 199 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 200 }, "nullable": true, "title": "url", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 200 } }, - "title": "alert", - "type": "object" - } + "type": "object", + "x-graphql-type": "Alert", + "x-order": 231 + }, + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 231 }, - "type": "object", - "x-graphql-type": "Alert" + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 180 + }, + "onestop_id": { + "description": "OnestopID for this agency (or its associated operator)", + "title": "onestop_id", + "type": "string", + "x-order": 186 + } }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this route", - "nullable": true, - "title": "onestop_id", - "type": "string" - }, - "route_id": { - "description": "GTFS routes.route_id", - "title": "route_id", - "type": "string" - }, - "route_long_name": { - "description": "GTFS routes.route_long_name", - "title": "route_long_name", - "type": "string" - }, - "route_short_name": { - "description": "GTFS routes.route_short_name", - "title": "route_short_name", - "type": "string" - } - }, - "title": "route", - "type": "object", - "x-graphql-type": "Route" - }, - "schedule_relationship": { - "description": "GTFS-RT ScheduleRelationship", - "nullable": true, - "title": "schedule_relationship", - "type": "object", - "x-graphql-type": "ScheduleRelationship" - }, - "shape": { - "description": "Shape for this trip", - "nullable": true, - "properties": { - "generated": { - "description": "Was this geometry automatically generated from stop locations?", - "title": "generated", - "type": "boolean" - }, - "geometry": { - "description": "Geometry for this shape", - "title": "geometry" + "title": "agency", + "type": "object", + "x-graphql-type": "Agency", + "x-order": 232 }, - "shape_id": { - "description": "GTFS shapes.shape_id", - "title": "shape_id", - "type": "string" - } - }, - "title": "shape", - "type": "object", - "x-graphql-type": "Shape" - }, - "stop_pattern_id": { - "description": "Calculated stop pattern ID; an integer scoped to the feed version", - "title": "stop_pattern_id", - "type": "integer" - }, - "stop_times": { - "description": "Stop times for this trip", + "alerts": { + "description": "GTFS-RT alerts for this route", + "items": { + "properties": { + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 175 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 173 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 176 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 176 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 136 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 155 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 157 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 158 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 158 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 138 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 149 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 151 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 152 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 152 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 140 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 167 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 169 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 170 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 170 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 161 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 163 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 164 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 164 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 143 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 145 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 146 + }, + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 146 + } + }, + "type": "object", + "x-graphql-type": "Alert", + "x-order": 177 + }, + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 177 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 124 + }, + "onestop_id": { + "description": "OnestopID for this route", + "nullable": true, + "title": "onestop_id", + "type": "string", + "x-order": 126 + }, + "route_id": { + "description": "GTFS routes.route_id", + "title": "route_id", + "type": "string", + "x-order": 128 + }, + "route_long_name": { + "description": "GTFS routes.route_long_name", + "title": "route_long_name", + "type": "string", + "x-order": 132 + }, + "route_short_name": { + "description": "GTFS routes.route_short_name", + "title": "route_short_name", + "type": "string", + "x-order": 130 + } + }, + "title": "route", + "type": "object", + "x-graphql-type": "Route", + "x-order": 233 + }, + "schedule_relationship": { + "description": "A status flag for real-time information about this trip. \n \n If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED.", + "enum": [ + "SCHEDULED", + "ADDED", + "UNSCHEDULED", + "CANCELED", + "STATIC", + "SKIPPED", + "NO_DATA", + "REPLACEMENT", + "DUPLICATED", + "DELETED" + ], + "nullable": true, + "title": "schedule_relationship", + "type": "object", + "x-graphql-type": "ScheduleRelationship", + "x-order": 18 + }, + "shape": { + "description": "Shape for this trip", + "nullable": true, + "properties": { + "generated": { + "description": "Was this geometry automatically generated from stop locations?", + "title": "generated", + "type": "boolean", + "x-order": 39 + }, + "geometry": { + "description": "Geometry for this shape", + "title": "geometry", + "x-order": 37 + }, + "shape_id": { + "description": "GTFS shapes.shape_id", + "title": "shape_id", + "type": "string", + "x-order": 35 + } + }, + "title": "shape", + "type": "object", + "x-graphql-type": "Shape", + "x-order": 40 + }, + "stop_pattern_id": { + "description": "Calculated stop pattern ID; an integer scoped to the feed version", + "title": "stop_pattern_id", + "type": "integer", + "x-order": 20 + }, + "stop_times": { + "description": "Stop times for this trip", "items": { "properties": { "arrival_time": { @@ -4276,32 +5144,37 @@ "example": "15:21:04", "format": "hms", "title": "arrival_time", - "type": "string" + "type": "string", + "x-order": 236 }, "departure_time": { "description": "GTFS stop_times.departure_time", "example": "15:21:04", "format": "hms", "title": "departure_time", - "type": "string" + "type": "string", + "x-order": 238 }, "drop_off_type": { "description": "GTFS stop_times.drop_off_type", "nullable": true, "title": "drop_off_type", - "type": "integer" + "type": "integer", + "x-order": 246 }, "interpolated": { "description": "Set if this arrival/departure time was interpolated during import", "nullable": true, "title": "interpolated", - "type": "integer" + "type": "integer", + "x-order": 250 }, "pickup_type": { "description": "GTFS stop_times.pickup_type", "nullable": true, "title": "pickup_type", - "type": "integer" + "type": "integer", + "x-order": 244 }, "stop": { "description": "Stop associated with this stop time", @@ -4310,264 +5183,307 @@ "description": "GTFS-RT Alerts for this stop", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 302 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 300 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 303 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 303 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 263 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 282 }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 284 + } }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 285 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 285 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 265 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 276 }, - "nullable": true, - "title": "effect", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 278 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 279 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 279 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 267 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 294 }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 296 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 297 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 297 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 288 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 290 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 291 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 291 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 270 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 272 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 273 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 273 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 304 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 304 }, "geometry": { "description": "Stop geometry", - "title": "geometry" + "title": "geometry", + "x-order": 259 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 253 }, "stop_id": { "description": "GTFS stops.stop_id", "example": "400029", "title": "stop_id", - "type": "string" + "type": "string", + "x-order": 255 }, "stop_name": { "description": "GTFS stops.stop_name", "example": "MADISON AV/E 68 ST", "title": "stop_name", - "type": "string" + "type": "string", + "x-order": 257 } }, "title": "stop", "type": "object", - "x-graphql-type": "Stop" + "x-graphql-type": "Stop", + "x-order": 305 }, "stop_headsign": { "description": "GTFS stop_times.stop_headsign", "nullable": true, "title": "stop_headsign", - "type": "string" + "type": "string", + "x-order": 242 }, "stop_sequence": { "description": "GTFS stop_times.stop_sequence", "title": "stop_sequence", - "type": "integer" + "type": "integer", + "x-order": 240 }, "timepoint": { "description": "GTFS stop_times.timepoint", "nullable": true, "title": "timepoint", - "type": "integer" + "type": "integer", + "x-order": 248 } }, "type": "object", - "x-graphql-type": "StopTime" + "x-graphql-type": "StopTime", + "x-order": 306 }, "title": "stop_times", - "type": "array" + "type": "array", + "x-graphql-type": "StopTime", + "x-order": 306 }, "trip_headsign": { "description": "GTFS trips.trip_headsign", "title": "trip_headsign", - "type": "string" + "type": "string", + "x-order": 6 }, "trip_id": { "description": "GTFS trips.trip_id", "title": "trip_id", - "type": "string" + "type": "string", + "x-order": 4 }, "trip_short_name": { "description": "GTFS trips.trip_short_name", "title": "trip_short_name", - "type": "string" + "type": "string", + "x-order": 8 }, "wheelchair_accessible": { "description": "GTFS trips.wheelchair_accessible", "title": "wheelchair_accessible", - "type": "integer" + "type": "integer", + "x-order": 14 } }, "type": "object", - "x-graphql-type": "Trip" + "x-graphql-type": "Trip", + "x-order": 307 }, "title": "trips", - "type": "array" + "type": "array", + "x-graphql-type": "Trip", + "x-order": 307 } }, "title": "data" @@ -4577,29 +5493,28 @@ "description": "ok" } }, - "summary": "Trips", + "summary": "Search for trips", "x-alternates": [ { "method": "GET", "path": "/routes/{route_key}/trips.{format}", - "description": "Request trips in specified format" + "summary": "Request trips in specified format" }, { "method": "GET", "path": "/routes/{route_key}/trips/{id}", - "description": "Request a trip by ID" + "summary": "Request a trip by ID" }, { "method": "GET", "path": "/routes/{route_key}/trips/{id}.format", - "description": "Request a trip by ID in specified format" + "summary": "Request a trip by ID in specified format" } ] } }, "/stops": { "get": { - "description": "Search for stops", "parameters": [ { "description": "Stop lookup key; can be an integer ID, a '\u003cfeed onestop_id\u003e:\u003cgtfs stop_id\u003e' key, or a Onestop ID", @@ -4675,25 +5590,68 @@ "$ref": "#/components/parameters/afterParam" }, { - "$ref": "#/components/parameters/limitParam" + "$ref": "#/components/parameters/limitParam", + "x-example-requests": [ + { + "description": "limit=1", + "url": "limit=1" + } + ] }, { - "$ref": "#/components/parameters/formatParam" + "$ref": "#/components/parameters/formatParam", + "x-example-requests": [ + { + "description": "format=geojson", + "url": "format=geojson" + } + ] }, { - "$ref": "#/components/parameters/searchParam" + "$ref": "#/components/parameters/searchParam", + "x-example-requests": [ + { + "description": "search=embarcadero", + "url": "search=embarcadero" + } + ] }, { - "$ref": "#/components/parameters/onestopParam" + "$ref": "#/components/parameters/onestopParam", + "x-example-requests": [ + { + "description": "onestop_id=...", + "url": "onestop_id=s-9q8yyzcny3-embarcadero" + } + ] }, { - "$ref": "#/components/parameters/sha1Param" + "$ref": "#/components/parameters/sha1Param", + "x-example-requests": [ + { + "description": "feed_version_sha1=1c4721d4...", + "url": "feed_version_sha1=1c4721d4e0c9fae1e81f7c79660696e4280ed05b" + } + ] }, { - "$ref": "#/components/parameters/feedParam" + "$ref": "#/components/parameters/feedParam", + "x-example-requests": [ + { + "description": "feed_onestop_id=f-c20-trimet", + "url": "feed_onestop_id=f-c20-trimet" + } + ] }, { - "$ref": "#/components/parameters/radiusParam" + "$ref": "#/components/parameters/radiusParam", + "x-description": "Search for stops geographically; radius is in meters, requires lon and lat", + "x-example-requests": [ + { + "description": "lon=-122.3\u0026lat=37.8\u0026radius=1000", + "url": "lon=-122.3\u0026lat=37.8\u0026radius=1000" + } + ] }, { "$ref": "#/components/parameters/lonParam" @@ -4702,7 +5660,13 @@ "$ref": "#/components/parameters/latParam" }, { - "$ref": "#/components/parameters/bboxParam" + "$ref": "#/components/parameters/bboxParam", + "x-example-requests": [ + { + "description": "bbox=-122.269,37.807,-122.267,37.808", + "url": "bbox=-122.269,37.807,-122.267,37.808" + } + ] }, { "$ref": "#/components/parameters/licenseCommercialUseAllowedParam" @@ -4734,38 +5698,361 @@ "description": "GTFS-RT Alerts for this stop", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 158 }, - "nullable": true, - "title": "active_period", - "type": "array" + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 156 + } }, - "cause": { + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 159 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 159 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 119 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 138 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 140 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 141 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 141 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 121 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 132 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 134 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 135 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 135 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 123 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 150 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 152 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 153 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 153 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 144 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 146 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 147 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 147 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 126 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 128 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 129 + }, + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 129 + } + }, + "type": "object", + "x-graphql-type": "Alert", + "x-order": 160 + }, + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 160 + }, + "feed_version": { + "description": "Feed version", + "properties": { + "feed": { + "description": "Feed associated with this feed version", + "properties": { + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 48 + }, + "onestop_id": { + "description": "OnestopID for this feed", + "title": "onestop_id", + "type": "string", + "x-order": 50 + } + }, + "title": "feed", + "type": "object", + "x-graphql-type": "Feed", + "x-order": 51 + }, + "fetched_at": { + "description": "Time when the file was fetched from the url", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "title": "fetched_at", + "type": "string", + "x-order": 45 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 41 + }, + "sha1": { + "description": "SHA1 hash of the zip file", + "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", + "title": "sha1", + "type": "string", + "x-order": 43 + } + }, + "title": "feed_version", + "type": "object", + "x-graphql-type": "FeedVersion", + "x-order": 52 + }, + "geometry": { + "description": "Stop geometry", + "title": "geometry", + "x-order": 28 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 2 + }, + "level": { + "description": "Stop level", + "nullable": true, + "properties": { + "level_id": { + "description": "GTFS levels.level_id", + "title": "level_id", + "type": "string", + "x-order": 55 + }, + "level_index": { + "description": "GTFS levels.level_index", + "title": "level_index", + "type": "number", + "x-order": 59 + }, + "level_name": { + "description": "GTFS levels.level_name", + "title": "level_name", + "type": "string", + "x-order": 57 + } + }, + "title": "level", + "type": "object", + "x-graphql-type": "Level", + "x-order": 60 + }, + "location_type": { + "description": "GTFS stops.location_type", + "enum": [ + "0", + "1", + "2", + "3", + "4" + ], + "title": "location_type", + "type": "integer", + "x-order": 24 + }, + "onestop_id": { + "description": "OnestopID for this stop, if available", + "example": "s-dr5ruvgnyk-madisonav~e69st", + "title": "onestop_id", + "type": "string", + "x-order": 26 + }, + "parent": { + "description": "Stop parent station", + "nullable": true, + "properties": { + "alerts": { + "description": "GTFS-RT Alerts for this stop", + "items": { + "properties": { + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 112 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 110 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 113 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 113 + }, + "cause": { "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", "externalDocs": { "description": "cause", @@ -4773,7 +6060,8 @@ }, "nullable": true, "title": "cause", - "type": "string" + "type": "string", + "x-order": 73 }, "description_text": { "description": "GTFS-RT Alert description text", @@ -4783,19 +6071,24 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 92 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 94 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 95 }, "title": "description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 95 }, "effect": { "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", @@ -4805,7 +6098,8 @@ }, "nullable": true, "title": "effect", - "type": "string" + "type": "string", + "x-order": 75 }, "header_text": { "description": "GTFS-RT Alert header text", @@ -4815,25 +6109,31 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 86 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 88 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 89 }, "title": "header_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 89 }, "severity_level": { "description": "GTFS-RT Alert severity level", "nullable": true, "title": "severity_level", - "type": "string" + "type": "string", + "x-order": 77 }, "tts_description_text": { "description": "GTFS-RT Alert TTS description text", @@ -4843,20 +6143,25 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 104 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 106 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 107 }, "nullable": true, "title": "tts_description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 107 }, "tts_header_text": { "description": "GTFS-RT Alert TTS header text", @@ -4866,20 +6171,25 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 98 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 100 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 101 }, "nullable": true, "title": "tts_header_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 101 }, "url": { "description": "GTFS-RT Alert uRL for more information", @@ -4889,866 +6199,159 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 80 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 82 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 83 }, "nullable": true, "title": "url", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 83 } }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "feed_version": { - "description": "Feed version", - "properties": { - "feed": { - "description": "Feed associated with this feed version", - "properties": { - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this feed", - "title": "onestop_id", - "type": "string" - } + "type": "object", + "x-graphql-type": "Alert", + "x-order": 114 }, - "title": "feed", - "type": "object", - "x-graphql-type": "Feed" + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 114 }, - "fetched_at": { - "description": "Time when the file was fetched from the url", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "title": "fetched_at", - "type": "string" + "geometry": { + "description": "Stop geometry", + "title": "geometry", + "x-order": 69 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 63 }, - "sha1": { - "description": "SHA1 hash of the zip file", - "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", - "title": "sha1", - "type": "string" + "stop_id": { + "description": "GTFS stops.stop_id", + "example": "400029", + "title": "stop_id", + "type": "string", + "x-order": 65 + }, + "stop_name": { + "description": "GTFS stops.stop_name", + "example": "MADISON AV/E 68 ST", + "title": "stop_name", + "type": "string", + "x-order": 67 } }, - "title": "feed_version", + "title": "parent", "type": "object", - "x-graphql-type": "FeedVersion" - }, - "geometry": { - "description": "Stop geometry", - "title": "geometry" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" + "x-graphql-type": "Stop", + "x-order": 115 }, - "level": { - "description": "Stop level", + "place": { + "description": "State/Province associated with this stop", "nullable": true, "properties": { - "level_id": { - "description": "GTFS levels.level_id", - "title": "level_id", - "type": "string" + "adm0_iso": { + "description": "Best-mached country ISO code", + "nullable": true, + "title": "adm0_iso", + "type": "string", + "x-order": 35 }, - "level_index": { - "description": "GTFS levels.level_index", - "title": "level_index", - "type": "number" - }, - "level_name": { - "description": "GTFS levels.level_name", - "title": "level_name", - "type": "string" - } - }, - "title": "level", - "type": "object", - "x-graphql-type": "Level" - }, - "location_type": { - "description": "GTFS stops.location_type", - "enum": [ - "0", - "1", - "2", - "3", - "4" - ], - "title": "location_type", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this stop, if available", - "example": "s-dr5ruvgnyk-madisonav~e69st", - "title": "onestop_id", - "type": "string" - }, - "parent": { - "description": "Stop parent station", - "nullable": true, - "properties": { - "alerts": { - "description": "GTFS-RT Alerts for this stop", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } - }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "geometry": { - "description": "Stop geometry", - "title": "geometry" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "stop_id": { - "description": "GTFS stops.stop_id", - "example": "400029", - "title": "stop_id", - "type": "string" - }, - "stop_name": { - "description": "GTFS stops.stop_name", - "example": "MADISON AV/E 68 ST", - "title": "stop_name", - "type": "string" - } - }, - "title": "parent", - "type": "object", - "x-graphql-type": "Stop" - }, - "place": { - "description": "State/Province associated with this stop", - "nullable": true, - "properties": { - "adm0_iso": { - "description": "Best-mached country ISO code", - "nullable": true, - "title": "adm0_iso", - "type": "string" - }, - "adm0_name": { - "description": "Best-matched country name", - "nullable": true, - "title": "adm0_name", - "type": "string" + "adm0_name": { + "description": "Best-matched country name", + "nullable": true, + "title": "adm0_name", + "type": "string", + "x-order": 31 }, "adm1_iso": { "description": "Best-matched state or province ISO code", "nullable": true, "title": "adm1_iso", - "type": "string" + "type": "string", + "x-order": 37 }, "adm1_name": { "description": "Best-matched state or province name", "nullable": true, "title": "adm1_name", - "type": "string" + "type": "string", + "x-order": 33 } }, "title": "place", "type": "object", - "x-graphql-type": "StopPlace" + "x-graphql-type": "StopPlace", + "x-order": 38 }, "platform_code": { "description": "GTFS stops.platform_code", "nullable": true, "title": "platform_code", - "type": "string" - }, - "route_stops": { - "description": "Associated routes", - "items": { - "properties": { - "route": { - "description": "Associated route", - "properties": { - "agency": { - "description": "Agency associated with this route", - "properties": { - "agency_id": { - "description": "GTFS agency.agency_id", - "title": "agency_id", - "type": "string" - }, - "agency_name": { - "description": "GTFS agency.agency_name", - "title": "agency_name", - "type": "string" - }, - "alerts": { - "description": "GTFS-RT alerts for this agency", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } - }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this agency (or its associated operator)", - "title": "onestop_id", - "type": "string" - } - }, - "title": "agency", - "type": "object", - "x-graphql-type": "Agency" - }, - "alerts": { - "description": "GTFS-RT alerts for this route", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } - }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "route_id": { - "description": "GTFS routes.route_id", - "title": "route_id", - "type": "string" - }, - "route_long_name": { - "description": "GTFS routes.route_long_name", - "title": "route_long_name", - "type": "string" - }, - "route_short_name": { - "description": "GTFS routes.route_short_name", - "title": "route_short_name", - "type": "string" - }, - "route_type": { - "description": "GTFS routes.route_type", - "title": "route_type", - "type": "integer" - } - }, - "title": "route", - "type": "object", - "x-graphql-type": "Route" - } - }, - "type": "object", - "x-graphql-type": "RouteStop" - }, - "title": "route_stops", - "type": "array" + "type": "string", + "x-order": 18 }, "stop_code": { "description": "GTFS stops.stop_code", "title": "stop_code", - "type": "string" + "type": "string", + "x-order": 14 }, "stop_desc": { "description": "GTFS stops.stop_desc", "example": "NW Corner of Broadway and 14th", "title": "stop_desc", - "type": "string" + "type": "string", + "x-order": 12 }, "stop_id": { "description": "GTFS stops.stop_id", "example": "400029", "title": "stop_id", - "type": "string" + "type": "string", + "x-order": 4 }, "stop_name": { "description": "GTFS stops.stop_name", "example": "MADISON AV/E 68 ST", "title": "stop_name", - "type": "string" + "type": "string", + "x-order": 6 }, "stop_timezone": { "description": "GTFS stops.stop_timezone; if overriding agency/route timezone", "example": "America/Los_Angeles", "title": "stop_timezone", - "type": "string" + "type": "string", + "x-order": 10 }, "stop_url": { "description": "GTFS stops.stop_url", "title": "stop_url", - "type": "string" + "type": "string", + "x-order": 8 }, "tts_stop_name": { "description": "GTFS stops.tts_stop_name", "nullable": true, "title": "tts_stop_name", - "type": "string" + "type": "string", + "x-order": 20 }, "wheelchair_boarding": { "description": "GTFS stops.wheelchair_boarding", @@ -5758,19 +6361,24 @@ "2" ], "title": "wheelchair_boarding", - "type": "integer" + "type": "integer", + "x-order": 22 }, "zone_id": { "description": "GTFS stops.zone_id", "title": "zone_id", - "type": "string" + "type": "string", + "x-order": 16 } }, "type": "object", - "x-graphql-type": "Stop" + "x-graphql-type": "Stop", + "x-order": 162 }, "title": "stops", - "type": "array" + "type": "array", + "x-graphql-type": "Stop", + "x-order": 162 } }, "title": "data" @@ -5780,29 +6388,28 @@ "description": "ok" } }, - "summary": "Stops", + "summary": "Search for stops", "x-alternates": [ { "method": "GET", "path": "/stops.{format}", - "description": "Request stops in specified format" + "summary": "Request stops in specified format" }, { "method": "GET", "path": "/stops/{route_key}", - "description": "Request a stop by ID or Onestop ID" + "summary": "Request a stop by ID or Onestop ID" }, { "method": "GET", "path": "/stops/{route_key}.format", - "description": "Request a stop by ID or Onestop ID in specified format" + "summary": "Request a stop by ID or Onestop ID in specified format" } ] } }, "/stops/{stop_key}/departures": { "get": { - "description": "Departures from a given stop based on static and real-time data", "parameters": [ { "description": "Stop lookup key; can be an integer ID, a '\u003cfeed onestop_id\u003e:\u003cgtfs stop_id'\u003e key, a Onestop ID", @@ -5820,7 +6427,13 @@ ] }, { - "$ref": "#/components/parameters/limitParam" + "$ref": "#/components/parameters/limitParam", + "x-example-requests": [ + { + "description": "limit=1", + "url": "/stops/f-sf~bay~area~rg:LAKE/departures?limit=1" + } + ] }, { "description": "Search for departures on a specified GTFS service calendar date, in YYYY-MM-DD format", @@ -5934,7 +6547,13 @@ "$ref": "#/components/parameters/idParam" }, { - "$ref": "#/components/parameters/relativeDateParam" + "$ref": "#/components/parameters/relativeDateParam", + "x-example-requests": [ + { + "description": "relative_date=NEXT_MONDAY", + "url": "/stops/f-sf~bay~area~rg:LAKE/departures?relative_date=NEXT_MONDAY" + } + ] }, { "$ref": "#/components/parameters/includeAlertsParam" @@ -5943,201 +6562,226 @@ "$ref": "#/components/parameters/afterParam" } ], - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "properties": { - "stops": { - "description": "Currently imported stops. If no feed version is specified, defaults to active feed versions.", - "items": { - "properties": { - "alerts": { - "description": "GTFS-RT Alerts for this stop", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "properties": { + "stops": { + "description": "Currently imported stops. If no feed version is specified, defaults to active feed versions.", + "items": { + "properties": { + "alerts": { + "description": "GTFS-RT Alerts for this stop", + "items": { + "properties": { + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 1193 }, - "nullable": true, - "title": "cause", - "type": "string" + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 1191 + } }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 1194 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 1194 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 1154 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1173 }, - "title": "description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1175 + } }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1176 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1176 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 1156 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1167 }, - "nullable": true, - "title": "effect", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1169 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1170 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1170 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 1158 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1185 }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1187 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1188 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1188 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1179 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1181 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1182 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1182 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1161 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1163 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1164 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1164 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 1195 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 1195 }, "children": { "description": "Stop children", @@ -6147,461 +6791,808 @@ "description": "GTFS-RT Alerts for this stop", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 702 }, - "nullable": true, - "title": "effect", - "type": "string" + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 700 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 703 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 703 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 663 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 682 }, - "title": "header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 684 + } }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 685 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 685 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 665 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 676 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 678 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 679 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 679 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 667 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 694 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 696 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 697 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 697 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 688 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 690 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 691 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 691 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 670 }, - "nullable": true, - "title": "url", - "type": "array" - } + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 672 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 673 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 673 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 704 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 704 }, "departures": { "description": "Departures from this stop for a given date and time", "items": { "properties": { - "departures": { - "description": "Record from a static GTFS [stop_times.txt](https://gtfs.org/schedule/reference/#stop_timestxt) file.", - "externalDocs": { - "description": "stop_times.txt", - "url": "https://gtfs.org/schedule/reference/#stop_timestxt" + "arrival": { + "description": "Detailed arrival information, including GTFS-RT updates and estimates", + "properties": { + "delay": { + "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "delay", + "type": "integer", + "x-order": 415 + }, + "estimated": { + "description": "Estimated time in local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "estimated", + "type": "string", + "x-order": 407 + }, + "estimated_delay": { + "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", + "nullable": true, + "title": "estimated_delay", + "type": "integer", + "x-order": 413 + }, + "estimated_local": { + "description": "Estimated time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_local", + "type": "string", + "x-order": 411 + }, + "estimated_utc": { + "description": "Estimated time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_utc", + "type": "string", + "x-order": 409 + }, + "scheduled": { + "description": "Scheduled time local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "scheduled", + "type": "string", + "x-order": 401 + }, + "scheduled_local": { + "description": "Sceduled time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_local", + "type": "string", + "x-order": 405 + }, + "scheduled_utc": { + "description": "Scheduled time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_utc", + "type": "string", + "x-order": 403 + }, + "uncertainty": { + "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "uncertainty", + "type": "integer", + "x-order": 417 + } }, + "title": "arrival", + "type": "object", + "x-graphql-type": "StopTimeEvent", + "x-order": 418 + }, + "arrival_time": { + "description": "GTFS stop_times.arrival_time", + "example": "15:21:04", + "format": "hms", + "title": "arrival_time", + "type": "string", + "x-order": 388 + }, + "continuous_drop_off": { + "description": "GTFS stop_times.continuous_drop_off", + "nullable": true, + "title": "continuous_drop_off", + "type": "integer", + "x-order": 382 + }, + "continuous_pickup": { + "description": "GTFS stop_times.continuous_pickup", + "nullable": true, + "title": "continuous_pickup", + "type": "integer", + "x-order": 380 + }, + "date": { + "description": "If part of an arrival/departure query, the calendar date for this scheduled stop time", + "example": "2019-11-15", + "format": "date", + "nullable": true, + "title": "date", + "type": "string", + "x-order": 398 + }, + "departure": { + "description": "Detailed departure information, including GTFS-RT updates and estimates", "properties": { - "departure": { - "description": "Record from a static GTFS [stop_times.txt](https://gtfs.org/schedule/reference/#stop_timestxt) file.", - "externalDocs": { - "description": "stop_times.txt", - "url": "https://gtfs.org/schedule/reference/#stop_timestxt" - }, - "properties": { - "arrival": { - "description": "Detailed arrival information, including GTFS-RT updates and estimates", - "properties": { - "delay": { - "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "delay", - "type": "integer" - }, - "estimated": { - "description": "Estimated time in local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "estimated", - "type": "string" - }, - "estimated_delay": { - "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", - "nullable": true, - "title": "estimated_delay", - "type": "integer" - }, - "estimated_local": { - "description": "Estimated time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_local", - "type": "string" - }, - "estimated_utc": { - "description": "Estimated time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_utc", - "type": "string" - }, - "scheduled": { - "description": "Scheduled time local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "scheduled", - "type": "string" - }, - "scheduled_local": { - "description": "Sceduled time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_local", - "type": "string" - }, - "scheduled_utc": { - "description": "Scheduled time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_utc", - "type": "string" + "delay": { + "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "delay", + "type": "integer", + "x-order": 435 + }, + "estimated": { + "description": "Estimated time in local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "estimated", + "type": "string", + "x-order": 427 + }, + "estimated_delay": { + "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", + "nullable": true, + "title": "estimated_delay", + "type": "integer", + "x-order": 433 + }, + "estimated_local": { + "description": "Estimated time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_local", + "type": "string", + "x-order": 431 + }, + "estimated_utc": { + "description": "Estimated time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_utc", + "type": "string", + "x-order": 429 + }, + "scheduled": { + "description": "Scheduled time local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "scheduled", + "type": "string", + "x-order": 421 + }, + "scheduled_local": { + "description": "Sceduled time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_local", + "type": "string", + "x-order": 425 + }, + "scheduled_utc": { + "description": "Scheduled time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_utc", + "type": "string", + "x-order": 423 + }, + "uncertainty": { + "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "uncertainty", + "type": "integer", + "x-order": 437 + } + }, + "title": "departure", + "type": "object", + "x-graphql-type": "StopTimeEvent", + "x-order": 438 + }, + "departure_time": { + "description": "GTFS stop_times.departure_time", + "example": "15:21:04", + "format": "hms", + "title": "departure_time", + "type": "string", + "x-order": 390 + }, + "drop_off_type": { + "description": "GTFS stop_times.drop_off_type", + "nullable": true, + "title": "drop_off_type", + "type": "integer", + "x-order": 378 + }, + "interpolated": { + "description": "Set if this arrival/departure time was interpolated during import", + "nullable": true, + "title": "interpolated", + "type": "integer", + "x-order": 384 + }, + "pickup_type": { + "description": "GTFS stop_times.pickup_type", + "nullable": true, + "title": "pickup_type", + "type": "integer", + "x-order": 376 + }, + "schedule_relationship": { + "description": "A status flag for real-time information about this trip. \n \n If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED.", + "enum": [ + "SCHEDULED", + "ADDED", + "UNSCHEDULED", + "CANCELED", + "STATIC", + "SKIPPED", + "NO_DATA", + "REPLACEMENT", + "DUPLICATED", + "DELETED" + ], + "nullable": true, + "title": "schedule_relationship", + "type": "object", + "x-graphql-type": "ScheduleRelationship", + "x-order": 394 + }, + "service_date": { + "description": "If part of an arrival/departure query, the GTFS service date for this scheduled stop time", + "example": "2019-11-15", + "format": "date", + "nullable": true, + "title": "service_date", + "type": "string", + "x-order": 396 + }, + "shape_dist_traveled": { + "description": "GTFS stop_times.shape_dist_traveled", + "nullable": true, + "title": "shape_dist_traveled", + "type": "number", + "x-order": 392 + }, + "stop_headsign": { + "description": "GTFS stop_times.stop_headsign", + "nullable": true, + "title": "stop_headsign", + "type": "string", + "x-order": 372 + }, + "stop_sequence": { + "description": "GTFS stop_times.stop_sequence", + "title": "stop_sequence", + "type": "integer", + "x-order": 370 + }, + "timepoint": { + "description": "GTFS stop_times.timepoint", + "nullable": true, + "title": "timepoint", + "type": "integer", + "x-order": 374 + }, + "trip": { + "description": "Trip associated with this stop time", + "properties": { + "alerts": { + "description": "GTFS-RT alerts for this trip", + "items": { + "properties": { + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 655 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 653 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 656 }, - "uncertainty": { - "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "uncertainty", - "type": "integer" - } + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 656 }, - "title": "arrival", - "type": "object", - "x-graphql-type": "StopTimeEvent" - }, - "arrival_time": { - "description": "GTFS stop_times.arrival_time", - "example": "15:21:04", - "format": "hms", - "title": "arrival_time", - "type": "string" - }, - "continuous_drop_off": { - "description": "GTFS stop_times.continuous_drop_off", - "nullable": true, - "title": "continuous_drop_off", - "type": "integer" - }, - "continuous_pickup": { - "description": "GTFS stop_times.continuous_pickup", - "nullable": true, - "title": "continuous_pickup", - "type": "integer" - }, - "date": { - "description": "If part of an arrival/departure query, the calendar date for this scheduled stop time", - "example": "2019-11-15", - "format": "date", - "nullable": true, - "title": "date", - "type": "string" - }, - "departure": { - "description": "Detailed departure information, including GTFS-RT updates and estimates", - "properties": { - "delay": { - "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "delay", - "type": "integer" - }, - "estimated": { - "description": "Estimated time in local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "estimated", - "type": "string" - }, - "estimated_delay": { - "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", - "nullable": true, - "title": "estimated_delay", - "type": "integer" + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" }, - "estimated_local": { - "description": "Estimated time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_local", - "type": "string" + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 616 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 635 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 637 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 638 }, - "estimated_utc": { - "description": "Estimated time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_utc", - "type": "string" + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 638 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" }, - "scheduled": { - "description": "Scheduled time local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "scheduled", - "type": "string" + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 618 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 629 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 631 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 632 }, - "scheduled_local": { - "description": "Sceduled time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_local", - "type": "string" + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 632 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 620 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 647 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 649 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 650 }, - "scheduled_utc": { - "description": "Scheduled time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_utc", - "type": "string" + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 650 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 641 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 643 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 644 }, - "uncertainty": { - "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "uncertainty", - "type": "integer" - } + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 644 }, - "title": "departure", - "type": "object", - "x-graphql-type": "StopTimeEvent" - }, - "departure_time": { - "description": "GTFS stop_times.departure_time", - "example": "15:21:04", - "format": "hms", - "title": "departure_time", - "type": "string" - }, - "drop_off_type": { - "description": "GTFS stop_times.drop_off_type", - "nullable": true, - "title": "drop_off_type", - "type": "integer" - }, - "interpolated": { - "description": "Set if this arrival/departure time was interpolated during import", - "nullable": true, - "title": "interpolated", - "type": "integer" - }, - "pickup_type": { - "description": "GTFS stop_times.pickup_type", - "nullable": true, - "title": "pickup_type", - "type": "integer" - }, - "schedule_relationship": { - "description": "GTFS-RT SceduleRelationship; set to STATIC if no associated GTFS-RT data", - "nullable": true, - "title": "schedule_relationship", - "type": "object", - "x-graphql-type": "ScheduleRelationship" - }, - "service_date": { - "description": "If part of an arrival/departure query, the GTFS service date for this scheduled stop time", - "example": "2019-11-15", - "format": "date", - "nullable": true, - "title": "service_date", - "type": "string" - }, - "shape_dist_traveled": { - "description": "GTFS stop_times.shape_dist_traveled", - "nullable": true, - "title": "shape_dist_traveled", - "type": "number" - }, - "stop_headsign": { - "description": "GTFS stop_times.stop_headsign", - "nullable": true, - "title": "stop_headsign", - "type": "string" + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 623 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 625 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 626 + }, + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 626 + } }, - "stop_sequence": { - "description": "GTFS stop_times.stop_sequence", - "title": "stop_sequence", - "type": "integer" + "type": "object", + "x-graphql-type": "Alert", + "x-order": 657 + }, + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 657 + }, + "bikes_allowed": { + "description": "GTFS trips.bikes_allowed", + "title": "bikes_allowed", + "type": "integer", + "x-order": 456 + }, + "block_id": { + "description": "GTFS trips.block_id", + "title": "block_id", + "type": "string", + "x-order": 452 + }, + "direction_id": { + "description": "GTFS trips.direction_id", + "title": "direction_id", + "type": "integer", + "x-order": 450 + }, + "frequencies": { + "description": "Frequencies for this trip", + "items": { + "properties": { + "end_time": { + "description": "GTFS frequencies.end_time", + "example": "15:21:04", + "format": "hms", + "title": "end_time", + "type": "string", + "x-order": 607 + }, + "exact_times": { + "description": "GTFS frequencies.exact_times", + "title": "exact_times", + "type": "integer", + "x-order": 611 + }, + "headway_secs": { + "description": "GTFS frequencies.headway_secs", + "title": "headway_secs", + "type": "integer", + "x-order": 609 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 603 + }, + "start_time": { + "description": "GTFS frequencies.start_time", + "example": "15:21:04", + "format": "hms", + "title": "start_time", + "type": "string", + "x-order": 605 + } }, - "timepoint": { - "description": "GTFS stop_times.timepoint", - "nullable": true, - "title": "timepoint", - "type": "integer" - } + "type": "object", + "x-graphql-type": "Frequency", + "x-order": 612 }, - "title": "departure", - "type": "object" + "title": "frequencies", + "type": "array", + "x-graphql-type": "Frequency", + "x-order": 612 }, - "trip": { - "description": "Trip associated with this stop time", + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 442 + }, + "route": { + "description": "Route for this trip", "properties": { - "alerts": { - "description": "GTFS-RT alerts for this trip", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, + "agency": { + "description": "Agency associated with this route", + "properties": { + "agency_id": { + "description": "GTFS agency.agency_id", + "title": "agency_id", + "type": "string", + "x-order": 541 + }, + "agency_name": { + "description": "GTFS agency.agency_name", + "title": "agency_name", + "type": "string", + "x-order": 543 + }, + "alerts": { + "description": "GTFS-RT alerts for this agency", + "items": { "properties": { "active_period": { "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", @@ -6611,21 +7602,26 @@ "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", "nullable": true, "title": "end", - "type": "integer" + "type": "integer", + "x-order": 586 }, "start": { "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", "nullable": true, "title": "start", - "type": "integer" + "type": "integer", + "x-order": 584 } }, "type": "object", - "x-graphql-type": "RTTimeRange" + "x-graphql-type": "RTTimeRange", + "x-order": 587 }, "nullable": true, "title": "active_period", - "type": "array" + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 587 }, "cause": { "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", @@ -6635,1177 +7631,1302 @@ }, "nullable": true, "title": "cause", - "type": "string" + "type": "string", + "x-order": 547 }, "description_text": { "description": "GTFS-RT Alert description text", "items": { "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } - }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "frequencies": { - "description": "Frequencies for this trip", - "items": { - "properties": { - "end_time": { - "description": "GTFS frequencies.end_time", - "example": "15:21:04", - "format": "hms", - "title": "end_time", - "type": "string" - }, - "exact_times": { - "description": "GTFS frequencies.exact_times", - "title": "exact_times", - "type": "integer" - }, - "headway_secs": { - "description": "GTFS frequencies.headway_secs", - "title": "headway_secs", - "type": "integer" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "start_time": { - "description": "GTFS frequencies.start_time", - "example": "15:21:04", - "format": "hms", - "title": "start_time", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "Frequency" - }, - "title": "frequencies", - "type": "array" - }, - "route": { - "description": "Route for this trip", - "properties": { - "agency": { - "description": "Agency associated with this route", - "properties": { - "agency": { - "description": "Record from a static GTFS [agency.txt](https://gtfs.org/reference/static/#agencytxt)", - "externalDocs": { - "description": "agency.txt", - "url": "https://gtfs.org/reference/static/#agencytxt" - }, - "properties": { - "agency_id": { - "description": "GTFS agency.agency_id", - "title": "agency_id", - "type": "string" - }, - "agency_name": { - "description": "GTFS agency.agency_name", - "title": "agency_name", - "type": "string" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this agency (or its associated operator)", - "title": "onestop_id", - "type": "string" - } - }, - "title": "agency", - "type": "object" - }, - "alerts": { - "description": "GTFS-RT alerts for this agency", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 566 }, - "title": "alert", - "type": "object" - } + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 568 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 569 }, - "type": "object", - "x-graphql-type": "Alert" + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 569 }, - "nullable": true, - "title": "alerts", - "type": "array" - } - }, - "title": "agency", - "type": "object", - "x-graphql-type": "Agency" - }, - "alerts": { - "description": "GTFS-RT alerts for this route", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 549 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 560 }, - "nullable": true, - "title": "effect", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 562 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 563 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 563 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 551 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 578 }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 580 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 581 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 581 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 572 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 574 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 575 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 575 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 554 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 556 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 557 }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "route": { - "description": "Record from a static GTFS [routes.txt](https://gtfs.org/reference/static/#routestxt)", - "externalDocs": { - "description": "routes.txt", - "url": "https://gtfs.org/reference/static/#routestxt" - }, - "properties": { - "continuous_drop_off": { - "description": "GTFS routes.continuous_drop_off", - "nullable": true, - "title": "continuous_drop_off", - "type": "integer" - }, - "continuous_pickup": { - "description": "GTFS routes.continuous_pickup", - "nullable": true, - "title": "continuous_pickup", - "type": "integer" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this route", - "nullable": true, - "title": "onestop_id", - "type": "string" - }, - "route_color": { - "description": "GTFS routes.route_color", - "title": "route_color", - "type": "string" - }, - "route_desc": { - "description": "GTFS routes.route_desc", - "title": "route_desc", - "type": "string" - }, - "route_id": { - "description": "GTFS routes.route_id", - "title": "route_id", - "type": "string" - }, - "route_long_name": { - "description": "GTFS routes.route_long_name", - "title": "route_long_name", - "type": "string" - }, - "route_short_name": { - "description": "GTFS routes.route_short_name", - "title": "route_short_name", - "type": "string" - }, - "route_text_color": { - "description": "GTFS routes.route_text_color", - "title": "route_text_color", - "type": "string" - }, - "route_type": { - "description": "GTFS routes.route_type", - "title": "route_type", - "type": "integer" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 557 + } }, - "route_url": { - "description": "GTFS routes.route_url", - "title": "route_url", - "type": "string" - } + "type": "object", + "x-graphql-type": "Alert", + "x-order": 588 }, - "title": "route", - "type": "object" - } - }, - "title": "route", - "type": "object", - "x-graphql-type": "Route" - }, - "shape": { - "description": "Shape for this trip", - "nullable": true, - "properties": { - "generated": { - "description": "Was this geometry automatically generated from stop locations?", - "title": "generated", - "type": "boolean" - }, - "geometry": { - "description": "Geometry for this shape", - "title": "geometry" + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 588 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 537 }, - "shape_id": { - "description": "GTFS shapes.shape_id", - "title": "shape_id", - "type": "string" + "onestop_id": { + "description": "OnestopID for this agency (or its associated operator)", + "title": "onestop_id", + "type": "string", + "x-order": 539 } }, - "title": "shape", + "title": "agency", "type": "object", - "x-graphql-type": "Shape" + "x-graphql-type": "Agency", + "x-order": 589 }, - "trip": { - "description": "Record from a static GTFS (https://gtfs.org/reference/realtime/v2/#message-alert) messages.", - "externalDocs": { - "description": "trips.txt](https://gtfs.org/schedule/reference/#tripstxt) file optionally enriched with by GTFS Realtime [TripUpdate](https://gtfs.org/reference/realtime/v2/#message-tripupdate) and [Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "bikes_allowed": { - "description": "GTFS trips.bikes_allowed", - "title": "bikes_allowed", - "type": "integer" - }, - "block_id": { - "description": "GTFS trips.block_id", - "title": "block_id", - "type": "string" - }, - "direction_id": { - "description": "GTFS trips.direction_id", - "title": "direction_id", - "type": "integer" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "schedule_relationship": { - "description": "GTFS-RT ScheduleRelationship", - "nullable": true, - "title": "schedule_relationship", - "type": "object", - "x-graphql-type": "ScheduleRelationship" - }, - "stop_pattern_id": { - "description": "Calculated stop pattern ID; an integer scoped to the feed version", - "title": "stop_pattern_id", - "type": "integer" - }, - "timestamp": { - "description": "GTFS-RT TripUpdate timestamp", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "timestamp", - "type": "string" - }, - "trip_headsign": { - "description": "GTFS trips.trip_headsign", - "title": "trip_headsign", - "type": "string" - }, - "trip_id": { - "description": "GTFS trips.trip_id", - "title": "trip_id", - "type": "string" - }, - "trip_short_name": { - "description": "GTFS trips.trip_short_name", - "title": "trip_short_name", - "type": "string" + "alerts": { + "description": "GTFS-RT alerts for this route", + "items": { + "properties": { + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 531 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 529 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 532 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 532 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 492 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 511 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 513 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 514 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 514 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 494 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 505 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 507 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 508 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 508 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 496 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 523 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 525 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 526 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 526 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 517 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 519 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 520 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 520 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 499 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 501 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 502 + }, + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 502 + } }, - "wheelchair_accessible": { - "description": "GTFS trips.wheelchair_accessible", - "title": "wheelchair_accessible", - "type": "integer" - } + "type": "object", + "x-graphql-type": "Alert", + "x-order": 533 }, - "title": "trip", - "type": "object" + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 533 + }, + "continuous_drop_off": { + "description": "GTFS routes.continuous_drop_off", + "nullable": true, + "title": "continuous_drop_off", + "type": "integer", + "x-order": 486 + }, + "continuous_pickup": { + "description": "GTFS routes.continuous_pickup", + "nullable": true, + "title": "continuous_pickup", + "type": "integer", + "x-order": 488 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 466 + }, + "onestop_id": { + "description": "OnestopID for this route", + "nullable": true, + "title": "onestop_id", + "type": "string", + "x-order": 468 + }, + "route_color": { + "description": "GTFS routes.route_color", + "title": "route_color", + "type": "string", + "x-order": 476 + }, + "route_desc": { + "description": "GTFS routes.route_desc", + "title": "route_desc", + "type": "string", + "x-order": 478 + }, + "route_id": { + "description": "GTFS routes.route_id", + "title": "route_id", + "type": "string", + "x-order": 470 + }, + "route_long_name": { + "description": "GTFS routes.route_long_name", + "title": "route_long_name", + "type": "string", + "x-order": 474 + }, + "route_short_name": { + "description": "GTFS routes.route_short_name", + "title": "route_short_name", + "type": "string", + "x-order": 472 + }, + "route_text_color": { + "description": "GTFS routes.route_text_color", + "title": "route_text_color", + "type": "string", + "x-order": 480 + }, + "route_type": { + "description": "GTFS routes.route_type", + "title": "route_type", + "type": "integer", + "x-order": 482 + }, + "route_url": { + "description": "GTFS routes.route_url", + "title": "route_url", + "type": "string", + "x-order": 484 } }, - "title": "trip", + "title": "route", + "type": "object", + "x-graphql-type": "Route", + "x-order": 590 + }, + "schedule_relationship": { + "description": "A status flag for real-time information about this trip. \n \n If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED.", + "enum": [ + "SCHEDULED", + "ADDED", + "UNSCHEDULED", + "CANCELED", + "STATIC", + "SKIPPED", + "NO_DATA", + "REPLACEMENT", + "DUPLICATED", + "DELETED" + ], + "nullable": true, + "title": "schedule_relationship", + "type": "object", + "x-graphql-type": "ScheduleRelationship", + "x-order": 460 + }, + "shape": { + "description": "Shape for this trip", + "nullable": true, + "properties": { + "generated": { + "description": "Was this geometry automatically generated from stop locations?", + "title": "generated", + "type": "boolean", + "x-order": 599 + }, + "geometry": { + "description": "Geometry for this shape", + "title": "geometry", + "x-order": 597 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 593 + }, + "shape_id": { + "description": "GTFS shapes.shape_id", + "title": "shape_id", + "type": "string", + "x-order": 595 + } + }, + "title": "shape", "type": "object", - "x-graphql-type": "Trip" + "x-graphql-type": "Shape", + "x-order": 600 + }, + "stop_pattern_id": { + "description": "Calculated stop pattern ID; an integer scoped to the feed version", + "title": "stop_pattern_id", + "type": "integer", + "x-order": 458 + }, + "timestamp": { + "description": "GTFS-RT TripUpdate timestamp", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "timestamp", + "type": "string", + "x-order": 462 + }, + "trip_headsign": { + "description": "GTFS trips.trip_headsign", + "title": "trip_headsign", + "type": "string", + "x-order": 446 + }, + "trip_id": { + "description": "GTFS trips.trip_id", + "title": "trip_id", + "type": "string", + "x-order": 444 + }, + "trip_short_name": { + "description": "GTFS trips.trip_short_name", + "title": "trip_short_name", + "type": "string", + "x-order": 448 + }, + "wheelchair_accessible": { + "description": "GTFS trips.wheelchair_accessible", + "title": "wheelchair_accessible", + "type": "integer", + "x-order": 454 } }, - "title": "departures", - "type": "object" + "title": "trip", + "type": "object", + "x-graphql-type": "Trip", + "x-order": 658 } }, "type": "object", - "x-graphql-type": "StopTime" + "x-graphql-type": "StopTime", + "x-order": 659 }, "title": "departures", - "type": "array" + "type": "array", + "x-graphql-type": "StopTime", + "x-order": 659 }, - "stop": { - "description": "Record from a static GTFS [stops.txt](https://gtfs.org/reference/static/#stopstxt)", - "externalDocs": { - "description": "stops.txt", - "url": "https://gtfs.org/reference/static/#stopstxt" - }, - "properties": { - "geometry": { - "description": "Stop geometry", - "title": "geometry" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "location_type": { - "description": "GTFS stops.location_type", - "enum": [ - "0", - "1", - "2", - "3", - "4" - ], - "title": "location_type", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this stop, if available", - "example": "s-dr5ruvgnyk-madisonav~e69st", - "title": "onestop_id", - "type": "string" - }, - "platform_code": { - "description": "GTFS stops.platform_code", - "nullable": true, - "title": "platform_code", - "type": "string" - }, - "stop_code": { - "description": "GTFS stops.stop_code", - "title": "stop_code", - "type": "string" - }, - "stop_desc": { - "description": "GTFS stops.stop_desc", - "example": "NW Corner of Broadway and 14th", - "title": "stop_desc", - "type": "string" - }, - "stop_id": { - "description": "GTFS stops.stop_id", - "example": "400029", - "title": "stop_id", - "type": "string" - }, - "stop_name": { - "description": "GTFS stops.stop_name", - "example": "MADISON AV/E 68 ST", - "title": "stop_name", - "type": "string" - }, - "stop_timezone": { - "description": "GTFS stops.stop_timezone; if overriding agency/route timezone", - "example": "America/Los_Angeles", - "title": "stop_timezone", - "type": "string" - }, - "stop_url": { - "description": "GTFS stops.stop_url", - "title": "stop_url", - "type": "string" - }, - "tts_stop_name": { - "description": "GTFS stops.tts_stop_name", - "nullable": true, - "title": "tts_stop_name", - "type": "string" - }, - "wheelchair_boarding": { - "description": "GTFS stops.wheelchair_boarding", - "enum": [ - "0", - "1", - "2" - ], - "title": "wheelchair_boarding", - "type": "integer" - }, - "zone_id": { - "description": "GTFS stops.zone_id", - "title": "zone_id", - "type": "string" - } - }, - "title": "stop", - "type": "object" + "geometry": { + "description": "Stop geometry", + "title": "geometry", + "x-order": 356 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 340 + }, + "location_type": { + "description": "GTFS stops.location_type", + "enum": [ + "0", + "1", + "2", + "3", + "4" + ], + "title": "location_type", + "type": "integer", + "x-order": 358 + }, + "onestop_id": { + "description": "OnestopID for this stop, if available", + "example": "s-dr5ruvgnyk-madisonav~e69st", + "title": "onestop_id", + "type": "string", + "x-order": 342 + }, + "platform_code": { + "description": "GTFS stops.platform_code", + "nullable": true, + "title": "platform_code", + "type": "string", + "x-order": 360 + }, + "stop_code": { + "description": "GTFS stops.stop_code", + "title": "stop_code", + "type": "string", + "x-order": 344 + }, + "stop_desc": { + "description": "GTFS stops.stop_desc", + "example": "NW Corner of Broadway and 14th", + "title": "stop_desc", + "type": "string", + "x-order": 346 + }, + "stop_id": { + "description": "GTFS stops.stop_id", + "example": "400029", + "title": "stop_id", + "type": "string", + "x-order": 348 + }, + "stop_name": { + "description": "GTFS stops.stop_name", + "example": "MADISON AV/E 68 ST", + "title": "stop_name", + "type": "string", + "x-order": 350 + }, + "stop_timezone": { + "description": "GTFS stops.stop_timezone; if overriding agency/route timezone", + "example": "America/Los_Angeles", + "title": "stop_timezone", + "type": "string", + "x-order": 352 + }, + "stop_url": { + "description": "GTFS stops.stop_url", + "title": "stop_url", + "type": "string", + "x-order": 354 + }, + "tts_stop_name": { + "description": "GTFS stops.tts_stop_name", + "nullable": true, + "title": "tts_stop_name", + "type": "string", + "x-order": 362 + }, + "wheelchair_boarding": { + "description": "GTFS stops.wheelchair_boarding", + "enum": [ + "0", + "1", + "2" + ], + "title": "wheelchair_boarding", + "type": "integer", + "x-order": 364 + }, + "zone_id": { + "description": "GTFS stops.zone_id", + "title": "zone_id", + "type": "string", + "x-order": 366 } }, "type": "object", - "x-graphql-type": "Stop" + "x-graphql-type": "Stop", + "x-order": 705 }, "nullable": true, "title": "children", - "type": "array" + "type": "array", + "x-graphql-type": "Stop", + "x-order": 705 }, "departures": { "description": "Departures from this stop for a given date and time", "items": { "properties": { - "departures": { - "description": "Record from a static GTFS [stop_times.txt](https://gtfs.org/schedule/reference/#stop_timestxt) file.", - "externalDocs": { - "description": "stop_times.txt", - "url": "https://gtfs.org/schedule/reference/#stop_timestxt" + "arrival": { + "description": "Detailed arrival information, including GTFS-RT updates and estimates", + "properties": { + "delay": { + "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "delay", + "type": "integer", + "x-order": 92 + }, + "estimated": { + "description": "Estimated time in local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "estimated", + "type": "string", + "x-order": 84 + }, + "estimated_delay": { + "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", + "nullable": true, + "title": "estimated_delay", + "type": "integer", + "x-order": 90 + }, + "estimated_local": { + "description": "Estimated time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_local", + "type": "string", + "x-order": 88 + }, + "estimated_utc": { + "description": "Estimated time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_utc", + "type": "string", + "x-order": 86 + }, + "scheduled": { + "description": "Scheduled time local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "scheduled", + "type": "string", + "x-order": 78 + }, + "scheduled_local": { + "description": "Sceduled time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_local", + "type": "string", + "x-order": 82 + }, + "scheduled_utc": { + "description": "Scheduled time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_utc", + "type": "string", + "x-order": 80 + }, + "uncertainty": { + "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "uncertainty", + "type": "integer", + "x-order": 94 + } }, + "title": "arrival", + "type": "object", + "x-graphql-type": "StopTimeEvent", + "x-order": 95 + }, + "arrival_time": { + "description": "GTFS stop_times.arrival_time", + "example": "15:21:04", + "format": "hms", + "title": "arrival_time", + "type": "string", + "x-order": 65 + }, + "continuous_drop_off": { + "description": "GTFS stop_times.continuous_drop_off", + "nullable": true, + "title": "continuous_drop_off", + "type": "integer", + "x-order": 59 + }, + "continuous_pickup": { + "description": "GTFS stop_times.continuous_pickup", + "nullable": true, + "title": "continuous_pickup", + "type": "integer", + "x-order": 57 + }, + "date": { + "description": "If part of an arrival/departure query, the calendar date for this scheduled stop time", + "example": "2019-11-15", + "format": "date", + "nullable": true, + "title": "date", + "type": "string", + "x-order": 75 + }, + "departure": { + "description": "Detailed departure information, including GTFS-RT updates and estimates", "properties": { - "departure": { - "description": "Record from a static GTFS [stop_times.txt](https://gtfs.org/schedule/reference/#stop_timestxt) file.", - "externalDocs": { - "description": "stop_times.txt", - "url": "https://gtfs.org/schedule/reference/#stop_timestxt" - }, - "properties": { - "arrival": { - "description": "Detailed arrival information, including GTFS-RT updates and estimates", - "properties": { - "delay": { - "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "delay", - "type": "integer" - }, - "estimated": { - "description": "Estimated time in local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "estimated", - "type": "string" - }, - "estimated_delay": { - "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", - "nullable": true, - "title": "estimated_delay", - "type": "integer" - }, - "estimated_local": { - "description": "Estimated time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_local", - "type": "string" - }, - "estimated_utc": { - "description": "Estimated time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_utc", - "type": "string" - }, - "scheduled": { - "description": "Scheduled time local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "scheduled", - "type": "string" - }, - "scheduled_local": { - "description": "Sceduled time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_local", - "type": "string" - }, - "scheduled_utc": { - "description": "Scheduled time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_utc", - "type": "string" + "delay": { + "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "delay", + "type": "integer", + "x-order": 112 + }, + "estimated": { + "description": "Estimated time in local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "estimated", + "type": "string", + "x-order": 104 + }, + "estimated_delay": { + "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", + "nullable": true, + "title": "estimated_delay", + "type": "integer", + "x-order": 110 + }, + "estimated_local": { + "description": "Estimated time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_local", + "type": "string", + "x-order": 108 + }, + "estimated_utc": { + "description": "Estimated time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_utc", + "type": "string", + "x-order": 106 + }, + "scheduled": { + "description": "Scheduled time local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "scheduled", + "type": "string", + "x-order": 98 + }, + "scheduled_local": { + "description": "Sceduled time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_local", + "type": "string", + "x-order": 102 + }, + "scheduled_utc": { + "description": "Scheduled time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_utc", + "type": "string", + "x-order": 100 + }, + "uncertainty": { + "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "uncertainty", + "type": "integer", + "x-order": 114 + } + }, + "title": "departure", + "type": "object", + "x-graphql-type": "StopTimeEvent", + "x-order": 115 + }, + "departure_time": { + "description": "GTFS stop_times.departure_time", + "example": "15:21:04", + "format": "hms", + "title": "departure_time", + "type": "string", + "x-order": 67 + }, + "drop_off_type": { + "description": "GTFS stop_times.drop_off_type", + "nullable": true, + "title": "drop_off_type", + "type": "integer", + "x-order": 55 + }, + "interpolated": { + "description": "Set if this arrival/departure time was interpolated during import", + "nullable": true, + "title": "interpolated", + "type": "integer", + "x-order": 61 + }, + "pickup_type": { + "description": "GTFS stop_times.pickup_type", + "nullable": true, + "title": "pickup_type", + "type": "integer", + "x-order": 53 + }, + "schedule_relationship": { + "description": "A status flag for real-time information about this trip. \n \n If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED.", + "enum": [ + "SCHEDULED", + "ADDED", + "UNSCHEDULED", + "CANCELED", + "STATIC", + "SKIPPED", + "NO_DATA", + "REPLACEMENT", + "DUPLICATED", + "DELETED" + ], + "nullable": true, + "title": "schedule_relationship", + "type": "object", + "x-graphql-type": "ScheduleRelationship", + "x-order": 71 + }, + "service_date": { + "description": "If part of an arrival/departure query, the GTFS service date for this scheduled stop time", + "example": "2019-11-15", + "format": "date", + "nullable": true, + "title": "service_date", + "type": "string", + "x-order": 73 + }, + "shape_dist_traveled": { + "description": "GTFS stop_times.shape_dist_traveled", + "nullable": true, + "title": "shape_dist_traveled", + "type": "number", + "x-order": 69 + }, + "stop_headsign": { + "description": "GTFS stop_times.stop_headsign", + "nullable": true, + "title": "stop_headsign", + "type": "string", + "x-order": 49 + }, + "stop_sequence": { + "description": "GTFS stop_times.stop_sequence", + "title": "stop_sequence", + "type": "integer", + "x-order": 47 + }, + "timepoint": { + "description": "GTFS stop_times.timepoint", + "nullable": true, + "title": "timepoint", + "type": "integer", + "x-order": 51 + }, + "trip": { + "description": "Trip associated with this stop time", + "properties": { + "alerts": { + "description": "GTFS-RT alerts for this trip", + "items": { + "properties": { + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 332 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 330 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 333 }, - "uncertainty": { - "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "uncertainty", - "type": "integer" - } + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 333 }, - "title": "arrival", - "type": "object", - "x-graphql-type": "StopTimeEvent" - }, - "arrival_time": { - "description": "GTFS stop_times.arrival_time", - "example": "15:21:04", - "format": "hms", - "title": "arrival_time", - "type": "string" - }, - "continuous_drop_off": { - "description": "GTFS stop_times.continuous_drop_off", - "nullable": true, - "title": "continuous_drop_off", - "type": "integer" - }, - "continuous_pickup": { - "description": "GTFS stop_times.continuous_pickup", - "nullable": true, - "title": "continuous_pickup", - "type": "integer" - }, - "date": { - "description": "If part of an arrival/departure query, the calendar date for this scheduled stop time", - "example": "2019-11-15", - "format": "date", - "nullable": true, - "title": "date", - "type": "string" - }, - "departure": { - "description": "Detailed departure information, including GTFS-RT updates and estimates", - "properties": { - "delay": { - "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "delay", - "type": "integer" - }, - "estimated": { - "description": "Estimated time in local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "estimated", - "type": "string" - }, - "estimated_delay": { - "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", - "nullable": true, - "title": "estimated_delay", - "type": "integer" + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" }, - "estimated_local": { - "description": "Estimated time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_local", - "type": "string" + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 293 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 312 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 314 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 315 }, - "estimated_utc": { - "description": "Estimated time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_utc", - "type": "string" + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 315 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" }, - "scheduled": { - "description": "Scheduled time local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "scheduled", - "type": "string" + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 295 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 306 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 308 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 309 }, - "scheduled_local": { - "description": "Sceduled time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_local", - "type": "string" + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 309 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 297 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 324 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 326 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 327 }, - "scheduled_utc": { - "description": "Scheduled time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_utc", - "type": "string" + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 327 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 318 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 320 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 321 }, - "uncertainty": { - "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "uncertainty", - "type": "integer" - } + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 321 }, - "title": "departure", - "type": "object", - "x-graphql-type": "StopTimeEvent" - }, - "departure_time": { - "description": "GTFS stop_times.departure_time", - "example": "15:21:04", - "format": "hms", - "title": "departure_time", - "type": "string" - }, - "drop_off_type": { - "description": "GTFS stop_times.drop_off_type", - "nullable": true, - "title": "drop_off_type", - "type": "integer" - }, - "interpolated": { - "description": "Set if this arrival/departure time was interpolated during import", - "nullable": true, - "title": "interpolated", - "type": "integer" - }, - "pickup_type": { - "description": "GTFS stop_times.pickup_type", - "nullable": true, - "title": "pickup_type", - "type": "integer" - }, - "schedule_relationship": { - "description": "GTFS-RT SceduleRelationship; set to STATIC if no associated GTFS-RT data", - "nullable": true, - "title": "schedule_relationship", - "type": "object", - "x-graphql-type": "ScheduleRelationship" - }, - "service_date": { - "description": "If part of an arrival/departure query, the GTFS service date for this scheduled stop time", - "example": "2019-11-15", - "format": "date", - "nullable": true, - "title": "service_date", - "type": "string" - }, - "shape_dist_traveled": { - "description": "GTFS stop_times.shape_dist_traveled", - "nullable": true, - "title": "shape_dist_traveled", - "type": "number" - }, - "stop_headsign": { - "description": "GTFS stop_times.stop_headsign", - "nullable": true, - "title": "stop_headsign", - "type": "string" + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 300 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 302 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 303 + }, + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 303 + } }, - "stop_sequence": { - "description": "GTFS stop_times.stop_sequence", - "title": "stop_sequence", - "type": "integer" + "type": "object", + "x-graphql-type": "Alert", + "x-order": 334 + }, + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 334 + }, + "bikes_allowed": { + "description": "GTFS trips.bikes_allowed", + "title": "bikes_allowed", + "type": "integer", + "x-order": 133 + }, + "block_id": { + "description": "GTFS trips.block_id", + "title": "block_id", + "type": "string", + "x-order": 129 + }, + "direction_id": { + "description": "GTFS trips.direction_id", + "title": "direction_id", + "type": "integer", + "x-order": 127 + }, + "frequencies": { + "description": "Frequencies for this trip", + "items": { + "properties": { + "end_time": { + "description": "GTFS frequencies.end_time", + "example": "15:21:04", + "format": "hms", + "title": "end_time", + "type": "string", + "x-order": 284 + }, + "exact_times": { + "description": "GTFS frequencies.exact_times", + "title": "exact_times", + "type": "integer", + "x-order": 288 + }, + "headway_secs": { + "description": "GTFS frequencies.headway_secs", + "title": "headway_secs", + "type": "integer", + "x-order": 286 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 280 + }, + "start_time": { + "description": "GTFS frequencies.start_time", + "example": "15:21:04", + "format": "hms", + "title": "start_time", + "type": "string", + "x-order": 282 + } }, - "timepoint": { - "description": "GTFS stop_times.timepoint", - "nullable": true, - "title": "timepoint", - "type": "integer" - } + "type": "object", + "x-graphql-type": "Frequency", + "x-order": 289 }, - "title": "departure", - "type": "object" + "title": "frequencies", + "type": "array", + "x-graphql-type": "Frequency", + "x-order": 289 }, - "trip": { - "description": "Trip associated with this stop time", + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 119 + }, + "route": { + "description": "Route for this trip", "properties": { - "alerts": { - "description": "GTFS-RT alerts for this trip", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, + "agency": { + "description": "Agency associated with this route", + "properties": { + "agency_id": { + "description": "GTFS agency.agency_id", + "title": "agency_id", + "type": "string", + "x-order": 218 + }, + "agency_name": { + "description": "GTFS agency.agency_name", + "title": "agency_name", + "type": "string", + "x-order": 220 + }, + "alerts": { + "description": "GTFS-RT alerts for this agency", + "items": { "properties": { "active_period": { "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", @@ -7815,21 +8936,26 @@ "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", "nullable": true, "title": "end", - "type": "integer" + "type": "integer", + "x-order": 263 }, "start": { "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", "nullable": true, "title": "start", - "type": "integer" + "type": "integer", + "x-order": 261 } }, "type": "object", - "x-graphql-type": "RTTimeRange" + "x-graphql-type": "RTTimeRange", + "x-order": 264 }, "nullable": true, "title": "active_period", - "type": "array" + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 264 }, "cause": { "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", @@ -7839,7 +8965,8 @@ }, "nullable": true, "title": "cause", - "type": "string" + "type": "string", + "x-order": 224 }, "description_text": { "description": "GTFS-RT Alert description text", @@ -7849,19 +8976,24 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 243 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 245 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 246 }, "title": "description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 246 }, "effect": { "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", @@ -7871,7 +9003,8 @@ }, "nullable": true, "title": "effect", - "type": "string" + "type": "string", + "x-order": 226 }, "header_text": { "description": "GTFS-RT Alert header text", @@ -7881,25 +9014,31 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 237 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 239 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 240 }, "title": "header_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 240 }, "severity_level": { "description": "GTFS-RT Alert severity level", "nullable": true, "title": "severity_level", - "type": "string" + "type": "string", + "x-order": 228 }, "tts_description_text": { "description": "GTFS-RT Alert TTS description text", @@ -7909,20 +9048,25 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 255 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 257 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 258 }, "nullable": true, "title": "tts_description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 258 }, "tts_header_text": { "description": "GTFS-RT Alert TTS header text", @@ -7932,703 +9076,482 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" + "type": "string", + "x-order": 249 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } - }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "frequencies": { - "description": "Frequencies for this trip", - "items": { - "properties": { - "end_time": { - "description": "GTFS frequencies.end_time", - "example": "15:21:04", - "format": "hms", - "title": "end_time", - "type": "string" - }, - "exact_times": { - "description": "GTFS frequencies.exact_times", - "title": "exact_times", - "type": "integer" - }, - "headway_secs": { - "description": "GTFS frequencies.headway_secs", - "title": "headway_secs", - "type": "integer" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "start_time": { - "description": "GTFS frequencies.start_time", - "example": "15:21:04", - "format": "hms", - "title": "start_time", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "Frequency" - }, - "title": "frequencies", - "type": "array" - }, - "route": { - "description": "Route for this trip", - "properties": { - "agency": { - "description": "Agency associated with this route", - "properties": { - "agency": { - "description": "Record from a static GTFS [agency.txt](https://gtfs.org/reference/static/#agencytxt)", - "externalDocs": { - "description": "agency.txt", - "url": "https://gtfs.org/reference/static/#agencytxt" - }, - "properties": { - "agency_id": { - "description": "GTFS agency.agency_id", - "title": "agency_id", - "type": "string" - }, - "agency_name": { - "description": "GTFS agency.agency_name", - "title": "agency_name", - "type": "string" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this agency (or its associated operator)", - "title": "onestop_id", - "type": "string" - } - }, - "title": "agency", - "type": "object" - }, - "alerts": { - "description": "GTFS-RT alerts for this agency", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } - }, - "title": "alert", - "type": "object" - } - }, - "type": "object", - "x-graphql-type": "Alert" - }, - "nullable": true, - "title": "alerts", - "type": "array" - } - }, - "title": "agency", - "type": "object", - "x-graphql-type": "Agency" - }, - "alerts": { - "description": "GTFS-RT alerts for this route", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "type": "string", + "x-order": 251 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 252 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 252 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 231 }, - "nullable": true, - "title": "url", - "type": "array" - } + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 233 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 234 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 234 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 265 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 265 }, - "route": { - "description": "Record from a static GTFS [routes.txt](https://gtfs.org/reference/static/#routestxt)", - "externalDocs": { - "description": "routes.txt", - "url": "https://gtfs.org/reference/static/#routestxt" - }, - "properties": { - "continuous_drop_off": { - "description": "GTFS routes.continuous_drop_off", - "nullable": true, - "title": "continuous_drop_off", - "type": "integer" - }, - "continuous_pickup": { - "description": "GTFS routes.continuous_pickup", - "nullable": true, - "title": "continuous_pickup", - "type": "integer" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this route", - "nullable": true, - "title": "onestop_id", - "type": "string" - }, - "route_color": { - "description": "GTFS routes.route_color", - "title": "route_color", - "type": "string" + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 214 + }, + "onestop_id": { + "description": "OnestopID for this agency (or its associated operator)", + "title": "onestop_id", + "type": "string", + "x-order": 216 + } + }, + "title": "agency", + "type": "object", + "x-graphql-type": "Agency", + "x-order": 266 + }, + "alerts": { + "description": "GTFS-RT alerts for this route", + "items": { + "properties": { + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 208 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 206 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 209 }, - "route_desc": { - "description": "GTFS routes.route_desc", - "title": "route_desc", - "type": "string" + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 209 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" }, - "route_id": { - "description": "GTFS routes.route_id", - "title": "route_id", - "type": "string" + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 169 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 188 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 190 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 191 }, - "route_long_name": { - "description": "GTFS routes.route_long_name", - "title": "route_long_name", - "type": "string" + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 191 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" }, - "route_short_name": { - "description": "GTFS routes.route_short_name", - "title": "route_short_name", - "type": "string" + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 171 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 182 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 184 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 185 }, - "route_text_color": { - "description": "GTFS routes.route_text_color", - "title": "route_text_color", - "type": "string" + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 185 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 173 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 200 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 202 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 203 }, - "route_type": { - "description": "GTFS routes.route_type", - "title": "route_type", - "type": "integer" + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 203 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 194 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 196 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 197 }, - "route_url": { - "description": "GTFS routes.route_url", - "title": "route_url", - "type": "string" - } + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 197 }, - "title": "route", - "type": "object" - } + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 176 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 178 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 179 + }, + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 179 + } + }, + "type": "object", + "x-graphql-type": "Alert", + "x-order": 210 }, - "title": "route", - "type": "object", - "x-graphql-type": "Route" + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 210 }, - "shape": { - "description": "Shape for this trip", + "continuous_drop_off": { + "description": "GTFS routes.continuous_drop_off", "nullable": true, - "properties": { - "generated": { - "description": "Was this geometry automatically generated from stop locations?", - "title": "generated", - "type": "boolean" - }, - "geometry": { - "description": "Geometry for this shape", - "title": "geometry" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "shape_id": { - "description": "GTFS shapes.shape_id", - "title": "shape_id", - "type": "string" - } - }, - "title": "shape", - "type": "object", - "x-graphql-type": "Shape" + "title": "continuous_drop_off", + "type": "integer", + "x-order": 163 }, - "trip": { - "description": "Record from a static GTFS (https://gtfs.org/reference/realtime/v2/#message-alert) messages.", - "externalDocs": { - "description": "trips.txt](https://gtfs.org/schedule/reference/#tripstxt) file optionally enriched with by GTFS Realtime [TripUpdate](https://gtfs.org/reference/realtime/v2/#message-tripupdate) and [Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "bikes_allowed": { - "description": "GTFS trips.bikes_allowed", - "title": "bikes_allowed", - "type": "integer" - }, - "block_id": { - "description": "GTFS trips.block_id", - "title": "block_id", - "type": "string" - }, - "direction_id": { - "description": "GTFS trips.direction_id", - "title": "direction_id", - "type": "integer" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "schedule_relationship": { - "description": "GTFS-RT ScheduleRelationship", - "nullable": true, - "title": "schedule_relationship", - "type": "object", - "x-graphql-type": "ScheduleRelationship" - }, - "stop_pattern_id": { - "description": "Calculated stop pattern ID; an integer scoped to the feed version", - "title": "stop_pattern_id", - "type": "integer" - }, - "timestamp": { - "description": "GTFS-RT TripUpdate timestamp", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "timestamp", - "type": "string" - }, - "trip_headsign": { - "description": "GTFS trips.trip_headsign", - "title": "trip_headsign", - "type": "string" - }, - "trip_id": { - "description": "GTFS trips.trip_id", - "title": "trip_id", - "type": "string" - }, - "trip_short_name": { - "description": "GTFS trips.trip_short_name", - "title": "trip_short_name", - "type": "string" - }, - "wheelchair_accessible": { - "description": "GTFS trips.wheelchair_accessible", - "title": "wheelchair_accessible", - "type": "integer" - } - }, - "title": "trip", - "type": "object" + "continuous_pickup": { + "description": "GTFS routes.continuous_pickup", + "nullable": true, + "title": "continuous_pickup", + "type": "integer", + "x-order": 165 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 143 + }, + "onestop_id": { + "description": "OnestopID for this route", + "nullable": true, + "title": "onestop_id", + "type": "string", + "x-order": 145 + }, + "route_color": { + "description": "GTFS routes.route_color", + "title": "route_color", + "type": "string", + "x-order": 153 + }, + "route_desc": { + "description": "GTFS routes.route_desc", + "title": "route_desc", + "type": "string", + "x-order": 155 + }, + "route_id": { + "description": "GTFS routes.route_id", + "title": "route_id", + "type": "string", + "x-order": 147 + }, + "route_long_name": { + "description": "GTFS routes.route_long_name", + "title": "route_long_name", + "type": "string", + "x-order": 151 + }, + "route_short_name": { + "description": "GTFS routes.route_short_name", + "title": "route_short_name", + "type": "string", + "x-order": 149 + }, + "route_text_color": { + "description": "GTFS routes.route_text_color", + "title": "route_text_color", + "type": "string", + "x-order": 157 + }, + "route_type": { + "description": "GTFS routes.route_type", + "title": "route_type", + "type": "integer", + "x-order": 159 + }, + "route_url": { + "description": "GTFS routes.route_url", + "title": "route_url", + "type": "string", + "x-order": 161 + } + }, + "title": "route", + "type": "object", + "x-graphql-type": "Route", + "x-order": 267 + }, + "schedule_relationship": { + "description": "A status flag for real-time information about this trip. \n \n If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED.", + "enum": [ + "SCHEDULED", + "ADDED", + "UNSCHEDULED", + "CANCELED", + "STATIC", + "SKIPPED", + "NO_DATA", + "REPLACEMENT", + "DUPLICATED", + "DELETED" + ], + "nullable": true, + "title": "schedule_relationship", + "type": "object", + "x-graphql-type": "ScheduleRelationship", + "x-order": 137 + }, + "shape": { + "description": "Shape for this trip", + "nullable": true, + "properties": { + "generated": { + "description": "Was this geometry automatically generated from stop locations?", + "title": "generated", + "type": "boolean", + "x-order": 276 + }, + "geometry": { + "description": "Geometry for this shape", + "title": "geometry", + "x-order": 274 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 270 + }, + "shape_id": { + "description": "GTFS shapes.shape_id", + "title": "shape_id", + "type": "string", + "x-order": 272 } }, - "title": "trip", + "title": "shape", "type": "object", - "x-graphql-type": "Trip" + "x-graphql-type": "Shape", + "x-order": 277 + }, + "stop_pattern_id": { + "description": "Calculated stop pattern ID; an integer scoped to the feed version", + "title": "stop_pattern_id", + "type": "integer", + "x-order": 135 + }, + "timestamp": { + "description": "GTFS-RT TripUpdate timestamp", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "timestamp", + "type": "string", + "x-order": 139 + }, + "trip_headsign": { + "description": "GTFS trips.trip_headsign", + "title": "trip_headsign", + "type": "string", + "x-order": 123 + }, + "trip_id": { + "description": "GTFS trips.trip_id", + "title": "trip_id", + "type": "string", + "x-order": 121 + }, + "trip_short_name": { + "description": "GTFS trips.trip_short_name", + "title": "trip_short_name", + "type": "string", + "x-order": 125 + }, + "wheelchair_accessible": { + "description": "GTFS trips.wheelchair_accessible", + "title": "wheelchair_accessible", + "type": "integer", + "x-order": 131 } }, - "title": "departures", - "type": "object" + "title": "trip", + "type": "object", + "x-graphql-type": "Trip", + "x-order": 335 } }, "type": "object", - "x-graphql-type": "StopTime" + "x-graphql-type": "StopTime", + "x-order": 336 }, "title": "departures", - "type": "array" + "type": "array", + "x-graphql-type": "StopTime", + "x-order": 336 }, "feed_version": { "description": "Feed version", @@ -8639,40 +9562,78 @@ "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 39 }, "onestop_id": { "description": "OnestopID for this feed", "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 41 } }, "title": "feed", "type": "object", - "x-graphql-type": "Feed" + "x-graphql-type": "Feed", + "x-order": 42 }, "fetched_at": { "description": "Time when the file was fetched from the url", "example": "2019-11-15T00:45:55.409906", "format": "datetime", "title": "fetched_at", - "type": "string" + "type": "string", + "x-order": 36 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 32 }, "sha1": { "description": "SHA1 hash of the zip file", "example": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a", "title": "sha1", - "type": "string" + "type": "string", + "x-order": 34 } }, "title": "feed_version", "type": "object", - "x-graphql-type": "FeedVersion" + "x-graphql-type": "FeedVersion", + "x-order": 43 + }, + "geometry": { + "description": "Stop geometry", + "title": "geometry", + "x-order": 19 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 3 + }, + "location_type": { + "description": "GTFS stops.location_type", + "enum": [ + "0", + "1", + "2", + "3", + "4" + ], + "title": "location_type", + "type": "integer", + "x-order": 21 + }, + "onestop_id": { + "description": "OnestopID for this stop, if available", + "example": "s-dr5ruvgnyk-madisonav~e69st", + "title": "onestop_id", + "type": "string", + "x-order": 5 }, "parent": { "description": "Stop parent station", @@ -8682,187 +9643,212 @@ "description": "GTFS-RT Alerts for this stop", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 1147 }, - "nullable": true, - "title": "cause", - "type": "string" + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 1145 + } }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 1148 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 1148 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 1108 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1127 }, - "title": "description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1129 + } }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1130 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1130 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 1110 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1121 }, - "nullable": true, - "title": "effect", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1123 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1124 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1124 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 1112 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1139 }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1141 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1142 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1142 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1133 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1135 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1136 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1136 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1115 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1117 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1118 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1118 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 1149 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 1149 }, "children": { "description": "Stop children", @@ -8872,461 +9858,808 @@ "description": "GTFS-RT Alerts for this stop", "items": { "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 1101 }, - "title": "description_text", - "type": "array" + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 1099 + } }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 1102 + }, + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 1102 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 1062 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1081 }, - "nullable": true, - "title": "effect", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1083 + } }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1084 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1084 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 1064 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1075 }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1077 + } }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1078 + }, + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1078 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 1066 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1093 }, - "nullable": true, - "title": "tts_description_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1095 + } }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1096 + }, + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1096 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1087 }, - "nullable": true, - "title": "tts_header_text", - "type": "array" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1089 + } }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1090 + }, + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1090 + }, + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1069 }, - "nullable": true, - "title": "url", - "type": "array" - } + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1071 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1072 }, - "title": "alert", - "type": "object" + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1072 } }, "type": "object", - "x-graphql-type": "Alert" + "x-graphql-type": "Alert", + "x-order": 1103 }, "nullable": true, "title": "alerts", - "type": "array" + "type": "array", + "x-graphql-type": "Alert", + "x-order": 1103 }, "departures": { "description": "Departures from this stop for a given date and time", "items": { "properties": { - "departures": { - "description": "Record from a static GTFS [stop_times.txt](https://gtfs.org/schedule/reference/#stop_timestxt) file.", - "externalDocs": { - "description": "stop_times.txt", - "url": "https://gtfs.org/schedule/reference/#stop_timestxt" + "arrival": { + "description": "Detailed arrival information, including GTFS-RT updates and estimates", + "properties": { + "delay": { + "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "delay", + "type": "integer", + "x-order": 814 + }, + "estimated": { + "description": "Estimated time in local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "estimated", + "type": "string", + "x-order": 806 + }, + "estimated_delay": { + "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", + "nullable": true, + "title": "estimated_delay", + "type": "integer", + "x-order": 812 + }, + "estimated_local": { + "description": "Estimated time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_local", + "type": "string", + "x-order": 810 + }, + "estimated_utc": { + "description": "Estimated time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_utc", + "type": "string", + "x-order": 808 + }, + "scheduled": { + "description": "Scheduled time local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "scheduled", + "type": "string", + "x-order": 800 + }, + "scheduled_local": { + "description": "Sceduled time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_local", + "type": "string", + "x-order": 804 + }, + "scheduled_utc": { + "description": "Scheduled time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_utc", + "type": "string", + "x-order": 802 + }, + "uncertainty": { + "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "uncertainty", + "type": "integer", + "x-order": 816 + } }, + "title": "arrival", + "type": "object", + "x-graphql-type": "StopTimeEvent", + "x-order": 817 + }, + "arrival_time": { + "description": "GTFS stop_times.arrival_time", + "example": "15:21:04", + "format": "hms", + "title": "arrival_time", + "type": "string", + "x-order": 787 + }, + "continuous_drop_off": { + "description": "GTFS stop_times.continuous_drop_off", + "nullable": true, + "title": "continuous_drop_off", + "type": "integer", + "x-order": 781 + }, + "continuous_pickup": { + "description": "GTFS stop_times.continuous_pickup", + "nullable": true, + "title": "continuous_pickup", + "type": "integer", + "x-order": 779 + }, + "date": { + "description": "If part of an arrival/departure query, the calendar date for this scheduled stop time", + "example": "2019-11-15", + "format": "date", + "nullable": true, + "title": "date", + "type": "string", + "x-order": 797 + }, + "departure": { + "description": "Detailed departure information, including GTFS-RT updates and estimates", "properties": { - "departure": { - "description": "Record from a static GTFS [stop_times.txt](https://gtfs.org/schedule/reference/#stop_timestxt) file.", - "externalDocs": { - "description": "stop_times.txt", - "url": "https://gtfs.org/schedule/reference/#stop_timestxt" - }, - "properties": { - "arrival": { - "description": "Detailed arrival information, including GTFS-RT updates and estimates", - "properties": { - "delay": { - "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "delay", - "type": "integer" - }, - "estimated": { - "description": "Estimated time in local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "estimated", - "type": "string" - }, - "estimated_delay": { - "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", - "nullable": true, - "title": "estimated_delay", - "type": "integer" - }, - "estimated_local": { - "description": "Estimated time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_local", - "type": "string" - }, - "estimated_utc": { - "description": "Estimated time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_utc", - "type": "string" - }, - "scheduled": { - "description": "Scheduled time local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "scheduled", - "type": "string" - }, - "scheduled_local": { - "description": "Sceduled time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_local", - "type": "string" - }, - "scheduled_utc": { - "description": "Scheduled time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_utc", - "type": "string" + "delay": { + "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "delay", + "type": "integer", + "x-order": 834 + }, + "estimated": { + "description": "Estimated time in local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "estimated", + "type": "string", + "x-order": 826 + }, + "estimated_delay": { + "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", + "nullable": true, + "title": "estimated_delay", + "type": "integer", + "x-order": 832 + }, + "estimated_local": { + "description": "Estimated time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_local", + "type": "string", + "x-order": 830 + }, + "estimated_utc": { + "description": "Estimated time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "estimated_utc", + "type": "string", + "x-order": 828 + }, + "scheduled": { + "description": "Scheduled time local time HH:MM:SS", + "example": "15:21:04", + "format": "hms", + "nullable": true, + "title": "scheduled", + "type": "string", + "x-order": 820 + }, + "scheduled_local": { + "description": "Sceduled time in the local time zone", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_local", + "type": "string", + "x-order": 824 + }, + "scheduled_utc": { + "description": "Scheduled time in UTC", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "scheduled_utc", + "type": "string", + "x-order": 822 + }, + "uncertainty": { + "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", + "nullable": true, + "title": "uncertainty", + "type": "integer", + "x-order": 836 + } + }, + "title": "departure", + "type": "object", + "x-graphql-type": "StopTimeEvent", + "x-order": 837 + }, + "departure_time": { + "description": "GTFS stop_times.departure_time", + "example": "15:21:04", + "format": "hms", + "title": "departure_time", + "type": "string", + "x-order": 789 + }, + "drop_off_type": { + "description": "GTFS stop_times.drop_off_type", + "nullable": true, + "title": "drop_off_type", + "type": "integer", + "x-order": 777 + }, + "interpolated": { + "description": "Set if this arrival/departure time was interpolated during import", + "nullable": true, + "title": "interpolated", + "type": "integer", + "x-order": 783 + }, + "pickup_type": { + "description": "GTFS stop_times.pickup_type", + "nullable": true, + "title": "pickup_type", + "type": "integer", + "x-order": 775 + }, + "schedule_relationship": { + "description": "A status flag for real-time information about this trip. \n \n If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED.", + "enum": [ + "SCHEDULED", + "ADDED", + "UNSCHEDULED", + "CANCELED", + "STATIC", + "SKIPPED", + "NO_DATA", + "REPLACEMENT", + "DUPLICATED", + "DELETED" + ], + "nullable": true, + "title": "schedule_relationship", + "type": "object", + "x-graphql-type": "ScheduleRelationship", + "x-order": 793 + }, + "service_date": { + "description": "If part of an arrival/departure query, the GTFS service date for this scheduled stop time", + "example": "2019-11-15", + "format": "date", + "nullable": true, + "title": "service_date", + "type": "string", + "x-order": 795 + }, + "shape_dist_traveled": { + "description": "GTFS stop_times.shape_dist_traveled", + "nullable": true, + "title": "shape_dist_traveled", + "type": "number", + "x-order": 791 + }, + "stop_headsign": { + "description": "GTFS stop_times.stop_headsign", + "nullable": true, + "title": "stop_headsign", + "type": "string", + "x-order": 771 + }, + "stop_sequence": { + "description": "GTFS stop_times.stop_sequence", + "title": "stop_sequence", + "type": "integer", + "x-order": 769 + }, + "timepoint": { + "description": "GTFS stop_times.timepoint", + "nullable": true, + "title": "timepoint", + "type": "integer", + "x-order": 773 + }, + "trip": { + "description": "Trip associated with this stop time", + "properties": { + "alerts": { + "description": "GTFS-RT alerts for this trip", + "items": { + "properties": { + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { + "properties": { + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 1054 + }, + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 1052 + } + }, + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 1055 }, - "uncertainty": { - "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "uncertainty", - "type": "integer" - } + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 1055 }, - "title": "arrival", - "type": "object", - "x-graphql-type": "StopTimeEvent" - }, - "arrival_time": { - "description": "GTFS stop_times.arrival_time", - "example": "15:21:04", - "format": "hms", - "title": "arrival_time", - "type": "string" - }, - "continuous_drop_off": { - "description": "GTFS stop_times.continuous_drop_off", - "nullable": true, - "title": "continuous_drop_off", - "type": "integer" - }, - "continuous_pickup": { - "description": "GTFS stop_times.continuous_pickup", - "nullable": true, - "title": "continuous_pickup", - "type": "integer" - }, - "date": { - "description": "If part of an arrival/departure query, the calendar date for this scheduled stop time", - "example": "2019-11-15", - "format": "date", - "nullable": true, - "title": "date", - "type": "string" - }, - "departure": { - "description": "Detailed departure information, including GTFS-RT updates and estimates", - "properties": { - "delay": { - "description": "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "delay", - "type": "integer" - }, - "estimated": { - "description": "Estimated time in local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "estimated", - "type": "string" - }, - "estimated_delay": { - "description": "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip", - "nullable": true, - "title": "estimated_delay", - "type": "integer" + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" }, - "estimated_local": { - "description": "Estimated time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_local", - "type": "string" + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 1015 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1034 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1036 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1037 }, - "estimated_utc": { - "description": "Estimated time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "estimated_utc", - "type": "string" + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1037 + }, + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" }, - "scheduled": { - "description": "Scheduled time local time HH:MM:SS", - "example": "15:21:04", - "format": "hms", - "nullable": true, - "title": "scheduled", - "type": "string" + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 1017 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1028 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1030 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1031 }, - "scheduled_local": { - "description": "Sceduled time in the local time zone", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_local", - "type": "string" + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1031 + }, + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 1019 + }, + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1046 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1048 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1049 }, - "scheduled_utc": { - "description": "Scheduled time in UTC", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "scheduled_utc", - "type": "string" + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1049 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1040 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1042 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1043 }, - "uncertainty": { - "description": "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent", - "nullable": true, - "title": "uncertainty", - "type": "integer" - } + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1043 }, - "title": "departure", - "type": "object", - "x-graphql-type": "StopTimeEvent" - }, - "departure_time": { - "description": "GTFS stop_times.departure_time", - "example": "15:21:04", - "format": "hms", - "title": "departure_time", - "type": "string" - }, - "drop_off_type": { - "description": "GTFS stop_times.drop_off_type", - "nullable": true, - "title": "drop_off_type", - "type": "integer" - }, - "interpolated": { - "description": "Set if this arrival/departure time was interpolated during import", - "nullable": true, - "title": "interpolated", - "type": "integer" - }, - "pickup_type": { - "description": "GTFS stop_times.pickup_type", - "nullable": true, - "title": "pickup_type", - "type": "integer" - }, - "schedule_relationship": { - "description": "GTFS-RT SceduleRelationship; set to STATIC if no associated GTFS-RT data", - "nullable": true, - "title": "schedule_relationship", - "type": "object", - "x-graphql-type": "ScheduleRelationship" - }, - "service_date": { - "description": "If part of an arrival/departure query, the GTFS service date for this scheduled stop time", - "example": "2019-11-15", - "format": "date", - "nullable": true, - "title": "service_date", - "type": "string" - }, - "shape_dist_traveled": { - "description": "GTFS stop_times.shape_dist_traveled", - "nullable": true, - "title": "shape_dist_traveled", - "type": "number" - }, - "stop_headsign": { - "description": "GTFS stop_times.stop_headsign", - "nullable": true, - "title": "stop_headsign", - "type": "string" + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 1022 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 1024 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 1025 + }, + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 1025 + } }, - "stop_sequence": { - "description": "GTFS stop_times.stop_sequence", - "title": "stop_sequence", - "type": "integer" + "type": "object", + "x-graphql-type": "Alert", + "x-order": 1056 + }, + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 1056 + }, + "bikes_allowed": { + "description": "GTFS trips.bikes_allowed", + "title": "bikes_allowed", + "type": "integer", + "x-order": 855 + }, + "block_id": { + "description": "GTFS trips.block_id", + "title": "block_id", + "type": "string", + "x-order": 851 + }, + "direction_id": { + "description": "GTFS trips.direction_id", + "title": "direction_id", + "type": "integer", + "x-order": 849 + }, + "frequencies": { + "description": "Frequencies for this trip", + "items": { + "properties": { + "end_time": { + "description": "GTFS frequencies.end_time", + "example": "15:21:04", + "format": "hms", + "title": "end_time", + "type": "string", + "x-order": 1006 + }, + "exact_times": { + "description": "GTFS frequencies.exact_times", + "title": "exact_times", + "type": "integer", + "x-order": 1010 + }, + "headway_secs": { + "description": "GTFS frequencies.headway_secs", + "title": "headway_secs", + "type": "integer", + "x-order": 1008 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 1002 + }, + "start_time": { + "description": "GTFS frequencies.start_time", + "example": "15:21:04", + "format": "hms", + "title": "start_time", + "type": "string", + "x-order": 1004 + } }, - "timepoint": { - "description": "GTFS stop_times.timepoint", - "nullable": true, - "title": "timepoint", - "type": "integer" - } + "type": "object", + "x-graphql-type": "Frequency", + "x-order": 1011 }, - "title": "departure", - "type": "object" + "title": "frequencies", + "type": "array", + "x-graphql-type": "Frequency", + "x-order": 1011 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 841 }, - "trip": { - "description": "Trip associated with this stop time", + "route": { + "description": "Route for this trip", "properties": { - "alerts": { - "description": "GTFS-RT alerts for this trip", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, + "agency": { + "description": "Agency associated with this route", + "properties": { + "agency_id": { + "description": "GTFS agency.agency_id", + "title": "agency_id", + "type": "string", + "x-order": 940 + }, + "agency_name": { + "description": "GTFS agency.agency_name", + "title": "agency_name", + "type": "string", + "x-order": 942 + }, + "alerts": { + "description": "GTFS-RT alerts for this agency", + "items": { "properties": { "active_period": { "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", @@ -9336,21 +10669,26 @@ "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", "nullable": true, "title": "end", - "type": "integer" + "type": "integer", + "x-order": 985 }, "start": { "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", "nullable": true, "title": "start", - "type": "integer" + "type": "integer", + "x-order": 983 } }, "type": "object", - "x-graphql-type": "RTTimeRange" + "x-graphql-type": "RTTimeRange", + "x-order": 986 }, "nullable": true, "title": "active_period", - "type": "array" + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 986 }, "cause": { "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", @@ -9360,7 +10698,8 @@ }, "nullable": true, "title": "cause", - "type": "string" + "type": "string", + "x-order": 946 }, "description_text": { "description": "GTFS-RT Alert description text", @@ -9370,19 +10709,24 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 965 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 967 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 968 }, "title": "description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 968 }, "effect": { "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", @@ -9392,7 +10736,8 @@ }, "nullable": true, "title": "effect", - "type": "string" + "type": "string", + "x-order": 948 }, "header_text": { "description": "GTFS-RT Alert header text", @@ -9402,25 +10747,31 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 959 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 961 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 962 }, "title": "header_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 962 }, "severity_level": { "description": "GTFS-RT Alert severity level", "nullable": true, "title": "severity_level", - "type": "string" + "type": "string", + "x-order": 950 }, "tts_description_text": { "description": "GTFS-RT Alert TTS description text", @@ -9430,20 +10781,25 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 977 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 979 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 980 }, "nullable": true, "title": "tts_description_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 980 }, "tts_header_text": { "description": "GTFS-RT Alert TTS header text", @@ -9453,20 +10809,25 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 971 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 973 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 974 }, "nullable": true, "title": "tts_header_text", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 974 }, "url": { "description": "GTFS-RT Alert uRL for more information", @@ -9476,907 +10837,578 @@ "description": "GTFS-RT TranslatedString language for this translation", "nullable": true, "title": "language", - "type": "string" + "type": "string", + "x-order": 953 }, "text": { "description": "GTFS-RT TranslatedString translated text", "title": "text", - "type": "string" + "type": "string", + "x-order": 955 } }, "type": "object", - "x-graphql-type": "RTTranslation" + "x-graphql-type": "RTTranslation", + "x-order": 956 }, "nullable": true, "title": "url", - "type": "array" + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 956 } }, - "title": "alert", - "type": "object" - } + "type": "object", + "x-graphql-type": "Alert", + "x-order": 987 + }, + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 987 }, - "type": "object", - "x-graphql-type": "Alert" + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 936 + }, + "onestop_id": { + "description": "OnestopID for this agency (or its associated operator)", + "title": "onestop_id", + "type": "string", + "x-order": 938 + } }, - "nullable": true, - "title": "alerts", - "type": "array" + "title": "agency", + "type": "object", + "x-graphql-type": "Agency", + "x-order": 988 }, - "frequencies": { - "description": "Frequencies for this trip", + "alerts": { + "description": "GTFS-RT alerts for this route", "items": { "properties": { - "end_time": { - "description": "GTFS frequencies.end_time", - "example": "15:21:04", - "format": "hms", - "title": "end_time", - "type": "string" - }, - "exact_times": { - "description": "GTFS frequencies.exact_times", - "title": "exact_times", - "type": "integer" - }, - "headway_secs": { - "description": "GTFS frequencies.headway_secs", - "title": "headway_secs", - "type": "integer" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "start_time": { - "description": "GTFS frequencies.start_time", - "example": "15:21:04", - "format": "hms", - "title": "start_time", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "Frequency" - }, - "title": "frequencies", - "type": "array" - }, - "route": { - "description": "Route for this trip", - "properties": { - "agency": { - "description": "Agency associated with this route", - "properties": { - "agency": { - "description": "Record from a static GTFS [agency.txt](https://gtfs.org/reference/static/#agencytxt)", - "externalDocs": { - "description": "agency.txt", - "url": "https://gtfs.org/reference/static/#agencytxt" - }, + "active_period": { + "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", + "items": { "properties": { - "agency_id": { - "description": "GTFS agency.agency_id", - "title": "agency_id", - "type": "string" - }, - "agency_name": { - "description": "GTFS agency.agency_name", - "title": "agency_name", - "type": "string" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" + "end": { + "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", + "nullable": true, + "title": "end", + "type": "integer", + "x-order": 930 }, - "onestop_id": { - "description": "OnestopID for this agency (or its associated operator)", - "title": "onestop_id", - "type": "string" + "start": { + "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", + "nullable": true, + "title": "start", + "type": "integer", + "x-order": 928 } }, - "title": "agency", - "type": "object" + "type": "object", + "x-graphql-type": "RTTimeRange", + "x-order": 931 }, - "alerts": { - "description": "GTFS-RT alerts for this agency", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } - }, - "title": "alert", - "type": "object" - } + "nullable": true, + "title": "active_period", + "type": "array", + "x-graphql-type": "RTTimeRange", + "x-order": 931 + }, + "cause": { + "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", + "externalDocs": { + "description": "cause", + "url": "https://gtfs.org/realtime/reference/#enum-cause" + }, + "nullable": true, + "title": "cause", + "type": "string", + "x-order": 891 + }, + "description_text": { + "description": "GTFS-RT Alert description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 910 }, - "type": "object", - "x-graphql-type": "Alert" + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 912 + } }, - "nullable": true, - "title": "alerts", - "type": "array" - } + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 913 + }, + "title": "description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 913 }, - "title": "agency", - "type": "object", - "x-graphql-type": "Agency" - }, - "alerts": { - "description": "GTFS-RT alerts for this route", - "items": { - "properties": { - "alert": { - "description": "[Alert](https://gtfs.org/reference/realtime/v2/#message-alert) message, also called a service alert, provided by a source GTFS Realtime feed.", - "externalDocs": { - "description": "Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "active_period": { - "description": "GTFS-RT Alert active alert period. See https://gtfs.org/realtime/reference/#message-timerange", - "items": { - "properties": { - "end": { - "description": "GTFS-RT TimeRange end time, in Unix epoch seconds", - "nullable": true, - "title": "end", - "type": "integer" - }, - "start": { - "description": "GTFS-RT TimeRange start time, in Unix epoch seconds", - "nullable": true, - "title": "start", - "type": "integer" - } - }, - "type": "object", - "x-graphql-type": "RTTimeRange" - }, - "nullable": true, - "title": "active_period", - "type": "array" - }, - "cause": { - "description": "GTFS-RT Alert [cause](https://gtfs.org/realtime/reference/#enum-cause)", - "externalDocs": { - "description": "cause", - "url": "https://gtfs.org/realtime/reference/#enum-cause" - }, - "nullable": true, - "title": "cause", - "type": "string" - }, - "description_text": { - "description": "GTFS-RT Alert description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "description_text", - "type": "array" - }, - "effect": { - "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", - "externalDocs": { - "description": "effect", - "url": "https://gtfs.org/realtime/reference/#enum-effect" - }, - "nullable": true, - "title": "effect", - "type": "string" - }, - "header_text": { - "description": "GTFS-RT Alert header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "title": "header_text", - "type": "array" - }, - "severity_level": { - "description": "GTFS-RT Alert severity level", - "nullable": true, - "title": "severity_level", - "type": "string" - }, - "tts_description_text": { - "description": "GTFS-RT Alert TTS description text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_description_text", - "type": "array" - }, - "tts_header_text": { - "description": "GTFS-RT Alert TTS header text", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "tts_header_text", - "type": "array" - }, - "url": { - "description": "GTFS-RT Alert uRL for more information", - "items": { - "properties": { - "language": { - "description": "GTFS-RT TranslatedString language for this translation", - "nullable": true, - "title": "language", - "type": "string" - }, - "text": { - "description": "GTFS-RT TranslatedString translated text", - "title": "text", - "type": "string" - } - }, - "type": "object", - "x-graphql-type": "RTTranslation" - }, - "nullable": true, - "title": "url", - "type": "array" - } + "effect": { + "description": "GTFS-RT Alert [effect](https://gtfs.org/realtime/reference/#enum-effect)", + "externalDocs": { + "description": "effect", + "url": "https://gtfs.org/realtime/reference/#enum-effect" + }, + "nullable": true, + "title": "effect", + "type": "string", + "x-order": 893 + }, + "header_text": { + "description": "GTFS-RT Alert header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 904 }, - "title": "alert", - "type": "object" - } + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 906 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 907 }, - "type": "object", - "x-graphql-type": "Alert" + "title": "header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 907 }, - "nullable": true, - "title": "alerts", - "type": "array" - }, - "route": { - "description": "Record from a static GTFS [routes.txt](https://gtfs.org/reference/static/#routestxt)", - "externalDocs": { - "description": "routes.txt", - "url": "https://gtfs.org/reference/static/#routestxt" + "severity_level": { + "description": "GTFS-RT Alert severity level", + "nullable": true, + "title": "severity_level", + "type": "string", + "x-order": 895 }, - "properties": { - "continuous_drop_off": { - "description": "GTFS routes.continuous_drop_off", - "nullable": true, - "title": "continuous_drop_off", - "type": "integer" - }, - "continuous_pickup": { - "description": "GTFS routes.continuous_pickup", - "nullable": true, - "title": "continuous_pickup", - "type": "integer" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this route", - "nullable": true, - "title": "onestop_id", - "type": "string" - }, - "route_color": { - "description": "GTFS routes.route_color", - "title": "route_color", - "type": "string" - }, - "route_desc": { - "description": "GTFS routes.route_desc", - "title": "route_desc", - "type": "string" - }, - "route_id": { - "description": "GTFS routes.route_id", - "title": "route_id", - "type": "string" - }, - "route_long_name": { - "description": "GTFS routes.route_long_name", - "title": "route_long_name", - "type": "string" - }, - "route_short_name": { - "description": "GTFS routes.route_short_name", - "title": "route_short_name", - "type": "string" - }, - "route_text_color": { - "description": "GTFS routes.route_text_color", - "title": "route_text_color", - "type": "string" + "tts_description_text": { + "description": "GTFS-RT Alert TTS description text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 922 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 924 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 925 }, - "route_type": { - "description": "GTFS routes.route_type", - "title": "route_type", - "type": "integer" + "nullable": true, + "title": "tts_description_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 925 + }, + "tts_header_text": { + "description": "GTFS-RT Alert TTS header text", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 916 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 918 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 919 }, - "route_url": { - "description": "GTFS routes.route_url", - "title": "route_url", - "type": "string" - } + "nullable": true, + "title": "tts_header_text", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 919 }, - "title": "route", - "type": "object" - } - }, - "title": "route", - "type": "object", - "x-graphql-type": "Route" - }, - "shape": { - "description": "Shape for this trip", - "nullable": true, - "properties": { - "generated": { - "description": "Was this geometry automatically generated from stop locations?", - "title": "generated", - "type": "boolean" - }, - "geometry": { - "description": "Geometry for this shape", - "title": "geometry" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "shape_id": { - "description": "GTFS shapes.shape_id", - "title": "shape_id", - "type": "string" - } - }, - "title": "shape", - "type": "object", - "x-graphql-type": "Shape" - }, - "trip": { - "description": "Record from a static GTFS (https://gtfs.org/reference/realtime/v2/#message-alert) messages.", - "externalDocs": { - "description": "trips.txt](https://gtfs.org/schedule/reference/#tripstxt) file optionally enriched with by GTFS Realtime [TripUpdate](https://gtfs.org/reference/realtime/v2/#message-tripupdate) and [Alert", - "url": "https://gtfs.org/reference/realtime/v2/#message-alert" - }, - "properties": { - "bikes_allowed": { - "description": "GTFS trips.bikes_allowed", - "title": "bikes_allowed", - "type": "integer" - }, - "block_id": { - "description": "GTFS trips.block_id", - "title": "block_id", - "type": "string" - }, - "direction_id": { - "description": "GTFS trips.direction_id", - "title": "direction_id", - "type": "integer" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "schedule_relationship": { - "description": "GTFS-RT ScheduleRelationship", - "nullable": true, - "title": "schedule_relationship", - "type": "object", - "x-graphql-type": "ScheduleRelationship" - }, - "stop_pattern_id": { - "description": "Calculated stop pattern ID; an integer scoped to the feed version", - "title": "stop_pattern_id", - "type": "integer" - }, - "timestamp": { - "description": "GTFS-RT TripUpdate timestamp", - "example": "2019-11-15T00:45:55.409906", - "format": "datetime", - "nullable": true, - "title": "timestamp", - "type": "string" - }, - "trip_headsign": { - "description": "GTFS trips.trip_headsign", - "title": "trip_headsign", - "type": "string" - }, - "trip_id": { - "description": "GTFS trips.trip_id", - "title": "trip_id", - "type": "string" - }, - "trip_short_name": { - "description": "GTFS trips.trip_short_name", - "title": "trip_short_name", - "type": "string" + "url": { + "description": "GTFS-RT Alert uRL for more information", + "items": { + "properties": { + "language": { + "description": "GTFS-RT TranslatedString language for this translation", + "nullable": true, + "title": "language", + "type": "string", + "x-order": 898 + }, + "text": { + "description": "GTFS-RT TranslatedString translated text", + "title": "text", + "type": "string", + "x-order": 900 + } + }, + "type": "object", + "x-graphql-type": "RTTranslation", + "x-order": 901 + }, + "nullable": true, + "title": "url", + "type": "array", + "x-graphql-type": "RTTranslation", + "x-order": 901 + } }, - "wheelchair_accessible": { - "description": "GTFS trips.wheelchair_accessible", - "title": "wheelchair_accessible", - "type": "integer" - } + "type": "object", + "x-graphql-type": "Alert", + "x-order": 932 }, - "title": "trip", - "type": "object" + "nullable": true, + "title": "alerts", + "type": "array", + "x-graphql-type": "Alert", + "x-order": 932 + }, + "continuous_drop_off": { + "description": "GTFS routes.continuous_drop_off", + "nullable": true, + "title": "continuous_drop_off", + "type": "integer", + "x-order": 885 + }, + "continuous_pickup": { + "description": "GTFS routes.continuous_pickup", + "nullable": true, + "title": "continuous_pickup", + "type": "integer", + "x-order": 887 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 865 + }, + "onestop_id": { + "description": "OnestopID for this route", + "nullable": true, + "title": "onestop_id", + "type": "string", + "x-order": 867 + }, + "route_color": { + "description": "GTFS routes.route_color", + "title": "route_color", + "type": "string", + "x-order": 875 + }, + "route_desc": { + "description": "GTFS routes.route_desc", + "title": "route_desc", + "type": "string", + "x-order": 877 + }, + "route_id": { + "description": "GTFS routes.route_id", + "title": "route_id", + "type": "string", + "x-order": 869 + }, + "route_long_name": { + "description": "GTFS routes.route_long_name", + "title": "route_long_name", + "type": "string", + "x-order": 873 + }, + "route_short_name": { + "description": "GTFS routes.route_short_name", + "title": "route_short_name", + "type": "string", + "x-order": 871 + }, + "route_text_color": { + "description": "GTFS routes.route_text_color", + "title": "route_text_color", + "type": "string", + "x-order": 879 + }, + "route_type": { + "description": "GTFS routes.route_type", + "title": "route_type", + "type": "integer", + "x-order": 881 + }, + "route_url": { + "description": "GTFS routes.route_url", + "title": "route_url", + "type": "string", + "x-order": 883 + } + }, + "title": "route", + "type": "object", + "x-graphql-type": "Route", + "x-order": 989 + }, + "schedule_relationship": { + "description": "A status flag for real-time information about this trip. \n \n If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED.", + "enum": [ + "SCHEDULED", + "ADDED", + "UNSCHEDULED", + "CANCELED", + "STATIC", + "SKIPPED", + "NO_DATA", + "REPLACEMENT", + "DUPLICATED", + "DELETED" + ], + "nullable": true, + "title": "schedule_relationship", + "type": "object", + "x-graphql-type": "ScheduleRelationship", + "x-order": 859 + }, + "shape": { + "description": "Shape for this trip", + "nullable": true, + "properties": { + "generated": { + "description": "Was this geometry automatically generated from stop locations?", + "title": "generated", + "type": "boolean", + "x-order": 998 + }, + "geometry": { + "description": "Geometry for this shape", + "title": "geometry", + "x-order": 996 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 992 + }, + "shape_id": { + "description": "GTFS shapes.shape_id", + "title": "shape_id", + "type": "string", + "x-order": 994 } }, - "title": "trip", + "title": "shape", "type": "object", - "x-graphql-type": "Trip" + "x-graphql-type": "Shape", + "x-order": 999 + }, + "stop_pattern_id": { + "description": "Calculated stop pattern ID; an integer scoped to the feed version", + "title": "stop_pattern_id", + "type": "integer", + "x-order": 857 + }, + "timestamp": { + "description": "GTFS-RT TripUpdate timestamp", + "example": "2019-11-15T00:45:55.409906", + "format": "datetime", + "nullable": true, + "title": "timestamp", + "type": "string", + "x-order": 861 + }, + "trip_headsign": { + "description": "GTFS trips.trip_headsign", + "title": "trip_headsign", + "type": "string", + "x-order": 845 + }, + "trip_id": { + "description": "GTFS trips.trip_id", + "title": "trip_id", + "type": "string", + "x-order": 843 + }, + "trip_short_name": { + "description": "GTFS trips.trip_short_name", + "title": "trip_short_name", + "type": "string", + "x-order": 847 + }, + "wheelchair_accessible": { + "description": "GTFS trips.wheelchair_accessible", + "title": "wheelchair_accessible", + "type": "integer", + "x-order": 853 } }, - "title": "departures", - "type": "object" + "title": "trip", + "type": "object", + "x-graphql-type": "Trip", + "x-order": 1057 } }, "type": "object", - "x-graphql-type": "StopTime" + "x-graphql-type": "StopTime", + "x-order": 1058 }, "title": "departures", - "type": "array" + "type": "array", + "x-graphql-type": "StopTime", + "x-order": 1058 }, - "stop": { - "description": "Record from a static GTFS [stops.txt](https://gtfs.org/reference/static/#stopstxt)", - "externalDocs": { - "description": "stops.txt", - "url": "https://gtfs.org/reference/static/#stopstxt" - }, - "properties": { - "geometry": { - "description": "Stop geometry", - "title": "geometry" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "location_type": { - "description": "GTFS stops.location_type", - "enum": [ - "0", - "1", - "2", - "3", - "4" - ], - "title": "location_type", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this stop, if available", - "example": "s-dr5ruvgnyk-madisonav~e69st", - "title": "onestop_id", - "type": "string" - }, - "platform_code": { - "description": "GTFS stops.platform_code", - "nullable": true, - "title": "platform_code", - "type": "string" - }, - "stop_code": { - "description": "GTFS stops.stop_code", - "title": "stop_code", - "type": "string" - }, - "stop_desc": { - "description": "GTFS stops.stop_desc", - "example": "NW Corner of Broadway and 14th", - "title": "stop_desc", - "type": "string" - }, - "stop_id": { - "description": "GTFS stops.stop_id", - "example": "400029", - "title": "stop_id", - "type": "string" - }, - "stop_name": { - "description": "GTFS stops.stop_name", - "example": "MADISON AV/E 68 ST", - "title": "stop_name", - "type": "string" - }, - "stop_timezone": { - "description": "GTFS stops.stop_timezone; if overriding agency/route timezone", - "example": "America/Los_Angeles", - "title": "stop_timezone", - "type": "string" - }, - "stop_url": { - "description": "GTFS stops.stop_url", - "title": "stop_url", - "type": "string" - }, - "tts_stop_name": { - "description": "GTFS stops.tts_stop_name", - "nullable": true, - "title": "tts_stop_name", - "type": "string" - }, - "wheelchair_boarding": { - "description": "GTFS stops.wheelchair_boarding", - "enum": [ - "0", - "1", - "2" - ], - "title": "wheelchair_boarding", - "type": "integer" - }, - "zone_id": { - "description": "GTFS stops.zone_id", - "title": "zone_id", - "type": "string" - } - }, - "title": "stop", - "type": "object" + "geometry": { + "description": "Stop geometry", + "title": "geometry", + "x-order": 755 + }, + "id": { + "description": "Internal integer ID", + "title": "id", + "type": "integer", + "x-order": 739 + }, + "location_type": { + "description": "GTFS stops.location_type", + "enum": [ + "0", + "1", + "2", + "3", + "4" + ], + "title": "location_type", + "type": "integer", + "x-order": 757 + }, + "onestop_id": { + "description": "OnestopID for this stop, if available", + "example": "s-dr5ruvgnyk-madisonav~e69st", + "title": "onestop_id", + "type": "string", + "x-order": 741 + }, + "platform_code": { + "description": "GTFS stops.platform_code", + "nullable": true, + "title": "platform_code", + "type": "string", + "x-order": 759 + }, + "stop_code": { + "description": "GTFS stops.stop_code", + "title": "stop_code", + "type": "string", + "x-order": 743 + }, + "stop_desc": { + "description": "GTFS stops.stop_desc", + "example": "NW Corner of Broadway and 14th", + "title": "stop_desc", + "type": "string", + "x-order": 745 + }, + "stop_id": { + "description": "GTFS stops.stop_id", + "example": "400029", + "title": "stop_id", + "type": "string", + "x-order": 747 + }, + "stop_name": { + "description": "GTFS stops.stop_name", + "example": "MADISON AV/E 68 ST", + "title": "stop_name", + "type": "string", + "x-order": 749 + }, + "stop_timezone": { + "description": "GTFS stops.stop_timezone; if overriding agency/route timezone", + "example": "America/Los_Angeles", + "title": "stop_timezone", + "type": "string", + "x-order": 751 + }, + "stop_url": { + "description": "GTFS stops.stop_url", + "title": "stop_url", + "type": "string", + "x-order": 753 + }, + "tts_stop_name": { + "description": "GTFS stops.tts_stop_name", + "nullable": true, + "title": "tts_stop_name", + "type": "string", + "x-order": 761 + }, + "wheelchair_boarding": { + "description": "GTFS stops.wheelchair_boarding", + "enum": [ + "0", + "1", + "2" + ], + "title": "wheelchair_boarding", + "type": "integer", + "x-order": 763 + }, + "zone_id": { + "description": "GTFS stops.zone_id", + "title": "zone_id", + "type": "string", + "x-order": 765 } }, "type": "object", - "x-graphql-type": "Stop" + "x-graphql-type": "Stop", + "x-order": 1104 }, "nullable": true, "title": "children", - "type": "array" + "type": "array", + "x-graphql-type": "Stop", + "x-order": 1104 }, - "stop": { - "description": "Record from a static GTFS [stops.txt](https://gtfs.org/reference/static/#stopstxt)", - "externalDocs": { - "description": "stops.txt", - "url": "https://gtfs.org/reference/static/#stopstxt" - }, - "properties": { - "geometry": { - "description": "Stop geometry", - "title": "geometry" - }, - "id": { - "description": "Internal integer ID", - "title": "id", - "type": "integer" - }, - "location_type": { - "description": "GTFS stops.location_type", - "enum": [ - "0", - "1", - "2", - "3", - "4" - ], - "title": "location_type", - "type": "integer" - }, - "onestop_id": { - "description": "OnestopID for this stop, if available", - "example": "s-dr5ruvgnyk-madisonav~e69st", - "title": "onestop_id", - "type": "string" - }, - "platform_code": { - "description": "GTFS stops.platform_code", - "nullable": true, - "title": "platform_code", - "type": "string" - }, - "stop_code": { - "description": "GTFS stops.stop_code", - "title": "stop_code", - "type": "string" - }, - "stop_desc": { - "description": "GTFS stops.stop_desc", - "example": "NW Corner of Broadway and 14th", - "title": "stop_desc", - "type": "string" - }, - "stop_id": { - "description": "GTFS stops.stop_id", - "example": "400029", - "title": "stop_id", - "type": "string" - }, - "stop_name": { - "description": "GTFS stops.stop_name", - "example": "MADISON AV/E 68 ST", - "title": "stop_name", - "type": "string" - }, - "stop_timezone": { - "description": "GTFS stops.stop_timezone; if overriding agency/route timezone", - "example": "America/Los_Angeles", - "title": "stop_timezone", - "type": "string" - }, - "stop_url": { - "description": "GTFS stops.stop_url", - "title": "stop_url", - "type": "string" - }, - "tts_stop_name": { - "description": "GTFS stops.tts_stop_name", - "nullable": true, - "title": "tts_stop_name", - "type": "string" - }, - "wheelchair_boarding": { - "description": "GTFS stops.wheelchair_boarding", - "enum": [ - "0", - "1", - "2" - ], - "title": "wheelchair_boarding", - "type": "integer" - }, - "zone_id": { - "description": "GTFS stops.zone_id", - "title": "zone_id", - "type": "string" - } - }, - "title": "stop", - "type": "object" - } - }, - "title": "parent", - "type": "object", - "x-graphql-type": "Stop" - }, - "stop": { - "description": "Record from a static GTFS [stops.txt](https://gtfs.org/reference/static/#stopstxt)", - "externalDocs": { - "description": "stops.txt", - "url": "https://gtfs.org/reference/static/#stopstxt" - }, - "properties": { "geometry": { "description": "Stop geometry", - "title": "geometry" + "title": "geometry", + "x-order": 725 }, "id": { "description": "Internal integer ID", "title": "id", - "type": "integer" + "type": "integer", + "x-order": 709 }, "location_type": { "description": "GTFS stops.location_type", @@ -10388,59 +11420,69 @@ "4" ], "title": "location_type", - "type": "integer" + "type": "integer", + "x-order": 727 }, "onestop_id": { "description": "OnestopID for this stop, if available", "example": "s-dr5ruvgnyk-madisonav~e69st", "title": "onestop_id", - "type": "string" + "type": "string", + "x-order": 711 }, "platform_code": { "description": "GTFS stops.platform_code", "nullable": true, "title": "platform_code", - "type": "string" + "type": "string", + "x-order": 729 }, "stop_code": { "description": "GTFS stops.stop_code", "title": "stop_code", - "type": "string" + "type": "string", + "x-order": 713 }, "stop_desc": { "description": "GTFS stops.stop_desc", "example": "NW Corner of Broadway and 14th", "title": "stop_desc", - "type": "string" + "type": "string", + "x-order": 715 }, "stop_id": { "description": "GTFS stops.stop_id", "example": "400029", "title": "stop_id", - "type": "string" + "type": "string", + "x-order": 717 }, "stop_name": { "description": "GTFS stops.stop_name", "example": "MADISON AV/E 68 ST", "title": "stop_name", - "type": "string" + "type": "string", + "x-order": 719 }, "stop_timezone": { "description": "GTFS stops.stop_timezone; if overriding agency/route timezone", "example": "America/Los_Angeles", "title": "stop_timezone", - "type": "string" + "type": "string", + "x-order": 721 }, "stop_url": { "description": "GTFS stops.stop_url", "title": "stop_url", - "type": "string" + "type": "string", + "x-order": 723 }, "tts_stop_name": { "description": "GTFS stops.tts_stop_name", "nullable": true, "title": "tts_stop_name", - "type": "string" + "type": "string", + "x-order": 731 }, "wheelchair_boarding": { "description": "GTFS stops.wheelchair_boarding", @@ -10450,23 +11492,101 @@ "2" ], "title": "wheelchair_boarding", - "type": "integer" + "type": "integer", + "x-order": 733 }, "zone_id": { "description": "GTFS stops.zone_id", "title": "zone_id", - "type": "string" + "type": "string", + "x-order": 735 } }, - "title": "stop", - "type": "object" + "title": "parent", + "type": "object", + "x-graphql-type": "Stop", + "x-order": 1150 + }, + "platform_code": { + "description": "GTFS stops.platform_code", + "nullable": true, + "title": "platform_code", + "type": "string", + "x-order": 23 + }, + "stop_code": { + "description": "GTFS stops.stop_code", + "title": "stop_code", + "type": "string", + "x-order": 7 + }, + "stop_desc": { + "description": "GTFS stops.stop_desc", + "example": "NW Corner of Broadway and 14th", + "title": "stop_desc", + "type": "string", + "x-order": 9 + }, + "stop_id": { + "description": "GTFS stops.stop_id", + "example": "400029", + "title": "stop_id", + "type": "string", + "x-order": 11 + }, + "stop_name": { + "description": "GTFS stops.stop_name", + "example": "MADISON AV/E 68 ST", + "title": "stop_name", + "type": "string", + "x-order": 13 + }, + "stop_timezone": { + "description": "GTFS stops.stop_timezone; if overriding agency/route timezone", + "example": "America/Los_Angeles", + "title": "stop_timezone", + "type": "string", + "x-order": 15 + }, + "stop_url": { + "description": "GTFS stops.stop_url", + "title": "stop_url", + "type": "string", + "x-order": 17 + }, + "tts_stop_name": { + "description": "GTFS stops.tts_stop_name", + "nullable": true, + "title": "tts_stop_name", + "type": "string", + "x-order": 25 + }, + "wheelchair_boarding": { + "description": "GTFS stops.wheelchair_boarding", + "enum": [ + "0", + "1", + "2" + ], + "title": "wheelchair_boarding", + "type": "integer", + "x-order": 27 + }, + "zone_id": { + "description": "GTFS stops.zone_id", + "title": "zone_id", + "type": "string", + "x-order": 29 } }, "type": "object", - "x-graphql-type": "Stop" + "x-graphql-type": "Stop", + "x-order": 1196 }, "title": "stops", - "type": "array" + "type": "array", + "x-graphql-type": "Stop", + "x-order": 1196 } }, "title": "data" @@ -10476,7 +11596,7 @@ "description": "ok" } }, - "summary": "Stop departures", + "summary": "Departures from a given stop based on static and real-time data", "x-alternates": [] } } diff --git a/go.mod b/go.mod index 63bdb11e..eb278e46 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/interline-io/transitland-server go 1.23.0 require ( - github.com/99designs/gqlgen v0.17.49 + github.com/99designs/gqlgen v0.17.55 github.com/Masterminds/squirrel v1.5.4 github.com/aws/aws-sdk-go v1.44.218 github.com/aws/aws-sdk-go-v2 v1.17.5 @@ -30,8 +30,8 @@ require ( github.com/tidwall/gjson v1.17.3 github.com/tidwall/rtree v1.10.0 github.com/twpayne/go-geom v1.5.1 - github.com/vektah/gqlparser/v2 v2.5.16 - google.golang.org/protobuf v1.34.1 + github.com/vektah/gqlparser/v2 v2.5.17 + google.golang.org/protobuf v1.34.2 ) require ( @@ -116,7 +116,7 @@ require ( golang.org/x/crypto v0.27.0 // indirect golang.org/x/image v0.10.0 // indirect golang.org/x/mod v0.20.0 // indirect - golang.org/x/net v0.28.0 // indirect + golang.org/x/net v0.29.0 // indirect golang.org/x/oauth2 v0.15.0 // indirect golang.org/x/sync v0.8.0 // indirect golang.org/x/sys v0.26.0 // indirect @@ -129,9 +129,11 @@ require ( gopkg.in/yaml.v3 v3.0.1 // indirect ) +// Fork to allow exporting x- extensions +replace github.com/getkin/kin-openapi => github.com/irees/kin-openapi v0.0.0-20240827112008-5f0d6c653b17 + // replace github.com/interline-io/transitland-lib => /Users/irees/src/interline-io/transitland-lib // replace github.com/interline-io/transitland-dbutil => /Users/irees/src/interline-io/transitland-dbutil // replace github.com/interline-io/transitland-mw => /Users/irees/src/interline-io/transitland-mw // replace github.com/interline-io/transitland-jobs => /Users/irees/src/interline-io/transitland-jobs // replace github.com/interline-io/log => /Users/irees/src/interline-io/log -// replace github.com/getkin/kin-openapi => /Users/irees/src/other/kin-openapi diff --git a/go.sum b/go.sum index cd51135f..6c16741e 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= -github.com/99designs/gqlgen v0.17.49 h1:b3hNGexHd33fBSAd4NDT/c3NCcQzcAVkknhN9ym36YQ= -github.com/99designs/gqlgen v0.17.49/go.mod h1:tC8YFVZMed81x7UJ7ORUwXF4Kn6SXuucFqQBhN8+BU0= +github.com/99designs/gqlgen v0.17.55 h1:3vzrNWYyzSZjGDFo68e5j9sSauLxfKvLp+6ioRokVtM= +github.com/99designs/gqlgen v0.17.55/go.mod h1:3Bq768f8hgVPGZxL8aY9MaYmbxa6llPM/qu1IGH1EJo= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1 h1:E+OJmp2tPvt1W+amx48v1eqbjDYsgN+RzP4q16yV5eM= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.11.1/go.mod h1:a6xsAQUZg+VsS3TJ05SRp524Hs4pZ/AeFSr5ENf0Yjo= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.6.0 h1:U2rTu3Ef+7w9FHKIAXM6ZyqF3UOWJZ12zIm8zECAFfg= @@ -101,8 +101,6 @@ github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8= github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/getkin/kin-openapi v0.127.0 h1:Mghqi3Dhryf3F8vR370nN67pAERW+3a95vomb3MAREY= -github.com/getkin/kin-openapi v0.127.0/go.mod h1:OZrfXzUfGrNbsKj+xmFBx6E5c6yH3At/tAKSc2UszXM= github.com/go-chi/chi/v5 v5.0.10 h1:rLz5avzKpjqxrYwXNfmjkrYYXOyLJd37pz53UFHC6vk= github.com/go-chi/chi/v5 v5.0.10/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/go-chi/cors v1.2.1 h1:xEC8UT3Rlp2QuWNEr4Fs/c2EAGVKBwy/1vHx3bppil4= @@ -164,6 +162,8 @@ github.com/interline-io/transitland-mw v0.0.0-20241007223948-3ff905d6e27e h1:XJm github.com/interline-io/transitland-mw v0.0.0-20241007223948-3ff905d6e27e/go.mod h1:3UNXaOzARo8gMTIKReRDGgYXmZ42JhVlS/XW1+q64kQ= github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso= github.com/invopop/yaml v0.3.1/go.mod h1:PMOp3nn4/12yEZUFfmOuNHJsZToEEOwoWsT+D81KkeA= +github.com/irees/kin-openapi v0.0.0-20240827112008-5f0d6c653b17 h1:8r3a8+gGbNCrB+sF5BhzOUU5N7vo7vbwz1MGmYoq5TI= +github.com/irees/kin-openapi v0.0.0-20240827112008-5f0d6c653b17/go.mod h1:OZrfXzUfGrNbsKj+xmFBx6E5c6yH3At/tAKSc2UszXM= github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo= @@ -287,8 +287,8 @@ github.com/ugorji/go/codec v1.2.7 h1:YPXUKf7fYbp/y8xloBqZOw2qaVggbfwMlI8WM3wZUJ0 github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= github.com/urfave/cli/v2 v2.27.4 h1:o1owoI+02Eb+K107p27wEX9Bb8eqIoZCfLXloLUSWJ8= github.com/urfave/cli/v2 v2.27.4/go.mod h1:m4QzxcD2qpra4z7WhzEGn74WZLViBnMpb1ToCAKdGRQ= -github.com/vektah/gqlparser/v2 v2.5.16 h1:1gcmLTvs3JLKXckwCwlUagVn/IlV2bwqle0vJ0vy5p8= -github.com/vektah/gqlparser/v2 v2.5.16/go.mod h1:1lz1OeCqgQbQepsGxPVywrjdBHW2T08PUS3pJqepRww= +github.com/vektah/gqlparser/v2 v2.5.17 h1:9At7WblLV7/36nulgekUgIaqHZWn5hxqluxrxGUhOmI= +github.com/vektah/gqlparser/v2 v2.5.17/go.mod h1:1lz1OeCqgQbQepsGxPVywrjdBHW2T08PUS3pJqepRww= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 h1:gEOO8jv9F4OT7lGCjxCBTO/36wtF6j2nSip77qHd4x4= github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1/go.mod h1:Ohn+xnUBiLI6FVj/9LpzZWtj1/D6lUovWYBkxHVV3aM= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -324,8 +324,8 @@ golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= -golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= +golang.org/x/net v0.29.0 h1:5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo= +golang.org/x/net v0.29.0/go.mod h1:gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0= golang.org/x/oauth2 v0.15.0 h1:s8pnnxNVzjWyrvYdFUQq5llS1PX2zhPXmccZv99h7uQ= golang.org/x/oauth2 v0.15.0/go.mod h1:q48ptWNTY5XWf+JNten23lcvHpLJ0ZSxF5ttTHKVCAM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -388,8 +388,8 @@ google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= -google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/internal/generated/gqlout/generated.go b/internal/generated/gqlout/generated.go index 9440fe52..c09bf76b 100644 --- a/internal/generated/gqlout/generated.go +++ b/internal/generated/gqlout/generated.go @@ -7866,7 +7866,10 @@ type Trip { frequencies(limit: Int): [Frequency!]! "GTFS-RT alerts for this trip" alerts(active: Boolean, limit: Int): [Alert!] - "GTFS-RT ScheduleRelationship" + """A status flag for real-time information about this trip. + + If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED. + """ schedule_relationship: ScheduleRelationship "GTFS-RT TripUpdate timestamp" timestamp: Time @@ -7964,7 +7967,10 @@ type StopTime { service_date: Date "If part of an arrival/departure query, the calendar date for this scheduled stop time" date: Date - "GTFS-RT SceduleRelationship; set to STATIC if no associated GTFS-RT data" + """A status flag for real-time information about this trip. + + If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED. + """ schedule_relationship: ScheduleRelationship } @@ -9154,1841 +9160,4440 @@ var parsedSchema = gqlparser.MustLoadSchema(sources...) func (ec *executionContext) field_Agency_alerts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *bool - if tmp, ok := rawArgs["active"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) - arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Agency_alerts_argsActive(ctx, rawArgs) + if err != nil { + return nil, err } args["active"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Agency_alerts_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg1 return args, nil } +func (ec *executionContext) field_Agency_alerts_argsActive( + ctx context.Context, + rawArgs map[string]interface{}, +) (*bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["active"] + if !ok { + var zeroVal *bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) + if tmp, ok := rawArgs["active"]; ok { + return ec.unmarshalOBoolean2ᚖbool(ctx, tmp) + } + + var zeroVal *bool + return zeroVal, nil +} + +func (ec *executionContext) field_Agency_alerts_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Agency_census_geographies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["layer"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("layer")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Agency_census_geographies_argsLayer(ctx, rawArgs) + if err != nil { + return nil, err } args["layer"] = arg0 - var arg1 *float64 - if tmp, ok := rawArgs["radius"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) - arg1, err = ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Agency_census_geographies_argsRadius(ctx, rawArgs) + if err != nil { + return nil, err } args["radius"] = arg1 - var arg2 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Agency_census_geographies_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg2 return args, nil } +func (ec *executionContext) field_Agency_census_geographies_argsLayer( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["layer"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("layer")) + if tmp, ok := rawArgs["layer"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Agency_census_geographies_argsRadius( + ctx context.Context, + rawArgs map[string]interface{}, +) (*float64, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["radius"] + if !ok { + var zeroVal *float64 + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) + if tmp, ok := rawArgs["radius"]; ok { + return ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) + } + + var zeroVal *float64 + return zeroVal, nil +} + +func (ec *executionContext) field_Agency_census_geographies_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Agency_places_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Agency_places_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.AgencyPlaceFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOAgencyPlaceFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐAgencyPlaceFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Agency_places_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Agency_places_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Agency_places_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.AgencyPlaceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.AgencyPlaceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOAgencyPlaceFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐAgencyPlaceFilter(ctx, tmp) + } + + var zeroVal *model.AgencyPlaceFilter + return zeroVal, nil +} func (ec *executionContext) field_Agency_routes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Agency_routes_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.RouteFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalORouteFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐRouteFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Agency_routes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Agency_routes_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Agency_routes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.RouteFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.RouteFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalORouteFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐRouteFilter(ctx, tmp) + } + + var zeroVal *model.RouteFilter + return zeroVal, nil +} func (ec *executionContext) field_Calendar_added_dates_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Calendar_added_dates_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Calendar_added_dates_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Calendar_removed_dates_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Calendar_removed_dates_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Calendar_removed_dates_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_CensusGeography_values_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 []string - if tmp, ok := rawArgs["table_names"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("table_names")) - arg0, err = ec.unmarshalNString2ᚕstringᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_CensusGeography_values_argsTableNames(ctx, rawArgs) + if err != nil { + return nil, err } args["table_names"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_CensusGeography_values_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg1 return args, nil } +func (ec *executionContext) field_CensusGeography_values_argsTableNames( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["table_names"] + if !ok { + var zeroVal []string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("table_names")) + if tmp, ok := rawArgs["table_names"]; ok { + return ec.unmarshalNString2ᚕstringᚄ(ctx, tmp) + } + + var zeroVal []string + return zeroVal, nil +} + +func (ec *executionContext) field_CensusGeography_values_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_FeedVersion_agencies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_FeedVersion_agencies_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.AgencyFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOAgencyFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐAgencyFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_FeedVersion_agencies_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_FeedVersion_agencies_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FeedVersion_agencies_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.AgencyFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.AgencyFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOAgencyFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐAgencyFilter(ctx, tmp) + } + + var zeroVal *model.AgencyFilter + return zeroVal, nil +} func (ec *executionContext) field_FeedVersion_feed_infos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_FeedVersion_feed_infos_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_FeedVersion_feed_infos_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_FeedVersion_files_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_FeedVersion_files_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_FeedVersion_files_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_FeedVersion_routes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_FeedVersion_routes_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.RouteFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalORouteFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐRouteFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_FeedVersion_routes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_FeedVersion_routes_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FeedVersion_routes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.RouteFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.RouteFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalORouteFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐRouteFilter(ctx, tmp) + } + + var zeroVal *model.RouteFilter + return zeroVal, nil +} func (ec *executionContext) field_FeedVersion_segments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_FeedVersion_segments_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_FeedVersion_segments_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } -func (ec *executionContext) field_FeedVersion_service_levels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } - } - args["limit"] = arg0 - var arg1 *model.FeedVersionServiceLevelFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOFeedVersionServiceLevelFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedVersionServiceLevelFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["where"] = arg1 - return args, nil + + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) field_FeedVersion_stops_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_FeedVersion_service_levels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_FeedVersion_service_levels_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.StopFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOStopFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_FeedVersion_service_levels_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_FeedVersion_service_levels_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } -func (ec *executionContext) field_FeedVersion_trips_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FeedVersion_service_levels_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.FeedVersionServiceLevelFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.FeedVersionServiceLevelFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFeedVersionServiceLevelFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedVersionServiceLevelFilter(ctx, tmp) + } + + var zeroVal *model.FeedVersionServiceLevelFilter + return zeroVal, nil +} + +func (ec *executionContext) field_FeedVersion_stops_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_FeedVersion_stops_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.TripFilter + arg1, err := ec.field_FeedVersion_stops_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg1 + return args, nil +} +func (ec *executionContext) field_FeedVersion_stops_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FeedVersion_stops_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.StopFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.StopFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOTripFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐTripFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOStopFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopFilter(ctx, tmp) + } + + var zeroVal *model.StopFilter + return zeroVal, nil +} + +func (ec *executionContext) field_FeedVersion_trips_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_FeedVersion_trips_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err + } + args["limit"] = arg0 + arg1, err := ec.field_FeedVersion_trips_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_FeedVersion_trips_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FeedVersion_trips_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.TripFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.TripFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTripFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐTripFilter(ctx, tmp) + } + + var zeroVal *model.TripFilter + return zeroVal, nil +} func (ec *executionContext) field_FeedVersion_validation_reports_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_FeedVersion_validation_reports_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.ValidationReportFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOValidationReportFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐValidationReportFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_FeedVersion_validation_reports_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_FeedVersion_validation_reports_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_FeedVersion_validation_reports_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.ValidationReportFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.ValidationReportFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOValidationReportFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐValidationReportFilter(ctx, tmp) + } + + var zeroVal *model.ValidationReportFilter + return zeroVal, nil +} func (ec *executionContext) field_Feed_feed_fetches_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Feed_feed_fetches_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.FeedFetchFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOFeedFetchFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedFetchFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Feed_feed_fetches_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Feed_feed_fetches_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Feed_feed_fetches_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.FeedFetchFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.FeedFetchFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFeedFetchFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedFetchFilter(ctx, tmp) + } + + var zeroVal *model.FeedFetchFilter + return zeroVal, nil +} func (ec *executionContext) field_Feed_feed_versions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Feed_feed_versions_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.FeedVersionFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOFeedVersionFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedVersionFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Feed_feed_versions_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Feed_feed_versions_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Feed_feed_versions_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.FeedVersionFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.FeedVersionFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFeedVersionFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedVersionFilter(ctx, tmp) + } + + var zeroVal *model.FeedVersionFilter + return zeroVal, nil +} func (ec *executionContext) field_Mutation_feed_version_delete_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 int - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNInt2int(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_feed_version_delete_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_feed_version_delete_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNInt2int(ctx, tmp) + } + + var zeroVal int + return zeroVal, nil +} func (ec *executionContext) field_Mutation_feed_version_fetch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *graphql.Upload - if tmp, ok := rawArgs["file"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - arg0, err = ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_feed_version_fetch_argsFile(ctx, rawArgs) + if err != nil { + return nil, err } args["file"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["url"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_feed_version_fetch_argsURL(ctx, rawArgs) + if err != nil { + return nil, err } args["url"] = arg1 - var arg2 string - if tmp, ok := rawArgs["feed_onestop_id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) - arg2, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Mutation_feed_version_fetch_argsFeedOnestopID(ctx, rawArgs) + if err != nil { + return nil, err } args["feed_onestop_id"] = arg2 return args, nil } +func (ec *executionContext) field_Mutation_feed_version_fetch_argsFile( + ctx context.Context, + rawArgs map[string]interface{}, +) (*graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["file"] + if !ok { + var zeroVal *graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) + if tmp, ok := rawArgs["file"]; ok { + return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal *graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_feed_version_fetch_argsURL( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["url"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + if tmp, ok := rawArgs["url"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_feed_version_fetch_argsFeedOnestopID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["feed_onestop_id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("feed_onestop_id")) + if tmp, ok := rawArgs["feed_onestop_id"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Mutation_feed_version_import_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 int - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNInt2int(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_feed_version_import_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_feed_version_import_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNInt2int(ctx, tmp) + } + + var zeroVal int + return zeroVal, nil +} func (ec *executionContext) field_Mutation_feed_version_unimport_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 int - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNInt2int(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_feed_version_unimport_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_feed_version_unimport_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNInt2int(ctx, tmp) + } + + var zeroVal int + return zeroVal, nil +} func (ec *executionContext) field_Mutation_feed_version_update_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.FeedVersionSetInput - if tmp, ok := rawArgs["set"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) - arg0, err = ec.unmarshalNFeedVersionSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedVersionSetInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_feed_version_update_argsSet(ctx, rawArgs) + if err != nil { + return nil, err } args["set"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_feed_version_update_argsSet( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.FeedVersionSetInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["set"] + if !ok { + var zeroVal model.FeedVersionSetInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) + if tmp, ok := rawArgs["set"]; ok { + return ec.unmarshalNFeedVersionSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedVersionSetInput(ctx, tmp) + } + + var zeroVal model.FeedVersionSetInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_level_create_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.LevelSetInput - if tmp, ok := rawArgs["set"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) - arg0, err = ec.unmarshalNLevelSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLevelSetInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_level_create_argsSet(ctx, rawArgs) + if err != nil { + return nil, err } args["set"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_level_create_argsSet( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.LevelSetInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["set"] + if !ok { + var zeroVal model.LevelSetInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) + if tmp, ok := rawArgs["set"]; ok { + return ec.unmarshalNLevelSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLevelSetInput(ctx, tmp) + } + + var zeroVal model.LevelSetInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_level_delete_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 int - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNInt2int(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_level_delete_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_level_delete_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNInt2int(ctx, tmp) + } + + var zeroVal int + return zeroVal, nil +} func (ec *executionContext) field_Mutation_level_update_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.LevelSetInput - if tmp, ok := rawArgs["set"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) - arg0, err = ec.unmarshalNLevelSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLevelSetInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_level_update_argsSet(ctx, rawArgs) + if err != nil { + return nil, err } args["set"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_level_update_argsSet( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.LevelSetInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["set"] + if !ok { + var zeroVal model.LevelSetInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) + if tmp, ok := rawArgs["set"]; ok { + return ec.unmarshalNLevelSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐLevelSetInput(ctx, tmp) + } + + var zeroVal model.LevelSetInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_pathway_create_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.PathwaySetInput - if tmp, ok := rawArgs["set"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) - arg0, err = ec.unmarshalNPathwaySetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPathwaySetInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_pathway_create_argsSet(ctx, rawArgs) + if err != nil { + return nil, err } args["set"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_pathway_create_argsSet( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.PathwaySetInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["set"] + if !ok { + var zeroVal model.PathwaySetInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) + if tmp, ok := rawArgs["set"]; ok { + return ec.unmarshalNPathwaySetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPathwaySetInput(ctx, tmp) + } + + var zeroVal model.PathwaySetInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_pathway_delete_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 int - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNInt2int(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_pathway_delete_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_pathway_delete_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNInt2int(ctx, tmp) + } + + var zeroVal int + return zeroVal, nil +} func (ec *executionContext) field_Mutation_pathway_update_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.PathwaySetInput - if tmp, ok := rawArgs["set"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) - arg0, err = ec.unmarshalNPathwaySetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPathwaySetInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_pathway_update_argsSet(ctx, rawArgs) + if err != nil { + return nil, err } args["set"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_pathway_update_argsSet( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.PathwaySetInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["set"] + if !ok { + var zeroVal model.PathwaySetInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) + if tmp, ok := rawArgs["set"]; ok { + return ec.unmarshalNPathwaySetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPathwaySetInput(ctx, tmp) + } + + var zeroVal model.PathwaySetInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_stop_create_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.StopSetInput - if tmp, ok := rawArgs["set"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) - arg0, err = ec.unmarshalNStopSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopSetInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_stop_create_argsSet(ctx, rawArgs) + if err != nil { + return nil, err } args["set"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_stop_create_argsSet( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.StopSetInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["set"] + if !ok { + var zeroVal model.StopSetInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) + if tmp, ok := rawArgs["set"]; ok { + return ec.unmarshalNStopSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopSetInput(ctx, tmp) + } + + var zeroVal model.StopSetInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_stop_delete_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 int - if tmp, ok := rawArgs["id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - arg0, err = ec.unmarshalNInt2int(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_stop_delete_argsID(ctx, rawArgs) + if err != nil { + return nil, err } args["id"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_stop_delete_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNInt2int(ctx, tmp) + } + + var zeroVal int + return zeroVal, nil +} func (ec *executionContext) field_Mutation_stop_update_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.StopSetInput - if tmp, ok := rawArgs["set"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) - arg0, err = ec.unmarshalNStopSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopSetInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_stop_update_argsSet(ctx, rawArgs) + if err != nil { + return nil, err } args["set"] = arg0 return args, nil } +func (ec *executionContext) field_Mutation_stop_update_argsSet( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.StopSetInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["set"] + if !ok { + var zeroVal model.StopSetInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("set")) + if tmp, ok := rawArgs["set"]; ok { + return ec.unmarshalNStopSetInput2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopSetInput(ctx, tmp) + } + + var zeroVal model.StopSetInput + return zeroVal, nil +} func (ec *executionContext) field_Mutation_validate_gtfs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *graphql.Upload - if tmp, ok := rawArgs["file"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) - arg0, err = ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Mutation_validate_gtfs_argsFile(ctx, rawArgs) + if err != nil { + return nil, err } args["file"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["url"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Mutation_validate_gtfs_argsURL(ctx, rawArgs) + if err != nil { + return nil, err } args["url"] = arg1 - var arg2 []string - if tmp, ok := rawArgs["realtime_urls"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("realtime_urls")) - arg2, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Mutation_validate_gtfs_argsRealtimeUrls(ctx, rawArgs) + if err != nil { + return nil, err } args["realtime_urls"] = arg2 return args, nil } +func (ec *executionContext) field_Mutation_validate_gtfs_argsFile( + ctx context.Context, + rawArgs map[string]interface{}, +) (*graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["file"] + if !ok { + var zeroVal *graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("file")) + if tmp, ok := rawArgs["file"]; ok { + return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal *graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_validate_gtfs_argsURL( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["url"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("url")) + if tmp, ok := rawArgs["url"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_validate_gtfs_argsRealtimeUrls( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["realtime_urls"] + if !ok { + var zeroVal []string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("realtime_urls")) + if tmp, ok := rawArgs["realtime_urls"]; ok { + return ec.unmarshalOString2ᚕstringᚄ(ctx, tmp) + } + + var zeroVal []string + return zeroVal, nil +} func (ec *executionContext) field_Operator_feeds_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Operator_feeds_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.FeedFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOFeedFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Operator_feeds_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Operator_feeds_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Operator_feeds_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.FeedFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.FeedFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFeedFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedFilter(ctx, tmp) + } + + var zeroVal *model.FeedFilter + return zeroVal, nil +} func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["name"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) + if err != nil { + return nil, err } args["name"] = arg0 return args, nil } +func (ec *executionContext) field_Query___type_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} func (ec *executionContext) field_Query_agencies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_agencies_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_agencies_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg1 - var arg2 []int - if tmp, ok := rawArgs["ids"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) - arg2, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_agencies_argsIds(ctx, rawArgs) + if err != nil { + return nil, err } args["ids"] = arg2 - var arg3 *model.AgencyFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg3, err = ec.unmarshalOAgencyFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐAgencyFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg3, err := ec.field_Query_agencies_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg3 return args, nil } +func (ec *executionContext) field_Query_agencies_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_agencies_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_agencies_argsIds( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ids"] + if !ok { + var zeroVal []int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) + if tmp, ok := rawArgs["ids"]; ok { + return ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) + } + + var zeroVal []int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_agencies_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.AgencyFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.AgencyFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOAgencyFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐAgencyFilter(ctx, tmp) + } + + var zeroVal *model.AgencyFilter + return zeroVal, nil +} func (ec *executionContext) field_Query_bikes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_bikes_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.GbfsBikeRequest - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOGbfsBikeRequest2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐGbfsBikeRequest(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_bikes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Query_bikes_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_bikes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.GbfsBikeRequest, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.GbfsBikeRequest + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGbfsBikeRequest2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐGbfsBikeRequest(ctx, tmp) + } + + var zeroVal *model.GbfsBikeRequest + return zeroVal, nil +} func (ec *executionContext) field_Query_directions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 model.DirectionRequest - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg0, err = ec.unmarshalNDirectionRequest2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐDirectionRequest(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_directions_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg0 return args, nil } +func (ec *executionContext) field_Query_directions_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.DirectionRequest, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal model.DirectionRequest + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalNDirectionRequest2githubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐDirectionRequest(ctx, tmp) + } + + var zeroVal model.DirectionRequest + return zeroVal, nil +} func (ec *executionContext) field_Query_docks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_docks_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.GbfsDockRequest - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOGbfsDockRequest2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐGbfsDockRequest(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_docks_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Query_docks_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_docks_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.GbfsDockRequest, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.GbfsDockRequest + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGbfsDockRequest2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐGbfsDockRequest(ctx, tmp) + } + + var zeroVal *model.GbfsDockRequest + return zeroVal, nil +} func (ec *executionContext) field_Query_feed_versions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_feed_versions_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_feed_versions_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg1 - var arg2 []int - if tmp, ok := rawArgs["ids"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) - arg2, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_feed_versions_argsIds(ctx, rawArgs) + if err != nil { + return nil, err } args["ids"] = arg2 - var arg3 *model.FeedVersionFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg3, err = ec.unmarshalOFeedVersionFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedVersionFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg3, err := ec.field_Query_feed_versions_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg3 return args, nil } +func (ec *executionContext) field_Query_feed_versions_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } -func (ec *executionContext) field_Query_feeds_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["limit"] = arg0 - var arg1 *int + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_feed_versions_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["after"] = arg1 - var arg2 []int + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_feed_versions_argsIds( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ids"] + if !ok { + var zeroVal []int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) if tmp, ok := rawArgs["ids"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) - arg2, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) } - args["ids"] = arg2 - var arg3 *model.FeedFilter + + var zeroVal []int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_feed_versions_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.FeedVersionFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.FeedVersionFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg3, err = ec.unmarshalOFeedFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOFeedVersionFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedVersionFilter(ctx, tmp) + } + + var zeroVal *model.FeedVersionFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Query_feeds_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_feeds_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err + } + args["limit"] = arg0 + arg1, err := ec.field_Query_feeds_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg1 + arg2, err := ec.field_Query_feeds_argsIds(ctx, rawArgs) + if err != nil { + return nil, err + } + args["ids"] = arg2 + arg3, err := ec.field_Query_feeds_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg3 return args, nil } +func (ec *executionContext) field_Query_feeds_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_feeds_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_feeds_argsIds( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ids"] + if !ok { + var zeroVal []int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) + if tmp, ok := rawArgs["ids"]; ok { + return ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) + } + + var zeroVal []int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_feeds_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.FeedFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.FeedFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFeedFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐFeedFilter(ctx, tmp) + } + + var zeroVal *model.FeedFilter + return zeroVal, nil +} func (ec *executionContext) field_Query_operators_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_operators_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_operators_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg1 - var arg2 []int - if tmp, ok := rawArgs["ids"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) - arg2, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_operators_argsIds(ctx, rawArgs) + if err != nil { + return nil, err } args["ids"] = arg2 - var arg3 *model.OperatorFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg3, err = ec.unmarshalOOperatorFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐOperatorFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg3, err := ec.field_Query_operators_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg3 return args, nil } +func (ec *executionContext) field_Query_operators_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_operators_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_operators_argsIds( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ids"] + if !ok { + var zeroVal []int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) + if tmp, ok := rawArgs["ids"]; ok { + return ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) + } + + var zeroVal []int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_operators_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.OperatorFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.OperatorFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOperatorFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐOperatorFilter(ctx, tmp) + } + + var zeroVal *model.OperatorFilter + return zeroVal, nil +} func (ec *executionContext) field_Query_places_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_places_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_places_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg1 - var arg2 *model.PlaceAggregationLevel - if tmp, ok := rawArgs["level"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("level")) - arg2, err = ec.unmarshalOPlaceAggregationLevel2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPlaceAggregationLevel(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_places_argsLevel(ctx, rawArgs) + if err != nil { + return nil, err } args["level"] = arg2 - var arg3 *model.PlaceFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg3, err = ec.unmarshalOPlaceFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPlaceFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg3, err := ec.field_Query_places_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg3 return args, nil } +func (ec *executionContext) field_Query_places_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_places_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_places_argsLevel( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.PlaceAggregationLevel, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["level"] + if !ok { + var zeroVal *model.PlaceAggregationLevel + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("level")) + if tmp, ok := rawArgs["level"]; ok { + return ec.unmarshalOPlaceAggregationLevel2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPlaceAggregationLevel(ctx, tmp) + } + + var zeroVal *model.PlaceAggregationLevel + return zeroVal, nil +} + +func (ec *executionContext) field_Query_places_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.PlaceFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.PlaceFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOPlaceFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐPlaceFilter(ctx, tmp) + } + + var zeroVal *model.PlaceFilter + return zeroVal, nil +} func (ec *executionContext) field_Query_routes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_routes_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_routes_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg1 - var arg2 []int - if tmp, ok := rawArgs["ids"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) - arg2, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_routes_argsIds(ctx, rawArgs) + if err != nil { + return nil, err } args["ids"] = arg2 - var arg3 *model.RouteFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg3, err = ec.unmarshalORouteFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐRouteFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg3, err := ec.field_Query_routes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg3 return args, nil } +func (ec *executionContext) field_Query_routes_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_routes_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_routes_argsIds( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ids"] + if !ok { + var zeroVal []int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) + if tmp, ok := rawArgs["ids"]; ok { + return ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) + } + + var zeroVal []int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_routes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.RouteFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.RouteFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalORouteFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐRouteFilter(ctx, tmp) + } + + var zeroVal *model.RouteFilter + return zeroVal, nil +} func (ec *executionContext) field_Query_stops_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_stops_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_stops_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg1 - var arg2 []int - if tmp, ok := rawArgs["ids"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) - arg2, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_stops_argsIds(ctx, rawArgs) + if err != nil { + return nil, err } args["ids"] = arg2 - var arg3 *model.StopFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg3, err = ec.unmarshalOStopFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg3, err := ec.field_Query_stops_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg3 return args, nil } +func (ec *executionContext) field_Query_stops_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_stops_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_stops_argsIds( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ids"] + if !ok { + var zeroVal []int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) + if tmp, ok := rawArgs["ids"]; ok { + return ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) + } + + var zeroVal []int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_stops_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.StopFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.StopFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOStopFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopFilter(ctx, tmp) + } + + var zeroVal *model.StopFilter + return zeroVal, nil +} func (ec *executionContext) field_Query_trips_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Query_trips_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["after"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Query_trips_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } args["after"] = arg1 - var arg2 []int - if tmp, ok := rawArgs["ids"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) - arg2, err = ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Query_trips_argsIds(ctx, rawArgs) + if err != nil { + return nil, err } args["ids"] = arg2 - var arg3 *model.TripFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg3, err = ec.unmarshalOTripFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐTripFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg3, err := ec.field_Query_trips_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg3 return args, nil } +func (ec *executionContext) field_Query_trips_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_trips_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_trips_argsIds( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ids"] + if !ok { + var zeroVal []int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) + if tmp, ok := rawArgs["ids"]; ok { + return ec.unmarshalOInt2ᚕintᚄ(ctx, tmp) + } + + var zeroVal []int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_trips_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.TripFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.TripFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTripFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐTripFilter(ctx, tmp) + } + + var zeroVal *model.TripFilter + return zeroVal, nil +} func (ec *executionContext) field_RouteStopPattern_trips_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_RouteStopPattern_trips_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_RouteStopPattern_trips_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Route_alerts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *bool - if tmp, ok := rawArgs["active"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) - arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Route_alerts_argsActive(ctx, rawArgs) + if err != nil { + return nil, err } args["active"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Route_alerts_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg1 return args, nil } +func (ec *executionContext) field_Route_alerts_argsActive( + ctx context.Context, + rawArgs map[string]interface{}, +) (*bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["active"] + if !ok { + var zeroVal *bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) + if tmp, ok := rawArgs["active"]; ok { + return ec.unmarshalOBoolean2ᚖbool(ctx, tmp) + } + + var zeroVal *bool + return zeroVal, nil +} + +func (ec *executionContext) field_Route_alerts_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Route_census_geographies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["layer"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("layer")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Route_census_geographies_argsLayer(ctx, rawArgs) + if err != nil { + return nil, err } args["layer"] = arg0 - var arg1 *float64 - if tmp, ok := rawArgs["radius"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) - arg1, err = ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Route_census_geographies_argsRadius(ctx, rawArgs) + if err != nil { + return nil, err } args["radius"] = arg1 - var arg2 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Route_census_geographies_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg2 return args, nil } +func (ec *executionContext) field_Route_census_geographies_argsLayer( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["layer"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("layer")) + if tmp, ok := rawArgs["layer"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Route_census_geographies_argsRadius( + ctx context.Context, + rawArgs map[string]interface{}, +) (*float64, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["radius"] + if !ok { + var zeroVal *float64 + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) + if tmp, ok := rawArgs["radius"]; ok { + return ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) + } + + var zeroVal *float64 + return zeroVal, nil +} + +func (ec *executionContext) field_Route_census_geographies_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Route_geometries_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Route_geometries_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Route_geometries_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Route_headways_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Route_headways_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Route_headways_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Route_route_stop_buffer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *float64 - if tmp, ok := rawArgs["radius"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) - arg0, err = ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Route_route_stop_buffer_argsRadius(ctx, rawArgs) + if err != nil { + return nil, err } args["radius"] = arg0 return args, nil } +func (ec *executionContext) field_Route_route_stop_buffer_argsRadius( + ctx context.Context, + rawArgs map[string]interface{}, +) (*float64, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["radius"] + if !ok { + var zeroVal *float64 + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) + if tmp, ok := rawArgs["radius"]; ok { + return ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) + } + + var zeroVal *float64 + return zeroVal, nil +} func (ec *executionContext) field_Route_route_stops_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Route_route_stops_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Route_route_stops_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Route_segment_patterns_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int + arg0, err := ec.field_Route_segment_patterns_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err + } + args["limit"] = arg0 + arg1, err := ec.field_Route_segment_patterns_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg1 + return args, nil +} +func (ec *executionContext) field_Route_segment_patterns_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Route_segment_patterns_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.SegmentPatternFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.SegmentPatternFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOSegmentPatternFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐSegmentPatternFilter(ctx, tmp) + } + + var zeroVal *model.SegmentPatternFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Route_segments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Route_segments_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.SegmentPatternFilter + arg1, err := ec.field_Route_segments_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg1 + return args, nil +} +func (ec *executionContext) field_Route_segments_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Route_segments_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.SegmentFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.SegmentFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOSegmentPatternFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐSegmentPatternFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOSegmentFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐSegmentFilter(ctx, tmp) + } + + var zeroVal *model.SegmentFilter + return zeroVal, nil +} + +func (ec *executionContext) field_Route_stops_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Route_stops_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err + } + args["limit"] = arg0 + arg1, err := ec.field_Route_stops_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Route_stops_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } -func (ec *executionContext) field_Route_segments_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["limit"] = arg0 - var arg1 *model.SegmentFilter + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Route_stops_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.StopFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.StopFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOSegmentFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐSegmentFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOStopFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopFilter(ctx, tmp) } - args["where"] = arg1 - return args, nil + + var zeroVal *model.StopFilter + return zeroVal, nil } -func (ec *executionContext) field_Route_stops_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { +func (ec *executionContext) field_Route_trips_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Route_trips_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.StopFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOStopFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Route_trips_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Route_trips_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } -func (ec *executionContext) field_Route_trips_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["limit"] = arg0 - var arg1 *model.TripFilter + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Route_trips_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.TripFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.TripFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOTripFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐTripFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOTripFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐTripFilter(ctx, tmp) } - args["where"] = arg1 - return args, nil + + var zeroVal *model.TripFilter + return zeroVal, nil } func (ec *executionContext) field_Stop_alerts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *bool - if tmp, ok := rawArgs["active"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) - arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_alerts_argsActive(ctx, rawArgs) + if err != nil { + return nil, err } args["active"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Stop_alerts_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg1 return args, nil } +func (ec *executionContext) field_Stop_alerts_argsActive( + ctx context.Context, + rawArgs map[string]interface{}, +) (*bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["active"] + if !ok { + var zeroVal *bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) + if tmp, ok := rawArgs["active"]; ok { + return ec.unmarshalOBoolean2ᚖbool(ctx, tmp) + } + + var zeroVal *bool + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_alerts_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Stop_arrivals_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_arrivals_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.StopTimeFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOStopTimeFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopTimeFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Stop_arrivals_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Stop_arrivals_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_arrivals_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.StopTimeFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.StopTimeFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOStopTimeFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopTimeFilter(ctx, tmp) + } + + var zeroVal *model.StopTimeFilter + return zeroVal, nil +} func (ec *executionContext) field_Stop_census_geographies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 string - if tmp, ok := rawArgs["layer"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("layer")) - arg0, err = ec.unmarshalNString2string(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_census_geographies_argsLayer(ctx, rawArgs) + if err != nil { + return nil, err } args["layer"] = arg0 - var arg1 *float64 - if tmp, ok := rawArgs["radius"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) - arg1, err = ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Stop_census_geographies_argsRadius(ctx, rawArgs) + if err != nil { + return nil, err } args["radius"] = arg1 - var arg2 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg2, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Stop_census_geographies_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg2 return args, nil } +func (ec *executionContext) field_Stop_census_geographies_argsLayer( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["layer"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("layer")) + if tmp, ok := rawArgs["layer"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_census_geographies_argsRadius( + ctx context.Context, + rawArgs map[string]interface{}, +) (*float64, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["radius"] + if !ok { + var zeroVal *float64 + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) + if tmp, ok := rawArgs["radius"]; ok { + return ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) + } + + var zeroVal *float64 + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_census_geographies_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Stop_child_levels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_child_levels_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Stop_child_levels_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Stop_children_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_children_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Stop_children_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Stop_departures_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_departures_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.StopTimeFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOStopTimeFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopTimeFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Stop_departures_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Stop_departures_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_departures_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.StopTimeFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.StopTimeFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOStopTimeFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopTimeFilter(ctx, tmp) + } + + var zeroVal *model.StopTimeFilter + return zeroVal, nil +} func (ec *executionContext) field_Stop_directions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *model.WaypointInput - if tmp, ok := rawArgs["to"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("to")) - arg0, err = ec.unmarshalOWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_directions_argsTo(ctx, rawArgs) + if err != nil { + return nil, err } args["to"] = arg0 - var arg1 *model.WaypointInput - if tmp, ok := rawArgs["from"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("from")) - arg1, err = ec.unmarshalOWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Stop_directions_argsFrom(ctx, rawArgs) + if err != nil { + return nil, err } args["from"] = arg1 - var arg2 *model.StepMode - if tmp, ok := rawArgs["mode"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mode")) - arg2, err = ec.unmarshalOStepMode2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStepMode(ctx, tmp) - if err != nil { - return nil, err - } + arg2, err := ec.field_Stop_directions_argsMode(ctx, rawArgs) + if err != nil { + return nil, err } args["mode"] = arg2 - var arg3 *time.Time - if tmp, ok := rawArgs["depart_at"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("depart_at")) - arg3, err = ec.unmarshalOTime2ᚖtimeᚐTime(ctx, tmp) - if err != nil { - return nil, err - } + arg3, err := ec.field_Stop_directions_argsDepartAt(ctx, rawArgs) + if err != nil { + return nil, err } args["depart_at"] = arg3 return args, nil } +func (ec *executionContext) field_Stop_directions_argsTo( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.WaypointInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["to"] + if !ok { + var zeroVal *model.WaypointInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("to")) + if tmp, ok := rawArgs["to"]; ok { + return ec.unmarshalOWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, tmp) + } + + var zeroVal *model.WaypointInput + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_directions_argsFrom( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.WaypointInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["from"] + if !ok { + var zeroVal *model.WaypointInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("from")) + if tmp, ok := rawArgs["from"]; ok { + return ec.unmarshalOWaypointInput2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐWaypointInput(ctx, tmp) + } + + var zeroVal *model.WaypointInput + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_directions_argsMode( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.StepMode, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["mode"] + if !ok { + var zeroVal *model.StepMode + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("mode")) + if tmp, ok := rawArgs["mode"]; ok { + return ec.unmarshalOStepMode2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStepMode(ctx, tmp) + } + + var zeroVal *model.StepMode + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_directions_argsDepartAt( + ctx context.Context, + rawArgs map[string]interface{}, +) (*time.Time, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["depart_at"] + if !ok { + var zeroVal *time.Time + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("depart_at")) + if tmp, ok := rawArgs["depart_at"]; ok { + return ec.unmarshalOTime2ᚖtimeᚐTime(ctx, tmp) + } + + var zeroVal *time.Time + return zeroVal, nil +} func (ec *executionContext) field_Stop_nearby_stops_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_nearby_stops_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *float64 + arg1, err := ec.field_Stop_nearby_stops_argsRadius(ctx, rawArgs) + if err != nil { + return nil, err + } + args["radius"] = arg1 + return args, nil +} +func (ec *executionContext) field_Stop_nearby_stops_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_nearby_stops_argsRadius( + ctx context.Context, + rawArgs map[string]interface{}, +) (*float64, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["radius"] + if !ok { + var zeroVal *float64 + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) if tmp, ok := rawArgs["radius"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("radius")) - arg1, err = ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOFloat2ᚖfloat64(ctx, tmp) + } + + var zeroVal *float64 + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_observations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Stop_observations_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err + } + args["limit"] = arg0 + arg1, err := ec.field_Stop_observations_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } - args["radius"] = arg1 + args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Stop_observations_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } -func (ec *executionContext) field_Stop_observations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - var arg0 *int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - args["limit"] = arg0 - var arg1 *model.StopObservationFilter + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_observations_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.StopObservationFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.StopObservationFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOStopObservationFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopObservationFilter(ctx, tmp) - if err != nil { - return nil, err - } + return ec.unmarshalOStopObservationFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopObservationFilter(ctx, tmp) } - args["where"] = arg1 - return args, nil + + var zeroVal *model.StopObservationFilter + return zeroVal, nil } func (ec *executionContext) field_Stop_pathways_from_stop_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_pathways_from_stop_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Stop_pathways_from_stop_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Stop_pathways_to_stop_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_pathways_to_stop_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Stop_pathways_to_stop_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Stop_route_stops_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_route_stops_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Stop_route_stops_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Stop_stop_times_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Stop_stop_times_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.StopTimeFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOStopTimeFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopTimeFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Stop_stop_times_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Stop_stop_times_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Stop_stop_times_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.StopTimeFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.StopTimeFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOStopTimeFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐStopTimeFilter(ctx, tmp) + } + + var zeroVal *model.StopTimeFilter + return zeroVal, nil +} func (ec *executionContext) field_Trip_alerts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *bool - if tmp, ok := rawArgs["active"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) - arg0, err = ec.unmarshalOBoolean2ᚖbool(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Trip_alerts_argsActive(ctx, rawArgs) + if err != nil { + return nil, err } args["active"] = arg0 - var arg1 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg1, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Trip_alerts_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg1 return args, nil } +func (ec *executionContext) field_Trip_alerts_argsActive( + ctx context.Context, + rawArgs map[string]interface{}, +) (*bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["active"] + if !ok { + var zeroVal *bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("active")) + if tmp, ok := rawArgs["active"]; ok { + return ec.unmarshalOBoolean2ᚖbool(ctx, tmp) + } + + var zeroVal *bool + return zeroVal, nil +} + +func (ec *executionContext) field_Trip_alerts_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Trip_frequencies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Trip_frequencies_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_Trip_frequencies_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_Trip_stop_times_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_Trip_stop_times_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *model.TripStopTimeFilter - if tmp, ok := rawArgs["where"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - arg1, err = ec.unmarshalOTripStopTimeFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐTripStopTimeFilter(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_Trip_stop_times_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } args["where"] = arg1 return args, nil } +func (ec *executionContext) field_Trip_stop_times_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Trip_stop_times_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.TripStopTimeFilter, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.TripStopTimeFilter + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTripStopTimeFilter2ᚖgithubᚗcomᚋinterlineᚑioᚋtransitlandᚑserverᚋmodelᚐTripStopTimeFilter(ctx, tmp) + } + + var zeroVal *model.TripStopTimeFilter + return zeroVal, nil +} func (ec *executionContext) field_ValidationReportDetails_agencies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ValidationReportDetails_agencies_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_ValidationReportDetails_agencies_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_ValidationReportDetails_feed_infos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ValidationReportDetails_feed_infos_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_ValidationReportDetails_feed_infos_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_ValidationReportDetails_routes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ValidationReportDetails_routes_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_ValidationReportDetails_routes_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_ValidationReportDetails_service_levels_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ValidationReportDetails_service_levels_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 - var arg1 *string - if tmp, ok := rawArgs["route_id"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("route_id")) - arg1, err = ec.unmarshalOString2ᚖstring(ctx, tmp) - if err != nil { - return nil, err - } + arg1, err := ec.field_ValidationReportDetails_service_levels_argsRouteID(ctx, rawArgs) + if err != nil { + return nil, err } args["route_id"] = arg1 return args, nil } +func (ec *executionContext) field_ValidationReportDetails_service_levels_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_ValidationReportDetails_service_levels_argsRouteID( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["route_id"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("route_id")) + if tmp, ok := rawArgs["route_id"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} func (ec *executionContext) field_ValidationReportDetails_stops_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ValidationReportDetails_stops_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_ValidationReportDetails_stops_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_ValidationReportErrorGroup_errors_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ValidationReportErrorGroup_errors_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_ValidationReportErrorGroup_errors_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_ValidationReport_errors_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ValidationReport_errors_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_ValidationReport_errors_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field_ValidationReport_warnings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 *int - if tmp, ok := rawArgs["limit"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) - arg0, err = ec.unmarshalOInt2ᚖint(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field_ValidationReport_warnings_argsLimit(ctx, rawArgs) + if err != nil { + return nil, err } args["limit"] = arg0 return args, nil } +func (ec *executionContext) field_ValidationReport_warnings_argsLimit( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["limit"] + if !ok { + var zeroVal *int + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("limit")) + if tmp, ok := rawArgs["limit"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } + + var zeroVal *int + return zeroVal, nil +} func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field___Type_enumValues_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err } args["includeDeprecated"] = arg0 return args, nil } +func (ec *executionContext) field___Type_enumValues_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { var err error args := map[string]interface{}{} - var arg0 bool - if tmp, ok := rawArgs["includeDeprecated"]; ok { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) - arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp) - if err != nil { - return nil, err - } + arg0, err := ec.field___Type_fields_argsIncludeDeprecated(ctx, rawArgs) + if err != nil { + return nil, err } args["includeDeprecated"] = arg0 return args, nil } +func (ec *executionContext) field___Type_fields_argsIncludeDeprecated( + ctx context.Context, + rawArgs map[string]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated")) + if tmp, ok := rawArgs["includeDeprecated"]; ok { + return ec.unmarshalOBoolean2bool(ctx, tmp) + } + + var zeroVal bool + return zeroVal, nil +} // endregion ***************************** args.gotpl ***************************** diff --git a/schema/schema.graphqls b/schema/schema.graphqls index ce8c9c40..47bf594f 100644 --- a/schema/schema.graphqls +++ b/schema/schema.graphqls @@ -698,7 +698,10 @@ type Trip { frequencies(limit: Int): [Frequency!]! "GTFS-RT alerts for this trip" alerts(active: Boolean, limit: Int): [Alert!] - "GTFS-RT ScheduleRelationship" + """A status flag for real-time information about this trip. + + If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED. + """ schedule_relationship: ScheduleRelationship "GTFS-RT TripUpdate timestamp" timestamp: Time @@ -796,7 +799,10 @@ type StopTime { service_date: Date "If part of an arrival/departure query, the calendar date for this scheduled stop time" date: Date - "GTFS-RT SceduleRelationship; set to STATIC if no associated GTFS-RT data" + """A status flag for real-time information about this trip. + + If no real-time information is available, the value will be STATIC and the estimated arrival/departure times will be empty. A trip with real-time information available will be SCHEDULED; a canceled trip will be CANCELED, and an added trip that is not present in the static GTFS will be ADDED. + """ schedule_relationship: ScheduleRelationship } @@ -1152,7 +1158,11 @@ type StopTimeEvent { estimated_unix: Int "Estimated time in the local time zone" estimated_local: Time - "Estimated delay, based on a matching TripUpdate or previous StopTimeUpdate in this trip" + """ + Estimated schedule delay, in seconds, based on either a timestamp or overall trip delay. + + This value can be set directly from a matching GTFS-RT StopTimeUpdate timestamp or delay value or set via an estimated overall trip delay. The value is capped at +/- 86,400 seconds (24 hours). Values larger than that are are likely erroneous and will be set to null. + """ estimated_delay: Int "Estimated time in local time HH:MM:SS" estimated: Seconds @@ -1168,9 +1178,9 @@ type StopTimeEvent { time_utc: Time "Estimated time in Unix epoch seconds, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent" time_unix: Int - "Estimated delay, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent" + "Estimated schedule delay, in seconds. This value is set when there is a directly matching GTFS-RT StopTimeUpdate for this stop and passed through as-is. See GTFS Realtime documentation. See https://gtfs.org/realtime/reference/#message-stoptimeevent" delay: Int - "Estimated uncertainty, source directly from matching GTFS-RT StopTimeUpdate. See https://gtfs.org/realtime/reference/#message-stoptimeevent" + "Estimation uncertainty. This value is set when there is a directly matching GTFS-RT StopTimeUpdate for this stop and passed through as-is. See https://gtfs.org/realtime/reference/#message-stoptimeevent" uncertainty: Int } diff --git a/server/rest/agency_request.go b/server/rest/agency_request.go index 82c958eb..a54fe661 100644 --- a/server/rest/agency_request.go +++ b/server/rest/agency_request.go @@ -40,11 +40,10 @@ type AgencyRequest struct { func (r AgencyRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/agencies", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Agencies", - Description: `Search for agencies`, - Responses: queryToOAResponses(agencyQuery), + Get: RequestOperation{ + Query: agencyQuery, + Operation: &oa.Operation{ + Summary: `Search for agencies`, Extensions: map[string]any{ "x-alternates": []RequestAltPath{ {"GET", "/agencies.{format}", "Request agencies in specified format"}, @@ -181,11 +180,10 @@ type AgencyKeyRequest struct { func (r AgencyKeyRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/agencies/{agency_key}", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Agencies", - Description: ``, - Responses: queryToOAResponses(agencyQuery), + Get: RequestOperation{ + Query: agencyQuery, + Operation: &oa.Operation{ + Summary: "Agencies", Parameters: oa.Parameters{ &pref{Value: ¶m{ Name: "agency_key", diff --git a/server/rest/feed_request.go b/server/rest/feed_request.go index 2e37465d..ea0c7683 100644 --- a/server/rest/feed_request.go +++ b/server/rest/feed_request.go @@ -36,11 +36,10 @@ type FeedRequest struct { func (r FeedRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/feeds", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Feeds", - Description: `Search for feeds`, - Responses: queryToOAResponses(feedQuery), + Get: RequestOperation{ + Query: feedQuery, + Operation: &oa.Operation{ + Summary: `Search for feeds`, Extensions: map[string]any{ "x-alternates": []RequestAltPath{ {"GET", "/feeds.{format}", "Request feeds in specified format"}, @@ -60,14 +59,14 @@ func (r FeedRequest) RequestInfo() RequestInfo { In: "query", Description: `Type of data contained in this feed`, Schema: newSRVal("string", "", []any{"gtfs", "gtfs-rt", "gbfs", "mds"}), - Extensions: newExt("", "spec=gtfs", "/feeds?spec=gtfs"), + Extensions: newExt("", "spec=gtfs", "spec=gtfs"), }}, &pref{Value: ¶m{ Name: "fetch_error", In: "query", Description: `Search for feeds with or without a fetch error`, Schema: newSRVal("string", "", []any{"true", "false"}), - Extensions: newExt("", "fetch_error=true", "/feeds?fetch_error=true"), + Extensions: newExt("", "fetch_error=true", "fetch_error=true"), }}, &pref{Value: ¶m{ Name: "tag_key", @@ -81,7 +80,7 @@ func (r FeedRequest) RequestInfo() RequestInfo { In: "query", Description: `Search for feeds tagged with a given value. Must be combined with tag_key.`, Schema: newSRVal("string", "", nil), - Extensions: newExt("", "tag_key=unstable_url&tag_value=true", "/feeds?tag_key=unstable_url&tag_value=true"), + Extensions: newExt("", "tag_key=unstable_url&tag_value=true", "tag_key=unstable_url&tag_value=true"), }}, newPRef("idParam"), newPRef("afterParam"), @@ -183,3 +182,35 @@ func checkFeedSpecFilterValue(v string) string { } return v } + +//////////// + +// Currently this exists only for OpenAPI documentation +type FeedDownloadLatestFeedVersionRequest struct { +} + +func (r FeedDownloadLatestFeedVersionRequest) RequestInfo() RequestInfo { + return RequestInfo{ + Path: "/feeds/{feed_key}/download_latest_feed_version", + Description: `Download the latest feed version GTFS zip for this feed, if redistribution is allowd by the source feed's license`, + Get: RequestOperation{ + Operation: &oa.Operation{ + Summary: "Download latest feed version", + Parameters: oa.Parameters{ + &pref{Value: ¶m{ + Name: "feed_key", + In: "path", + Required: true, + Description: `Feed lookup key; can be an integer ID or Onestop ID value`, + Schema: newSRVal("string", "", nil), + }}, + }, + }, + }, + } +} + +// Query returns a GraphQL query string and variables. +func (r FeedDownloadLatestFeedVersionRequest) Query(ctx context.Context) (string, map[string]interface{}) { + return "", nil +} diff --git a/server/rest/feed_version_request.go b/server/rest/feed_version_request.go index 8fbe2ce1..be6da689 100644 --- a/server/rest/feed_version_request.go +++ b/server/rest/feed_version_request.go @@ -33,11 +33,10 @@ type FeedVersionRequest struct { func (r FeedVersionRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/feed_versions", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Feed Versions", - Description: `Search for feed versions`, - Responses: queryToOAResponses(feedVersionQuery), + Get: RequestOperation{ + Query: feedVersionQuery, + Operation: &oa.Operation{ + Summary: `Search for feed versions`, Extensions: map[string]any{ "x-alternates": []RequestAltPath{ {"GET", "/feed_versions.{format}", "Request feed versions in specified format"}, @@ -64,33 +63,33 @@ func (r FeedVersionRequest) RequestInfo() RequestInfo { In: "query", Description: `Feed version SHA1`, Schema: newSRVal("string", "", nil), - Extensions: newExt("", "sha1=e535eb2b3...", "/feed_versions?sha1=dd7aca4a8e4c90908fd3603c097fabee75fea907"), + Extensions: newExt("", "sha1=e535eb2b3...", "sha1=dd7aca4a8e4c90908fd3603c097fabee75fea907"), }}, &pref{Value: ¶m{ Name: "feed_onestop_id", In: "query", Description: `Feed OnestopID`, Schema: newSRVal("string", "", nil), - Extensions: newExt("", "feed_onestop_id=f-sf~bay~area~rg", "/feed_versions?feed_onestop_id=f-sf~bay~area~rg"), + Extensions: newExt("", "feed_onestop_id=f-sf~bay~area~rg", "feed_onestop_id=f-sf~bay~area~rg"), }}, &pref{Value: ¶m{ Name: "fetched_before", In: "query", Description: `Filter for feed versions fetched earlier than given date time in UTC`, Schema: newSRVal("string", "datetime", nil), - Extensions: newExt("", "fetched_before=2023-01-01T00:00:00Z", "/feed_versions?fetched_before=2023-01-01T00:00:00Z"), + Extensions: newExt("", "fetched_before=2023-01-01T00:00:00Z", "fetched_before=2023-01-01T00:00:00Z"), }}, &pref{Value: ¶m{ Name: "fetched_after", In: "query", Description: `Filter for feed versions fetched since given date time in UTC`, Schema: newSRVal("string", "datetime", nil), - Extensions: newExt("", "fetched_after=2023-01-01T00:00:00Z", "/feed_versions?fetched_after=2023-01-01T00:00:00Z"), + Extensions: newExt("", "fetched_after=2023-01-01T00:00:00Z", "fetched_after=2023-01-01T00:00:00Z"), }}, newPRef("idParam"), newPRef("afterParam"), - newPRefExt("limitParam", "", "limit=1", "/feed_versions?limit=1"), - newPRefExt("formatParam", "", "format=geojson", "/feed_versions?format=geojson"), + newPRefExt("limitParam", "", "limit=1", "limit=1"), + newPRefExt("formatParam", "", "format=geojson", "format=geojson"), newPRefExt("radiusParam", "Search for feed versions geographically; radius is in meters, requires lon and lat", "lon=-122.3&lat=37.8&radius=1000", ""), newPRef("lonParam"), newPRef("latParam"), @@ -158,3 +157,35 @@ func (r FeedVersionRequest) Query(ctx context.Context) (string, map[string]inter func (r FeedVersionRequest) ResponseKey() string { return "feed_versions" } + +/////////// + +// Currently this exists only for OpenAPI documentation +type FeedVersionDownloadRequest struct { +} + +func (r FeedVersionDownloadRequest) RequestInfo() RequestInfo { + return RequestInfo{ + Path: "/feed_versions/{feed_version_key}/download", + Description: `Download this feed version GTFS zip for this feed, if redistribution is allowd by the source feed's license. Available only using Transitland professional or enterprise plan API keys.`, + Get: RequestOperation{ + Operation: &oa.Operation{ + Summary: "Download feed version", + Parameters: oa.Parameters{ + &pref{Value: ¶m{ + Name: "feed_version_key", + In: "path", + Required: true, + Description: `Feed version lookup key; can be an integer ID or a SHA1 value`, + Schema: newSRVal("string", "", nil), + }}, + }, + }, + }, + } +} + +// Query returns a GraphQL query string and variables. +func (r FeedVersionDownloadRequest) Query(ctx context.Context) (string, map[string]interface{}) { + return "", nil +} diff --git a/server/rest/feed_version_request.gql b/server/rest/feed_version_request.gql index 4358ff37..9f6316f2 100644 --- a/server/rest/feed_version_request.gql +++ b/server/rest/feed_version_request.gql @@ -45,7 +45,6 @@ query($limit: Int, $ids: [Int!], $after: Int, $where: FeedVersionFilter) { in_progress success exception_log - # generated_count warning_count skip_entity_error_count skip_entity_filter_count diff --git a/server/rest/openapi.go b/server/rest/openapi.go index eed02ca6..0e42d963 100644 --- a/server/rest/openapi.go +++ b/server/rest/openapi.go @@ -8,14 +8,20 @@ type param = oa.Parameter type pref = oa.ParameterRef type RequestAltPath struct { - Method string `json:"method"` - Path string `json:"path"` - Description string `json:"description"` + Method string `json:"method"` + Path string `json:"path"` + Summary string `json:"summary"` } type RequestInfo struct { - Path string - PathItem *oa.PathItem + Path string + Description string + Get RequestOperation +} + +type RequestOperation struct { + Operation *oa.Operation + Query string } func newPRef(paramRef string) *oa.ParameterRef { diff --git a/server/rest/operator_request.go b/server/rest/operator_request.go index f990a7e5..64a867f1 100644 --- a/server/rest/operator_request.go +++ b/server/rest/operator_request.go @@ -37,11 +37,10 @@ type OperatorRequest struct { func (r OperatorRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/operators", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Operators", - Description: `Search for operators`, - Responses: queryToOAResponses(operatorQuery), + Get: RequestOperation{ + Query: operatorQuery, + Operation: &oa.Operation{ + Summary: `Search for operators`, Extensions: map[string]any{ "x-alternates": []RequestAltPath{ {"GET", "/operators.{format}", "Request operators in specified format"}, diff --git a/server/rest/route_request.go b/server/rest/route_request.go index 360b250f..7e76a573 100644 --- a/server/rest/route_request.go +++ b/server/rest/route_request.go @@ -41,11 +41,10 @@ type RouteRequest struct { func (r RouteRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/routes", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Routes", - Description: `Search for routes`, - Responses: queryToOAResponses(routeQuery), + Get: RequestOperation{ + Query: routeQuery, + Operation: &oa.Operation{ + Summary: `Search for routes`, Extensions: map[string]any{ "x-alternates": []RequestAltPath{ {"GET", "/routes.{format}", "Request routes in specified format"}, @@ -107,7 +106,7 @@ func (r RouteRequest) RequestInfo() RequestInfo { newPRefExt("limitParam", "", "limit=1", ""), newPRefExt("formatParam", "", "format=png", "?format=png&feed_onestop_id=f-dr5r7-nycdotsiferry"), newPRefExt("searchParam", "", "search=daly+city", "?search=daly+city"), - newPRefExt("onestopParam", "", "onestop_id=r-9q9j-l1", "/routes?onestop_id=r-9q9j-l1"), + newPRefExt("onestopParam", "", "onestop_id=r-9q9j-l1", "onestop_id=r-9q9j-l1"), newPRefExt("sha1Param", "", "feed_version_sha1=041ffeec...", "feed_version_sha1=041ffeec98316e560bc2b91960f7150ad329bd5f"), newPRefExt("feedParam", "", "feed_onestop_id=f-sf~bay~area~rg", ""), newPRefExt("radiusParam", "Search for routes geographically, based on stops at this location; radius is in meters, requires lon and lat", "lon=-122&lat=37&radius=1000", "lon=-122.3&lat=37.8&radius=1000"), @@ -216,11 +215,10 @@ type RouteKeyRequest struct { func (r RouteKeyRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/routes/{route_key}", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Routes", - Description: `Search for routes`, - Responses: queryToOAResponses(routeQuery), + Get: RequestOperation{ + Query: routeQuery, + Operation: &oa.Operation{ + Summary: `Search for routes`, Parameters: oa.Parameters{ &pref{Value: ¶m{ Name: "route_key", @@ -239,35 +237,35 @@ func (r RouteKeyRequest) RequestInfo() RequestInfo { ////////// -type AgencyRouteRequest struct { - RouteRequest -} +// type AgencyRouteRequest struct { +// RouteRequest +// } -func (r AgencyRouteRequest) RequestInfo() RequestInfo { - // Include all base parameters except for agency_key - baseInfo := RouteRequest{}.RequestInfo() - var params oa.Parameters - params = append(params, &pref{Value: ¶m{ - Name: "agency_key", - In: "path", - Description: `Agency lookup key; can be an integer ID, a ':' key, or a Onestop ID`, - Schema: newSRVal("string", "", nil), - }}) - for _, param := range baseInfo.PathItem.Get.Parameters { - if param.Value != nil && param.Value.Name == "agency_key" { - continue - } - params = append(params, param) - } - return RequestInfo{ - Path: "/agencies/{agency_key}/routes", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Routes", - Description: `Search for routes`, - Responses: queryToOAResponses(routeQuery), - Parameters: params, - }, - }, - } -} +// func (r AgencyRouteRequest) RequestInfo() RequestInfo { +// // Include all base parameters except for agency_key +// baseInfo := RouteRequest{}.RequestInfo() +// var params oa.Parameters +// params = append(params, &pref{Value: ¶m{ +// Name: "agency_key", +// In: "path", +// Description: `Agency lookup key; can be an integer ID, a ':' key, or a Onestop ID`, +// Schema: newSRVal("string", "", nil), +// }}) +// for _, param := range baseInfo.PathItem.Get.Parameters { +// if param.Value != nil && param.Value.Name == "agency_key" { +// continue +// } +// params = append(params, param) +// } +// return RequestInfo{ +// Path: "/agencies/{agency_key}/routes", +// Get: RequestOperation{ +// Query: routeQuery, +// Operation: &oa.Operation{ +// Summary: "Routes", +// Description: `Search for routes`, +// Parameters: params, +// }, +// }, +// } +// } diff --git a/server/rest/stop_departure_request.go b/server/rest/stop_departure_request.go index 964dd5fb..332e8f39 100644 --- a/server/rest/stop_departure_request.go +++ b/server/rest/stop_departure_request.go @@ -34,11 +34,10 @@ type StopDepartureRequest struct { func (r StopDepartureRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/stops/{stop_key}/departures", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Stop departures", - Description: `Departures from a given stop based on static and real-time data`, - Responses: queryToOAResponses(stopDepartureQuery), + Get: RequestOperation{ + Query: stopDepartureQuery, + Operation: &oa.Operation{ + Summary: `Departures from a given stop based on static and real-time data`, Extensions: map[string]any{ "x-alternates": []RequestAltPath{}, }, diff --git a/server/rest/stop_departure_request.gql b/server/rest/stop_departure_request.gql index 6c8e0b9b..fd32c946 100644 --- a/server/rest/stop_departure_request.gql +++ b/server/rest/stop_departure_request.gql @@ -51,7 +51,7 @@ fragment trip on Trip { timestamp } -fragment departure on StopTime { +fragment departures on StopTime { stop_sequence stop_headsign timepoint @@ -89,10 +89,6 @@ fragment departure on StopTime { delay uncertainty } -} - -fragment departures on StopTime { - ...departure trip { ...trip route { diff --git a/server/rest/stop_request.go b/server/rest/stop_request.go index 8f6b6f68..27b3fce0 100644 --- a/server/rest/stop_request.go +++ b/server/rest/stop_request.go @@ -40,11 +40,10 @@ type StopRequest struct { func (r StopRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/stops", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Stops", - Description: `Search for stops`, - Responses: queryToOAResponses(stopQuery), + Get: RequestOperation{ + Query: stopQuery, + Operation: &oa.Operation{ + Summary: `Search for stops`, Extensions: map[string]any{ "x-alternates": []RequestAltPath{ {"GET", "/stops.{format}", "Request stops in specified format"}, @@ -187,11 +186,10 @@ type StopEntityRequest struct { func (r StopEntityRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/stops/{stop_key}", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Stops", - Description: `Search for stops`, - Responses: queryToOAResponses(stopQuery), + Get: RequestOperation{ + Query: stopQuery, + Operation: &oa.Operation{ + Summary: `Search for stops`, Parameters: oa.Parameters{ &pref{Value: ¶m{ Name: "stop_key", diff --git a/server/rest/stop_request.gql b/server/rest/stop_request.gql index 998e93cb..5dbcd02a 100644 --- a/server/rest/stop_request.gql +++ b/server/rest/stop_request.gql @@ -76,6 +76,7 @@ query ($limit: Int, $after: Int, $ids: [Int!], $include_alerts: Boolean!, $inclu alerts @include(if: $include_alerts) { ...alert } + # [hide:true] route_stops(limit: 1000) @include(if: $include_routes) { route { id diff --git a/server/rest/trip_request.go b/server/rest/trip_request.go index 6bddb2cf..a87f08b3 100644 --- a/server/rest/trip_request.go +++ b/server/rest/trip_request.go @@ -34,11 +34,10 @@ type TripRequest struct { func (r TripRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/routes/{route_key}/trips", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Trips", - Description: `Search for trips`, - Responses: queryToOAResponses(tripQuery), + Get: RequestOperation{ + Query: tripQuery, + Operation: &oa.Operation{ + Summary: `Search for trips`, Extensions: map[string]any{ "x-alternates": []RequestAltPath{ {"GET", "/routes/{route_key}/trips.{format}", "Request trips in specified format"}, @@ -186,11 +185,10 @@ type TripEntityRequest struct { func (r TripEntityRequest) RequestInfo() RequestInfo { return RequestInfo{ Path: "/routes/{route_key}/trips/{id}", - PathItem: &oa.PathItem{ - Get: &oa.Operation{ - Summary: "Trips", - Description: `Search for trips`, - Responses: queryToOAResponses(tripQuery), + Get: RequestOperation{ + Query: tripQuery, + Operation: &oa.Operation{ + Summary: `Search for trips`, Parameters: oa.Parameters{ &pref{Value: ¶m{ Name: "route_key",