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

More specific query functions #173

Open
laem opened this issue Oct 11, 2024 · 5 comments
Open

More specific query functions #173

laem opened this issue Oct 11, 2024 · 5 comments

Comments

@laem
Copy link
Contributor

laem commented Oct 11, 2024

Hi, I'm happy to showcase this kind of feature made possible by this library :)

Recording 2024-10-11 at 21 40 53

I also wonder if this kind of feature, that I call immediateStopTimes in my code, could have a place in node-GTFS ?

Or maybe in a list of projects using node-GTFS ?

@laem laem changed the title More specific functions More specific query functions Oct 11, 2024
@brendannee
Copy link
Member

Awesome - thanks for sharing.

Can you link to where this is live so I can check it out?

I like your idea to make it easier to get stop times for a specific date and time - I'll think on the best way to implement this.

@laem
Copy link
Contributor Author

laem commented Oct 13, 2024

Check out this link https://cartes-git-plans2-menoz.vercel.app/?transports=oui#17.4/48.097417/-1.69814

Then navigate on the map near bus and metro stops. It's alpha, so might break in the following days, but will be online on cartes.app soon.

@brendannee
Copy link
Member

Great suggestion to add a way to get upcoming stop times a little easier.

I published and updated version which has a few changes which should be useful: https://github.com/BlinkTagInc/node-gtfs/releases/tag/4.15.3

const stoptimes = getStoptimes({
stop_id: '70011',
date: 20160704,
start_time: '11:30:00',
end_time: '11:45:00'
});

Try these out and let me know what you think - are there other things that help make it easier to use the library for common use cases?

@steemcb-phorest
Copy link

Thanks for this enhancement! It's not entirely clear from the docs, is this only static data or will this take into account timing adjustments from realtime gtfs data if configured?

@brendannee
Copy link
Member

Only static data at the moment - but that is a good suggestion.

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