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

Date parameter in vehicle GET request #210

Merged
merged 7 commits into from Jul 25, 2016
Merged

Date parameter in vehicle GET request #210

merged 7 commits into from Jul 25, 2016

Conversation

StanCallewaert
Copy link
Contributor

This is an example of the new kind of queries that are possible: https://api.irail.be/vehicle?id=BE.NMBS.IC2414&date=260716

@pietercolpaert
Copy link
Member

Just like #200, this PR also contains commits that do something very much different. Let's try to get #191 merged first!


$stops[$j]->occupancy->{'@id'} = $URI;
$stops[$j]->occupancy->name = basename($URI);
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't breaking out of a for lop not writing very ugly code? Looks like this should have been a while loop instead?

… query a vehicle for all the stops by just asking it for a certain date.
- Made sure queries for a vehicle on a certain date were available.
- Cleaned up some code.
@pietercolpaert pietercolpaert merged commit 65e58ca into iRail:development Jul 25, 2016
@pietercolpaert
Copy link
Member

Thanks Stan! Took a while but it seems our work is paying off!

toptaldev92 pushed a commit to toptaldev92/iRail that referenced this pull request Jul 29, 2021
- Made sure queries for a vehicle on a certain date were available.
- Cleaned up some code.
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

Successfully merging this pull request may close these issues.

None yet

2 participants