I am having trouble finding an API that will allow me to read in GTFS data. After much searching I was able to find and run This code, but there is not really much of an explanation. I am ultimately having trouble trying to figure out how to get information and display it in .xml layouts.
Question:
There is nothing in the source of xml, manifest, not even MainActivity.java or any activity
so there is not much thing you could do besides using the class which you're totally
capable to do it yourself by reading spec.
Question:
1. Do I need to create another class with an onCreate method and call
these other classes?
There is no activity, so no onCreate, no calling methods, nothing.
2. Does this program not require me to load values
into a database?
Same as question one.
3. Where can I find an API that would help me understand how to read in, parse, and
display values.
You could really just implement this by following the spec all by yourself. It's really simple.
Anyway, I made an example for you so you could use git clone to get the source code and do
whatever you like. https://github.com/cwhsu1984/GtfsDemo.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With