apis-is / apis

Making data readily available to anyone interested
https://apis.is
MIT License
162 stars 64 forks source link

Bus System endpoint is down #356

Open tomkenmag opened 7 years ago

tomkenmag commented 7 years ago

The bus system endpoint has stopped working, the livemap url has been moved apparently. When I send a get request to the livemap url I get the 404 page.

Steps to reproduce

kristjanmik commented 7 years ago

Yeah, they introduced a new endpoint a while back. That one probably needs to be implemented instead of the one you mentioned.

MiniGod commented 7 years ago

For anyone interested in looking into this, here is the new endpoint:

https://app.straeto.is/pele/api/v1/positions/filter/1,2,3,4,5,6,11,12,13,14,15,16,17,18,21,22,23,24,26,27,28,29,31,33,34,35,43,44

I do not know if the data is in the same format as before.

tomkenmag commented 7 years ago

I kind of need this api so I'll look into it.

tomkenmag commented 7 years ago

I reimplemented this in fec9a27f796f7bcd12e75c5f6da1da79471bd8b8 but added all the bus routes in the country. I was wondering if there should be a neat way to get all the bus routes in only Reykjavik, such as adding /rvk or /ak for Akureyri.

Also, the new endpoint returns a different response so this might have been implemented a bit differently, maybe someone has an opininion on that?

tomkenmag commented 7 years ago

Also, if anyone has any information about other open Strætó APIs, such as bus stops and so on, please let me know.

kristjanmik commented 7 years ago

This should still be valid: http://old.straeto.is/um-straeto/utgefid-efni/rauntimaupplysingar/

MiniGod commented 7 years ago

I'll dump a few:

The timatoflur endpoint seems to be what you were looking for.

tomkenmag commented 7 years ago

One question, I just get 400 with the message Missing Headers: web-language, what the hell is web-language and what should I provide to get something meaningful back?

MiniGod commented 7 years ago

I don't know what that is. I just tried setting that header to en, and it replied...

curl -H "web-language: en" https://admin.straeto.is/api/timetables/timatoflur

stale[bot] commented 7 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

koddsson commented 6 years ago

We should probably fix this.

koddsson commented 6 years ago

The tests run fine for me now so we might be missing coverage here.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

koddsson commented 6 years ago

We're still working on getting the stale bot right. I've made changes so it won't mark bugs as stale.

GerdC commented 5 years ago

To make things easier:

The server behind behind https://otp.straeto.is/otp/routers/default/plan?fromPlace=64.1445471646293%2C-21.80623378245718&toPlace=64.09814246436902%2C-21.88766086745632&time=18%3A26&date=2017-02-28&mode=TRANSIT%2CWALK&maxWalkDistance=10000&arriveBy=false&wheelchair=false&showIntermediateStops=false&numItineraries=3&locale=is is an Open Trip Planner: https://www.opentripplanner.org

I implemented my app that consumes this endpoint using the documentation from Barcelona TMB: https://developer.tmb.cat The comments are mostly in Catalan, but the variable names and example data is english. i don't speak Catalan and this was suficient for me.

lindsaygelle commented 4 years ago

Hallo! Any luck on this issue 😸