Closed loganSims closed 8 years ago
How will "Special Events" be classified? These usually include baseball, football and soccer events.
They will be classified as "incidents". Now that I'm saying it that does sound strange.
I'm sorting the alerts into the categories in the same way we sort them on the map for icons.
I could change the heading of the incidents section to something like "Incidents and Alerts" or "Accident/Alert" to match http://www.wsdot.com/traffic/trafficalerts/ or I could make a special events ID and change getCategoryID()
a little.
UPDATE: The second option would display another list for special events like it does now.
I think I'd like to see those in a separate category under "Special Events". Looking at the HighwayAlerts feed now I see a couple that are flagged as "Special Events" and one's a "University of Washington men's basketball game" and the other is a "Seattle Sounders soccer game"
Merged with commit cfa252996e97a571a4beadfe9756fae7cc80cf4c
Changes
New Feature: Seattle Alerts feature has been removed. Replacing it is "Alerts in This Area" (Name can be changed) #58.
fourfive categories.In the code
SeattleIncidentItem.java
has been deleted as it is no longer used.HighwayAlertItem
is now used in its place.SeattleTrafficAlerts*
files have been renamed to simplyTrafficAlerts*
TrafficAlertsFragment.java
now implementsLoaderCallbacks<Cursor>
instead ofLoaderCallbacks<ArrayList<SeattleIncidentItem>>
. This is because the fragment now gets the information from the highway_alerts table in the database. The class has been refactored to reflect this change.buildCategories()
and the category lists have been removed in favor of constants for thefourfive category IDs. the IDs are mapped in the new functiongetCategoryID(String)
that takes in an alert category and returns the corresponding ID. This function works likeHighwayAlertsOverlay.getCategoryIcon()
but does not take into account alert priority.