WSDOT / wsdot-kotlin-app

Source Code for the WSDOT Android Application
GNU General Public License v3.0
1 stars 3 forks source link

Toll Rates: Update API Endpoint #169

Closed englehorn closed 1 year ago

englehorn commented 1 year ago

The WSDOT traffic API is updating the Toll Rate endpoints for SR 167 & I-405.

To display these toll rates in the app we will need to update the mobile app's Toll Rate data request endpoints when the new endpoints become available.

Our current API Toll Rate data request points to the WSDOT traffic API:

https://github.com/WSDOT/wsdot-kotlin-app/blob/fd8aafabee8e9993681efc9747407e5da12f923a/app/src/main/java/gov/wa/wsdot/android/wsdot/api/WsdotApiService.kt#L34

We will need to update this data request. We should also consider moving this WSDOT API Service request to the app's Web Data Service file and point to the mobile app TollRates.js API endpoint instead.

@stidhat @waynedyck

englehorn commented 1 year ago

The new Tolling Rates Endpoint for SR 167 & I-405 is at:

https://www.wsdot.wa.gov/traffic/api/TollRates/TollRatesREST.svc/GetTollRatesAsJson?AccessCode=