WSDOT / wsdot-ios-app

Source code for the WSDOT iOS application
GNU General Public License v3.0
10 stars 4 forks source link

Update traffic alerts logic to display correct alert type on map #264

Closed englehorn closed 1 year ago

englehorn commented 1 year ago

Helper.swift file is searching the alert headline description for keywords and returning the map icon based on these results. This is creating inaccuracies in the map alert icon results.

https://github.com/WSDOT/wsdot-ios-app/blob/0b6163fe99a73fbd160c6c5912e6c0e46a4e88ed/wsdot/Helpers.swift#L140 https://github.com/WSDOT/wsdot-ios-app/blob/0b6163fe99a73fbd160c6c5912e6c0e46a4e88ed/wsdot/Helpers.swift#L158

We should remove the headline search and just use the eventCategory field for alert types.