WSDOT / wsdot-ios-app

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

Highway Alerts: App is not recognizing new line characters \r\n #273

Closed englehorn closed 9 months ago

englehorn commented 1 year ago

Some of the traffic alerts have new line characters \r\n in the HeadlineDescription. The app should be able to recognize these characters and format the text with a new line.

{
"Priority": "Low",
"County": null,
"Region": "Southwest",
"StartRoadwayLocation": {
"RoadName": "012",
"Longitude": -121.588749787,
"Description": "PURCELL CREEK",
"Direction": "B",
"MilePost": 137.11,
"Latitude": 46.669879288
},
"LastUpdatedTime": "/Date(1659998712820-0700)/",
"EndTime": null,
"AlertID": 511910,
"HeadlineDescription": "Beginning at 8 a.m., Wednesday, Aug. 10, until further notice: Travelers in both directions of US 12 at the Purcell Creek Bridge, should expect around-the-clock single lane closures, and a temporary speed limit reduction of 25 mph through the work zone with delays of up to 20 minutes.  \r\n \r\nNote: Travelers will take turns alternating through a single lane across the bridge, using a temporary traffic signal.",
"ExtendedDescription": "",
"EndRoadwayLocation": {
"RoadName": "012",
"Longitude": 0,
"Description": null,
"Direction": "B",
"MilePost": 0,
"Latitude": 0
},
"EventStatus": "Open",
"StartTime": "/Date(1660143600000-0700)/",
"EventCategory": "Construction"
},

iOS