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: Add alert location to highway alert view controller #272

Closed englehorn closed 10 months ago

englehorn commented 2 years ago

The WSDOT real-time map includes the alert location above the description content.

real-time map

We should also add this information to the highway alert view in the app.

app

englehorn commented 2 years ago

By combining "RoadName" + "Direction"

{
"HeadlineDescription": "Spokane County will have lane restrictions for road work on Seven Mile Road between SR 291 and Coulee Hite Rd, starting on August 22, to August 23, 2022.  Watch for flaggers with piloted traffic.  Expect delays.",
"StartTime": "/Date(1660504320000-0700)/",
"Priority": "Low",
"LastUpdatedTime": "/Date(1660504482850-0700)/",
"EndRoadwayLocation": {
"RoadName": "Seven Mile Rd",
"Direction": "B",
"Longitude": -117.581094522,
"MilePost": 4,
"Latitude": 47.744747086,
"Description": "Coulee Hite Rd"
},
"StartRoadwayLocation": {
"RoadName": "Seven Mile Rd",
"Direction": "B",
"Longitude": -117.507562629,
"MilePost": 12,
"Latitude": 47.737158164,
"Description": "SR-291"
},
"EventStatus": "Open",
"Region": "Eastern",
"AlertID": 512486,
"County": null,
"ExtendedDescription": "",
"EndTime": "/Date(1661322600000-0700)/",
"EventCategory": "Construction"
},