{"components":{"responses":{},"schemas":{"AOM":{"additionalProperties":false,"description":"AOM object, as used in covered area and legal owners","properties":{"name":{"type":"string"},"siren":{"type":"string"},"type":{"enum":["aom"],"type":"string"}},"required":["name","siren","type"],"title":"AOM","type":"object"},"AOMResponse":{"additionalProperties":false,"description":"AOM object, as returned from AOMs endpoints","properties":{"departement":{"type":"string"},"forme_juridique":{"type":"string"},"insee_commune_principale":{"type":"string"},"nom":{"type":"string"},"siren":{"nullable":true,"type":"string"}},"required":["nom","departement","insee_commune_principale","siren","forme_juridique"],"title":"AOMResponse","type":"object"},"AdministrativeDivision":{"additionalProperties":false,"properties":{"insee":{"required":true,"type":"string"},"nom":{"required":true,"type":"string"},"type":{"enum":["commune","departement","epci","region","pays"],"required":true,"type":"string"}},"required":["type","insee","nom"],"title":"AdministrativeDivision","type":"object"},"Autocomplete result":{"additionalProperties":false,"description":"One result of the autocomplete","properties":{"name":{"description":"Name of the resource","type":"string"},"type":{"description":"Type of the resource","enum":["region","departement","epci","commune","feature","mode","offer","format","dataset"],"type":"string"},"url":{"description":"URL of the resource","type":"string"}},"required":["name","type","url"],"title":"Autocomplete result","type":"object"},"AutocompleteResponse":{"description":"An array of matching results","items":{"$ref":"#/components/schemas/Autocomplete result"},"title":"AutocompleteResponse","type":"array"},"CommunityResource":{"additionalProperties":false,"description":"A single community resource","properties":{"community_resource_publisher":{"description":"Name of the producer of the community resource","type":"string"},"datagouv_id":{"description":"Data gouv id of the resource","type":"string"},"features":{"description":"Features","items":{"type":"string"},"type":"array"},"filesize":{"description":"Size of the resource in bytes","type":"integer"},"format":{"description":"The format of the resource (GTFS, NeTEx, etc.)","type":"string"},"id":{"description":"transport.data.gouv.fr's ID","type":"integer"},"is_available":{"description":"Availability of the resource","type":"boolean"},"metadata":{"description":"Some metadata about the resource","type":"object"},"modes":{"description":"Types of transportation","items":{"type":"string"},"type":"array"},"original_resource_url":{"description":"Some community resources have been generated from another dataset (like the generated NeTEx / GeoJSON).\nThose resources have a `original_resource_url` equals to the original resource's `original_url`\n","type":"string"},"original_url":{"description":"Direct URL of the file","type":"string"},"page_url":{"description":"URL of the resource on transport.data.gouv.fr","type":"string"},"requestor_ref":{"description":"SIRI requestor_ref to use when querying this feed (SIRI resources only)","type":"string"},"schema_name":{"description":"Data schema followed by the resource","type":"string"},"schema_version":{"description":"Version of the data schema followed by the resource","type":"string"},"title":{"description":"Title of the resource","type":"string"},"type":{"description":"Category of the data","type":"string"},"updated":{"description":"Last update date-time","format":"date-time","type":"string"},"url":{"description":"Stable URL of the file","type":"string"}},"required":["id","type","format","title","url","updated","datagouv_id","is_available","community_resource_publisher","page_url","original_url"],"title":"CommunityResource","type":"object"},"Company":{"additionalProperties":false,"description":"Company object","properties":{"siren":{"type":"string"},"type":{"enum":["company"],"type":"string"}},"required":["siren","type"],"title":"Company","type":"object"},"CoveredArea":{"additionalProperties":false,"items":{"additionalProperties":false,"properties":{"insee":{"required":true,"type":"string"},"nom":{"required":true,"type":"string"},"type":{"enum":["commune","departement","epci","region","pays"],"required":true,"type":"string"}},"required":["type","insee","nom"],"title":"AdministrativeDivision","type":"object"},"title":"CoveredArea","type":"array"},"DatasetDetails":{"additionalProperties":false,"description":"A dataset is a composed of one or more resources (detailed version, including history & conversions).","properties":{"community_resources":{"description":"All the community resources (published by the community) associated with the dataset","items":{"$ref":"#/components/schemas/CommunityResource"},"type":"array"},"covered_area":{"additionalProperties":false,"items":{"additionalProperties":false,"properties":{"insee":{"required":true,"type":"string"},"nom":{"required":true,"type":"string"},"type":{"enum":["commune","departement","epci","region","pays"],"required":true,"type":"string"}},"required":["type","insee","nom"],"title":"AdministrativeDivision","type":"object"},"title":"CoveredArea","type":"array"},"created_at":{"description":"Date of creation of the dataset","format":"date","type":"string"},"datagouv_id":{"description":"Data gouv id for this dataset","type":"string"},"history":{"items":{"$ref":"#/components/schemas/ResourceHistory"},"type":"array"},"id":{"description":"Same as datagouv_id","type":"string"},"legal_owners":{"additionalProperties":false,"items":{"anyOf":[{"additionalProperties":false,"description":"AOM object, as used in covered area and legal owners","properties":{"name":{"type":"string"},"siren":{"type":"string"},"type":{"enum":["aom"],"type":"string"}},"required":["name","siren","type"],"title":"AOM","type":"object"},{"additionalProperties":false,"description":"Region object","properties":{"insee":{"type":"string"},"name":{"type":"string"},"type":{"enum":["region"],"type":"string"}},"required":["name","insee","type"],"title":"Region","type":"object"},{"additionalProperties":false,"description":"Company object","properties":{"siren":{"type":"string"},"type":{"enum":["company"],"type":"string"}},"required":["siren","type"],"title":"Company","type":"object"}]},"title":"LegalOwners","type":"array"},"licence":{"description":"The licence of the dataset","type":"string"},"offers":{"description":"Transport offers associated to the dataset","items":{"$ref":"#/components/schemas/Offer"},"type":"array"},"page_url":{"description":"transport.data.gouv.fr page for this dataset","type":"string"},"publisher":{"additionalProperties":false,"description":"Publisher","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"title":"Publisher","type":"object"},"resources":{"description":"All the resources associated with the dataset","items":{"anyOf":[{"$ref":"#/components/schemas/DetailedResource"},{"$ref":"#/components/schemas/CommunityResource"}]},"type":"array"},"slug":{"description":"unique dataset slug","type":"string"},"sub_types":{"items":{"type":"string"},"type":"array"},"tags":{"description":"Tags associated to the dataset, as set by the NAP team","items":{"type":"string"},"type":"array"},"title":{"type":"string"},"type":{"type":"string"},"updated":{"description":"The last update of any resource of that dataset (`null` if the dataset has no resources)","format":"date-time","nullable":true,"type":"string"}},"required":["id","type","title","history","tags","sub_types","resources","updated","slug","created_at","datagouv_id","licence","offers","community_resources","page_url","publisher","covered_area","legal_owners"],"title":"DatasetDetails","type":"object"},"DatasetSummary":{"additionalProperties":false,"description":"A dataset is a composed of one or more resources (summarized version)","properties":{"community_resources":{"description":"All the community resources (published by the community) associated with the dataset","items":{"$ref":"#/components/schemas/CommunityResource"},"type":"array"},"covered_area":{"additionalProperties":false,"items":{"additionalProperties":false,"properties":{"insee":{"required":true,"type":"string"},"nom":{"required":true,"type":"string"},"type":{"enum":["commune","departement","epci","region","pays"],"required":true,"type":"string"}},"required":["type","insee","nom"],"title":"AdministrativeDivision","type":"object"},"title":"CoveredArea","type":"array"},"created_at":{"description":"Date of creation of the dataset","format":"date","type":"string"},"datagouv_id":{"description":"Data gouv id for this dataset","type":"string"},"id":{"description":"Same as datagouv_id","type":"string"},"legal_owners":{"additionalProperties":false,"items":{"anyOf":[{"additionalProperties":false,"description":"AOM object, as used in covered area and legal owners","properties":{"name":{"type":"string"},"siren":{"type":"string"},"type":{"enum":["aom"],"type":"string"}},"required":["name","siren","type"],"title":"AOM","type":"object"},{"additionalProperties":false,"description":"Region object","properties":{"insee":{"type":"string"},"name":{"type":"string"},"type":{"enum":["region"],"type":"string"}},"required":["name","insee","type"],"title":"Region","type":"object"},{"additionalProperties":false,"description":"Company object","properties":{"siren":{"type":"string"},"type":{"enum":["company"],"type":"string"}},"required":["siren","type"],"title":"Company","type":"object"}]},"title":"LegalOwners","type":"array"},"licence":{"description":"The licence of the dataset","type":"string"},"offers":{"description":"Transport offers associated to the dataset","items":{"$ref":"#/components/schemas/Offer"},"type":"array"},"page_url":{"description":"transport.data.gouv.fr page for this dataset","type":"string"},"publisher":{"additionalProperties":false,"description":"Publisher","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"title":"Publisher","type":"object"},"resources":{"description":"All the resources associated with the dataset","items":{"anyOf":[{"$ref":"#/components/schemas/SummarizedResource"},{"$ref":"#/components/schemas/CommunityResource"}]},"type":"array"},"slug":{"description":"unique dataset slug","type":"string"},"sub_types":{"items":{"type":"string"},"type":"array"},"tags":{"description":"Tags associated to the dataset, as set by the NAP team","items":{"type":"string"},"type":"array"},"title":{"type":"string"},"type":{"type":"string"},"updated":{"description":"The last update of any resource of that dataset (`null` if the dataset has no resources)","format":"date-time","nullable":true,"type":"string"}},"required":["id","type","title","tags","sub_types","resources","updated","slug","created_at","datagouv_id","licence","offers","community_resources","page_url","publisher","covered_area","legal_owners"],"title":"DatasetSummary","type":"object"},"DatasetsResponse":{"items":{"additionalProperties":false,"description":"A dataset is a composed of one or more resources (summarized version)","properties":{"community_resources":{"description":"All the community resources (published by the community) associated with the dataset","items":{"$ref":"#/components/schemas/CommunityResource"},"type":"array"},"covered_area":{"additionalProperties":false,"items":{"additionalProperties":false,"properties":{"insee":{"required":true,"type":"string"},"nom":{"required":true,"type":"string"},"type":{"enum":["commune","departement","epci","region","pays"],"required":true,"type":"string"}},"required":["type","insee","nom"],"title":"AdministrativeDivision","type":"object"},"title":"CoveredArea","type":"array"},"created_at":{"description":"Date of creation of the dataset","format":"date","type":"string"},"datagouv_id":{"description":"Data gouv id for this dataset","type":"string"},"id":{"description":"Same as datagouv_id","type":"string"},"legal_owners":{"additionalProperties":false,"items":{"anyOf":[{"additionalProperties":false,"description":"AOM object, as used in covered area and legal owners","properties":{"name":{"type":"string"},"siren":{"type":"string"},"type":{"enum":["aom"],"type":"string"}},"required":["name","siren","type"],"title":"AOM","type":"object"},{"additionalProperties":false,"description":"Region object","properties":{"insee":{"type":"string"},"name":{"type":"string"},"type":{"enum":["region"],"type":"string"}},"required":["name","insee","type"],"title":"Region","type":"object"},{"additionalProperties":false,"description":"Company object","properties":{"siren":{"type":"string"},"type":{"enum":["company"],"type":"string"}},"required":["siren","type"],"title":"Company","type":"object"}]},"title":"LegalOwners","type":"array"},"licence":{"description":"The licence of the dataset","type":"string"},"offers":{"description":"Transport offers associated to the dataset","items":{"$ref":"#/components/schemas/Offer"},"type":"array"},"page_url":{"description":"transport.data.gouv.fr page for this dataset","type":"string"},"publisher":{"additionalProperties":false,"description":"Publisher","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"title":"Publisher","type":"object"},"resources":{"description":"All the resources associated with the dataset","items":{"anyOf":[{"$ref":"#/components/schemas/SummarizedResource"},{"$ref":"#/components/schemas/CommunityResource"}]},"type":"array"},"slug":{"description":"unique dataset slug","type":"string"},"sub_types":{"items":{"type":"string"},"type":"array"},"tags":{"description":"Tags associated to the dataset, as set by the NAP team","items":{"type":"string"},"type":"array"},"title":{"type":"string"},"type":{"type":"string"},"updated":{"description":"The last update of any resource of that dataset (`null` if the dataset has no resources)","format":"date-time","nullable":true,"type":"string"}},"required":["id","type","title","tags","sub_types","resources","updated","slug","created_at","datagouv_id","licence","offers","community_resources","page_url","publisher","covered_area","legal_owners"],"title":"DatasetSummary","type":"object"},"title":"DatasetsResponse","type":"array"},"DetailedResource":{"additionalProperties":false,"description":"A single resource (including conversions)","properties":{"conversions":{"description":"Available conversions of the resource in other formats","properties":{"GeoJSON":{"additionalProperties":false,"description":"Conversion to the GeoJSON format","properties":{"filesize":{"description":"File size in bytes","type":"integer"},"last_check_conversion_is_up_to_date":{"description":"Last datetime (UTC) it was checked the converted file is still up-to-date with the resource","format":"date-time","type":"string"},"stable_url":{"description":"The converted file stable download URL","type":"string"}},"required":["filesize","stable_url","last_check_conversion_is_up_to_date"],"type":"object"},"NeTEx":{"additionalProperties":false,"description":"Conversion to the NeTEx format","properties":{"filesize":{"description":"File size in bytes","type":"integer"},"last_check_conversion_is_up_to_date":{"description":"Last datetime (UTC) it was checked the converted file is still up-to-date with the resource","format":"date-time","type":"string"},"stable_url":{"description":"The converted file stable download URL","type":"string"}},"required":["filesize","stable_url","last_check_conversion_is_up_to_date"],"type":"object"}},"type":"object"},"datagouv_id":{"description":"Data gouv id of the resource","type":"string"},"features":{"description":"Features","items":{"type":"string"},"type":"array"},"filesize":{"description":"Size of the resource in bytes","type":"integer"},"format":{"description":"The format of the resource (GTFS, NeTEx, etc.)","type":"string"},"id":{"description":"transport.data.gouv.fr's ID","type":"integer"},"is_available":{"description":"Availability of the resource","type":"boolean"},"metadata":{"description":"Some metadata about the resource","type":"object"},"modes":{"description":"Types of transportation","items":{"type":"string"},"type":"array"},"original_url":{"description":"Direct URL of the file","type":"string"},"page_url":{"description":"URL of the resource on transport.data.gouv.fr","type":"string"},"requestor_ref":{"description":"SIRI requestor_ref to use when querying this feed (SIRI resources only)","type":"string"},"schema_name":{"description":"Data schema followed by the resource","type":"string"},"schema_version":{"description":"Version of the data schema followed by the resource","type":"string"},"title":{"description":"Title of the resource","type":"string"},"type":{"description":"Category of the data","type":"string"},"updated":{"description":"Last update date-time","format":"date-time","type":"string"},"url":{"description":"Stable URL of the file","type":"string"}},"required":["id","type","format","title","url","updated","conversions","datagouv_id","is_available","page_url","original_url"],"title":"DetailedResource","type":"object"},"ErrorJSONResponse":{"additionalProperties":false,"description":"Error Response in JSON","properties":{"error":{"type":"string"}},"title":"ErrorJSONResponse","type":"object"},"Feature":{"additionalProperties":false,"description":"Feature object","properties":{"geometry":{"$ref":"#/components/schemas/Geometry"},"properties":{"properties":{"id":{"oneOf":[{"type":"string"},{"type":"number"}]}},"type":"object"},"type":{"enum":["Feature"],"type":"string"}},"required":["type","geometry","properties"],"title":"Feature","type":"object"},"FeatureCollection":{"additionalProperties":false,"description":"FeatureCollection object","properties":{"features":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array"},"name":{"type":"string"},"type":{"enum":["FeatureCollection"],"required":true,"type":"string"}},"title":"FeatureCollection","type":"object"},"GeoJSONResponse":{"additionalProperties":false,"description":"Response in GeoJSON","oneOf":[{"additionalProperties":false,"description":"Geometry object","oneOf":[{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id3"},"title":"LineString","type":"object"},{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"items":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"},"type":"array"},"type":"array"}},"type":"object"}],"description":"GeoJSON geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id4"},"title":"Polygon","type":"object"},{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id5"},"title":"MultiPoint","type":"object"},{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id4"},"title":"MultiLineString","type":"object"},{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"items":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"},"type":"array"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id6"},"title":"MultiPolygon","type":"object"}],"title":"Geometry","type":"object"},{"additionalProperties":false,"description":"Feature object","properties":{"geometry":{"$ref":"#/components/schemas/Geometry"},"properties":{"properties":{"id":{"oneOf":[{"type":"string"},{"type":"number"}]}},"type":"object"},"type":{"enum":["Feature"],"type":"string"}},"required":["type","geometry","properties"],"title":"Feature","type":"object"},{"additionalProperties":false,"description":"FeatureCollection object","properties":{"features":{"items":{"$ref":"#/components/schemas/Feature"},"type":"array"},"name":{"type":"string"},"type":{"enum":["FeatureCollection"],"required":true,"type":"string"}},"title":"FeatureCollection","type":"object"}],"title":"GeoJSONResponse","type":"object"},"Geometry":{"additionalProperties":false,"description":"Geometry object","oneOf":[{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id3"},"title":"LineString","type":"object"},{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"items":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"},"type":"array"},"type":"array"}},"type":"object"}],"description":"GeoJSON geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id4"},"title":"Polygon","type":"object"},{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id5"},"title":"MultiPoint","type":"object"},{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id4"},"title":"MultiLineString","type":"object"},{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"items":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"},"type":"array"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id6"},"title":"MultiPolygon","type":"object"}],"title":"Geometry","type":"object"},"GeometryBase":{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},"LegalOwners":{"additionalProperties":false,"items":{"anyOf":[{"additionalProperties":false,"description":"AOM object, as used in covered area and legal owners","properties":{"name":{"type":"string"},"siren":{"type":"string"},"type":{"enum":["aom"],"type":"string"}},"required":["name","siren","type"],"title":"AOM","type":"object"},{"additionalProperties":false,"description":"Region object","properties":{"insee":{"type":"string"},"name":{"type":"string"},"type":{"enum":["region"],"type":"string"}},"required":["name","insee","type"],"title":"Region","type":"object"},{"additionalProperties":false,"description":"Company object","properties":{"siren":{"type":"string"},"type":{"enum":["company"],"type":"string"}},"required":["siren","type"],"title":"Company","type":"object"}]},"title":"LegalOwners","type":"array"},"LineString":{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id3"},"title":"LineString","type":"object"},"MultiLineString":{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id4"},"title":"MultiLineString","type":"object"},"MultiPoint":{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id5"},"title":"MultiPoint","type":"object"},"MultiPolygon":{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"items":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"},"type":"array"},"type":"array"}},"type":"object"}],"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id6"},"title":"MultiPolygon","type":"object"},"NumberItems":{"title":"NumberItems","type":"number"},"Offer":{"additionalProperties":false,"description":"A transport offer","properties":{"identifiant_offre":{"nullable":false,"type":"integer"},"nom_aom":{"nullable":false,"type":"string"},"nom_commercial":{"nullable":false,"type":"string"},"type_transport":{"nullable":false,"type":"string"}},"title":"Offer","type":"object"},"Point2D":{"description":"Point in 2D space","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id2"},"items":{"$ref":"#/components/schemas/NumberItems"},"maxItems":2,"minItems":2,"title":"Point2D","type":"array"},"Polygon":{"additionalProperties":false,"allOf":[{"additionalProperties":true,"description":"GeoJSon geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#geometry-objects"},"properties":{"type":{"enum":["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"],"type":"string"}},"required":["type"],"title":"GeometryBase","type":"object"},{"properties":{"coordinates":{"items":{"items":{"items":{"$ref":"#/components/schemas/Point2D"},"type":"array"},"type":"array"},"type":"array"}},"type":"object"}],"description":"GeoJSON geometry","externalDocs":{"url":"http://geojson.org/geojson-spec.html#id4"},"title":"Polygon","type":"object"},"Publisher":{"additionalProperties":false,"description":"Publisher","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"title":"Publisher","type":"object"},"Region":{"additionalProperties":false,"description":"Region object","properties":{"insee":{"type":"string"},"name":{"type":"string"},"type":{"enum":["region"],"type":"string"}},"required":["name","insee","type"],"title":"Region","type":"object"},"ResourceHistory":{"additionalProperties":false,"description":"A resource version","properties":{"inserted_at":{"format":"date-time","type":"string"},"last_up_to_date_at":{"format":"date-time","nullable":true,"type":"string"},"latest_schema_version_to_date":{"type":"string"},"payload":{"description":"Payload (loosely specified at the moment)","type":"object"},"permanent_url":{"type":"string"},"resource_id":{"nullable":true,"type":"integer"},"resource_latest_url":{"type":"string"},"resource_url":{"type":"string"},"schema_name":{"type":"string"},"schema_version":{"type":"string"},"title":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"uuid":{"type":"string"}},"required":["resource_id","payload","inserted_at","updated_at","last_up_to_date_at"],"title":"ResourceHistory","type":"object"},"SummarizedResource":{"additionalProperties":false,"description":"A single resource (summarized version)","properties":{"datagouv_id":{"description":"Data gouv id of the resource","type":"string"},"features":{"description":"Features","items":{"type":"string"},"type":"array"},"filesize":{"description":"Size of the resource in bytes","type":"integer"},"format":{"description":"The format of the resource (GTFS, NeTEx, etc.)","type":"string"},"id":{"description":"transport.data.gouv.fr's ID","type":"integer"},"is_available":{"description":"Availability of the resource","type":"boolean"},"metadata":{"description":"Some metadata about the resource","type":"object"},"modes":{"description":"Types of transportation","items":{"type":"string"},"type":"array"},"original_url":{"description":"Direct URL of the file","type":"string"},"page_url":{"description":"URL of the resource on transport.data.gouv.fr","type":"string"},"requestor_ref":{"description":"SIRI requestor_ref to use when querying this feed (SIRI resources only)","type":"string"},"schema_name":{"description":"Data schema followed by the resource","type":"string"},"schema_version":{"description":"Version of the data schema followed by the resource","type":"string"},"title":{"description":"Title of the resource","type":"string"},"type":{"description":"Category of the data","type":"string"},"updated":{"description":"Last update date-time","format":"date-time","type":"string"},"url":{"description":"Stable URL of the file","type":"string"}},"required":["id","type","format","title","url","updated","datagouv_id","is_available","page_url","original_url"],"title":"SummarizedResource","type":"object"}}},"info":{"contact":{"email":"contact@transport.data.gouv.fr","name":"API email support"},"description":"  Extra <a href=\"https://doc.transport.data.gouv.fr/outils/outils-disponibles-sur-le-pan/api\">documentation</a>.\n\n  The structure of the returned data is detailed at the bottom (see `Schemas`) and on each query (click on `Schema` near `Example Value`).\n\n  To create a query, add the domain `https://transport.data.gouv.fr` and the path (e.g. `/api/datasets`).\n\n  ## Authentication\n  Tokens can be used when using the API. The token should be included in the `Authorization` HTTP header.\n  If your token is `foo`, you should send HTTP requests with the header `Authorization: foo`.\n\n  You can manage your token settings from your [reuser space](https://transport.data.gouv.fr/espace_reutilisateur).\n","title":"transport.data.gouv.fr API","version":"1.0"},"openapi":"3.0.0","paths":{"/api/aoms":{"get":{"callbacks":{},"deprecated":false,"operationId":"API.AOMController.by_coordinates","parameters":[{"description":"Longitude","in":"query","name":"lon","required":false,"schema":{"type":"number"}},{"description":"Latitude","in":"query","name":"lat","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AOMResponse"}}},"description":"AOM"}},"summary":"Show first AOM containing a point with given coordinates","tags":["aom"]}},"/api/aoms/geojson":{"get":{"callbacks":{},"deprecated":false,"operationId":"API.AOMController.geojson_operation","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeoJSONResponse"}}},"description":"GeoJSON"}},"summary":"Show GeoJSON of all available AOMs (Autorités Organisatrices de la Mobilité)","tags":["aom"]}},"/api/aoms/{insee}":{"get":{"callbacks":{},"deprecated":false,"operationId":"API.AOMController.by_insee_operation","parameters":[{"description":"INSEE","in":"path","name":"insee","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AOMResponse"}}},"description":"AOM"}},"summary":"Search AOM by INSEE code","tags":["aom"]}},"/api/autocomplete":{"get":{"callbacks":{},"deprecated":false,"description":"Given a search input, return potentially corresponding results with the associated search URL","operationId":"API.DatasetController.datasets_autocomplete","parameters":[{"description":"query","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutocompleteResponse"}}},"description":"Dataset"}},"summary":"Autocomplete search for datasets","tags":["datasets"]}},"/api/datasets":{"get":{"callbacks":{},"deprecated":false,"description":"This call returns (in a single, non-paginated response) the list of all the\n                      datasets referenced on the site, along with their associated resources. The datasets\n                      and resources are here provided in summarized form (without history & conversions).\n                      You can call `/api/datasets/:id` for each dataset to get extra data (history & conversions)","operationId":"API.DatasetController.datasets","parameters":[{"description":"Your token secret from your [reuser space](https://transport.data.gouv.fr/espace_reutilisateur).","in":"header","name":"authorization","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetsResponse"}}},"description":"DatasetsResponse"}},"summary":"List all datasets (with their resources)","tags":["datasets"]}},"/api/datasets/{id}":{"get":{"callbacks":{},"deprecated":false,"description":"Returns the detailed version of a dataset, showing its resources, the resources history & conversions.","operationId":"API.DatasetController.datasets_by_id","parameters":[{"description":"datagouv id of the dataset you want to retrieve","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Your token secret from your [reuser space](https://transport.data.gouv.fr/espace_reutilisateur).","in":"header","name":"authorization","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetDetails"}}},"description":"DatasetDetails"}},"summary":"Return the details of a given dataset and its resources","tags":["datasets"]}},"/api/datasets/{id}/geojson":{"get":{"callbacks":{},"deprecated":false,"description":"For one dataset, show its associated GeoJSON.","operationId":"API.DatasetController.datasets_geojson_by_id","parameters":[{"description":"id","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeoJSONResponse"}}},"description":"Dataset"}},"summary":"Show given dataset GeoJSON","tags":["datasets"]}},"/api/gtfs-stops":{"get":{"callbacks":{},"deprecated":false,"description":"**This API point is experimental with no guarantee of stability or continuity, use at your own risk.**\n                      This call returns the GTFS stops from all the datasets of transport.data.gouv.fr as a GeoJSON FeatureCollection.\n                      found inside the provided bounding box, up to 20000 points (above that threshold, an error will be returned). The dataset ID is present in the answer amongst other data.\n                      This endpoint (with some slight differences) is used to power the map at https://transport.data.gouv.fr/explore/gtfs-stops.\n                      You can download a static version of the data at https://transport.data.gouv.fr/datasets/arrets-de-transport-en-france.","operationId":"API.GTFSStopsController.index","parameters":[{"description":"South (latitude)","in":"query","name":"south","required":false,"schema":{"type":"number"}},{"description":"North (latitude)","in":"query","name":"north","required":false,"schema":{"type":"number"}},{"description":"West (longitude)","in":"query","name":"west","required":false,"schema":{"type":"number"}},{"description":"East (longitude)","in":"query","name":"east","required":false,"schema":{"type":"number"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeoJSONResponse"}}},"description":"GeoJSON"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorJSONResponse"}}},"description":"ErrorJSON"}},"summary":"(experimental) Lists stops from all GTFS files of transport.data.gouv.fr found inside a bounding box.","tags":["gtfs"]}},"/api/stats":{"get":{"callbacks":{},"deprecated":false,"description":"Show covered french administrative regions","operationId":"API.StatsController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeoJSONResponse"}}},"description":"GeoJSON"}},"summary":"Show regions","tags":["stats"]}},"/api/stats/quality":{"get":{"callbacks":{},"deprecated":false,"description":"Show data quality stats","operationId":"API.StatsController.quality","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeoJSONResponse"}}},"description":"GeoJSON"}},"summary":"Show data quality stats","tags":["stats"]}},"/api/stats/vehicles-sharing":{"get":{"callbacks":{},"deprecated":false,"description":"Show vehicles sharing stats","operationId":"API.StatsController.vehicles_sharing","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeoJSONResponse"}}},"description":"GeoJSON"}},"summary":"Show vehicles sharing stats","tags":["stats"]}}},"security":[],"servers":[],"tags":[]}