qtrandev / androidtransit Goto Github PK
View Code? Open in Web Editor NEWAndroid app showing Miami-Dade Transit live buses on a map.
Android app showing Miami-Dade Transit live buses on a map.
If the app is in the background, the process terminates and new data is not refreshed. We need to look at options to allow it to run in the background.
This is most apparent when tracking the GPS Tracker https://github.com/herrdragon/busTrackingGps where every position is logged. When other apps are in the foreground, the history is lost when returning to the Transit Tracker app.
For buses on each route we display, we should add lines representing the routes. For now, we can choose a color like blue, but each route actually has its own color.
Our main data source is http://www.miamidade.gov/transit/WebServices/Transit_XML_Data_Feeds.pdf but that data is in XML format so we have a server generating the data in JSON:
http://miami-transit-api.herokuapp.com/api/Buses.json (this is down right now for some reason)
Backup: http://miami-transit-api-gtfsrt.herokuapp.com/api/Buses.json
Docs: http://julianbonilla.github.io/miami-transit-api-docs/
Bus Routes:
http://miami-transit-api-gtfsrt.herokuapp.com/api/BusRoutes.json (backup API location)
To get the shape, need 2 requests:
http://miami-transit-api-gtfsrt.herokuapp.com/api/BusRouteShapesByRoute.json?RouteID=31&Dir=Northbound
http://miami-transit-api-gtfsrt.herokuapp.com/api/BusRouteShape.json?ShapeID=134996
The ShapeID can also be obtained by TripID:
http://miami-transit-api-gtfsrt.herokuapp.com/api/BusRouteShapesByTrip.json?TripID=3500274
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.