An Android transit library for any shuttle service powered by Synchromatics. Quickly deploy an app for your school with nearby and live-map features built natively for Android.
![MainPage](https://lh3.googleusercontent.com/QsIWMftVyWz3HuUYnA4XzARWyojo3-yoG34k8vWywWpvBAJtNKNi9QE5EALmIFF8TA=h900-rw "MainPage"
TODO
Right now, simply create a new project and extend the MainActivity to ArrivalsActivity.
- Add Google Maps API key to your manifest (as seen in sample)
- Find your school's shuttle URL, and set Constants.URL to it (as seen in sample)
As mentioned in the description, this lib is actually compatible with a large number of colleges and universities, all using Synchromatics tracking system. The library polls the JSON files via Retrofit and parses them for use. If you wish to use the bus data for another app or bus feed, the endpoints are as such:
- http://www.ucishuttles.com/Region/0/Routes
- http://www.ucishuttles.com/Route/{ROUTE_ID}/Direction/0/Stops
- http://www.ucishuttles.com/Route/{ROUTE_ID}/Stop/{STOP_ID}/Arrivals
- http://www.ucishuttles.com/Route/{ROUTE_ID}/Vehicles
The Intent Service first pulls data from Routes, and uses the route ID to find the stops. The stop ID is then used to find each individual stop's arrival times. Vehicle/shuttle data is also pulled from using the route ID. If these endpoints were to change, they were originally extracted through ucishuttles.com, but can be done through any live feed map.
##Libraries Used:
-
Retrofit - http://square.github.io/retrofit/
-
GsonConverter
-
Gson
-
LocationServices
-
GoogleMaps
##License:
UniTransit-Lib is released under the MIT License.