Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bus System endpoint is down #356

Open
tomkenmag opened this issue Apr 3, 2017 · 16 comments
Open

Bus System endpoint is down #356

tomkenmag opened this issue Apr 3, 2017 · 16 comments

Comments

@tomkenmag
Copy link

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

  • npm test or
  • Goto http://apis.is/bus/realtime which returns
    {"error":"Something is wrong with the data provided from the data source"} or
  • curl -i https://straeto.is/bitar/bus/livemap/json.jsp
@kristjanmik
Copy link
Member

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

@MiniGod
Copy link
Member

MiniGod commented Apr 3, 2017

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
Copy link
Author

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

@tomkenmag
Copy link
Author

I reimplemented this in fec9a27 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
Copy link
Author

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

@kristjanmik
Copy link
Member

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

@tomkenmag
Copy link
Author

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
Copy link
Member

MiniGod commented Apr 6, 2017

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
Copy link

stale bot commented Oct 12, 2017

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.

@stale stale bot added the wontfix label Oct 12, 2017
@koddsson koddsson removed the wontfix label Oct 15, 2017
@koddsson
Copy link
Member

We should probably fix this.

@koddsson
Copy link
Member

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

@stale
Copy link

stale bot commented Dec 14, 2017

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.

@stale stale bot added the wontfix label Dec 14, 2017
@koddsson koddsson removed the wontfix label Dec 14, 2017
@koddsson
Copy link
Member

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

@GerdC
Copy link

GerdC commented Jul 19, 2019

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
Copy link

Hallo! Any luck on this issue 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants