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.
Välkommen till Trafiklab:s kund- och supportforum! Ställ frågor, rapportera problem och hjälp oss med förslag och idéer!
Hi!
You can use SL Travel planner service http://reseplanerare.sl.se/bin/query.exe/sn
I hope it helps.
/Martin
when I open that link it just brings up a user interface for planning.
what I actually had in mind when I said service, I meant a Web service with apis similar to the listed services on your website (trafiklab)
The sl.se provides pdfs I'd the busses time tables, what I need is having them as a service that can be retrieved using some code or download a file with the parsable structure.
Am I missing something here?
Hi!
The SL Travel planner API you will find at Trafiklab.
http://www.trafiklab.se/api/sl-reseplanerare/
See the documentation for further examples how to use the API.
You need to register at Trafiklab and retrieve a API key for SL Reseplanerare.
The key is used to call the API and retrieve data from SL. Read the documentation and you will get a feeling how to use the API in conjunction with your code.
/Martin
Hi again,
Sorry for the confusion. I don't think that service has anything to do with the tidtabeller of the buses.
There is no field or query example in your given link that accepts a bus number (ex. 73) and returns the time table.
As the name indicates, the link is for the planering not the schedule of the transport vehicles.
The first link I showed in my original post allows you to type a bus number and returns a pdf (ex: http://sl.se/ficktid/vinter/v73.pdf for bus 73)
You realize this is useless as it is only a pdf.
But thank you for trying to help.
Hi Aram, if you're only interested in timetables and routes for specific trips your best option is the GTFS data.
Hi Johan. Thank you for the comment.
I have tried that 3 months ago and that is not what I want.
But I can see that the feature of http://sampleservice/gettimetable/bus509 is missing from the services and there is no way around it. I hope to see that service implemented in the future.
Hi Aram,
As Johan N. wrote You earlier is the GTFS data the best information source Trafiklab have for what You are looking for.
Please, consult the documentation and see if it can help You.
Otherwise, I'm Sorry, You will have to look for source of information outside Trafiklab.
Best Luck!