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!
Hello Vincent,
Are You Vincent Gerris (there is three Vincent at Trafiklab)?
If yes, You have not created any new key to the new API, as far a I can see. Create a key in Your project to Resrobot - Reseplanerare API.
If You still have a problem, send me info to ake.jonsson@samtrafiken.se including your complete API call with key.
Best regards, Åke Jonsson
Hi Åke,
Thank you for the quick reply.
I am using another key at the moment.
After hours of fiddling I got it to work.
The problem seems to be that the API responds strange, doing something different from a curl request compared to the web browser (they don't work vice versa).
Example, this curl works:
curl -v -L "https://api.resrobot.se/trip?format=json&origin..."
where the exact same url in a webbrowser
and it did not half an hour ago (giving an error).
I just tried it and now it does.
It seems there were performance issues to, but now it seems to be back.
It would really help to have a working curl example for developers (feel free to use mine), because the python code I wrote earlier broke too.
Fortunately I had the use in a test project but I wanted to help out a friend with what I made and it is literally taking me half the day to fix this and I am not even done :).
Thank you for your time and quick response and
trevlig helg 😀
Greetings,
Vincent Gerris
Hello Vincent,
It sounds like Your problem been solved.
For Your information - Trafiklab informs of changes as API being closed down or other major changes via Newsletters that is distributed in good time (in additions to information tha we write on Trafiklabs site).
I don't Think we will add curl example as requested in addition to the the XML /JSON example calls.
Best regards, Åke