Välkommen till Trafiklab:s användare- och supportforum! Ställ frågor, rapportera problem och hjälp oss med förslag och idéer!
Vid felrapporter ber vi dig inkludera exakt API-namn och om möjligt ett exempelanrop för att underlätta felsökningen. Glöm inte att ta bort din API-nyckel när du delar ditt exempelanrop.
Undrar du hur du får tillgäng Trafiklabs data? Läs vår introduktion här: https://www.trafiklab.se/hur-gor-jag
Welcome to Trafiklab's user and supportforum. Ask questions, report issues and help us improve with suggestions and ideas!
If you open a new issue, please always include the exact API you're talking about, and, if applicable, include a sample request so we can check if contains the right parameters. Don't forget to remove your API keys when sharing example requests.
Do not use AI to write questions.
Välkommen till Trafiklab:s kund- och supportforum! Ställ frågor, rapportera problem och hjälp oss med förslag och idéer!
I'm not sure which GTFS feed you mean, as we have multiple, but I assume you are talking about the GTFS Regional feed.
Details on fetching those files can be found in the specification on our site: https://www.trafiklab.se/api/trafiklab-apis/gtfs-regional/static-spec/
The URL structure is https://opendata.samtrafiken.se/gtfs/{operator}/{operator}.zip , so for example https://opendata.samtrafiken.se/gtfs/dintur/dintur.zip .
Keys can be obtained through the developer portal at developer.trafiklab.se, see https://www.trafiklab.se/docs/using-trafiklab/getting-started/
Regards,
Bert
Do you also have an API for GTFS Sverige 2 or should I download that from https://data.samtrafiken.se/trafiklab/gtfs-sverige-2/ ?
Alex
GTFS Sverige 2 is another one of our APIs: https://www.trafiklab.se/api/trafiklab-apis/gtfs-sverige-2/
Regards,
Bert
Sorry if I'm being a bit thick, I can't figure out how to get the actual data from that page (https://www.trafiklab.se/api/trafiklab-apis/gtfs-sverige-2/) it says that the data exists but not where to find it. The page "GTFS Sverige 2 -> Static data" (https://www.trafiklab.se/api/trafiklab-apis/gtfs-sverige-2/static-data/) doesn't contain a link to the data either, but a description of what is required to fetch the data.
Alex
This is definitely our mistake, I noticed just now that the link isn't included on that page, while there is no specifications page either (for GTFS Regional the links were moved to a specifications page, but such a page does not exist for GTFS Sverige 2).
We will fix this as soon as possible, in the meanwhile you can find the GTFS files at https://api.resrobot.se/gtfs/sweden.zip?key=APIKEY , with historic GTFS data being available at https://data.samtrafiken.se/trafiklab/gtfs-sverige-2/2021/11/
Sorry for the inconvenience.
Regards,
Bert