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

route_transportapi_public error #400

Open
BlaiseKelly opened this issue May 4, 2020 · 7 comments
Open

route_transportapi_public error #400

BlaiseKelly opened this issue May 4, 2020 · 7 comments

Comments

@BlaiseKelly
Copy link

Hello,

I am trying to use the function 'route_transportapi_public'

Usage <- route_transportapi_public(from = "Bristol",
                                     to = "Bath",
                                     silent = FALSE, 
                                     region = "southwest")

but it is returning the following error:

Error in curl::curl_fetch_memory(url, handle = handle) :
Could not resolve host: fcc.transportapi.com

Is something down?

@Robinlovelace
Copy link
Member

Is something down?

I believe so, things have changed since the function was first developed. My colleague Malcolm (cc @mem48 ) may be able to provide details/guidance.

@mem48
Copy link
Collaborator

mem48 commented May 4, 2020

The FCC seems to have been closed, you need to use an api key

@BlaiseKelly
Copy link
Author

Thanks both. Malcolm, I have an API key, but can't work out how to add to the function.

@BlaiseKelly
Copy link
Author

I note the ITS page was mentioned. Does this code work instead? https://github.com/ITSLeeds/transportAPI/blob/master/R/journey.R

@mem48
Copy link
Collaborator

mem48 commented May 8, 2020

I had a quick look at the code route_transportapi_public will no longer work as the server is closed. @Robinlovelace the function should be removed.

The transportAPI package should still work and gives option to use your API key I've stopped using TransportAPI in favor of opentripplanner so the package is underdeveloped. PR are welcome.

@Robinlovelace
Copy link
Member

Great. I will deprecate the function and close this issue when it has been removed.

@BlaiseKelly
Copy link
Author

BlaiseKelly commented May 9, 2020

Thanks so much for this. I hadn't heard of opentripplanner but it looks phenomenal!

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

No branches or pull requests

3 participants