They eventually rolled the change back yesterday to give us time to adapt.
Here's the email from Sound Transit:
Trip Planner has multiple endpoints - /tripplanner/st/plan, /tripplanner /st/planP, /tripplanner /st/v1/plan. Please use “/tripplanner/st/v1/plan” used by ST website for your tests and we roll out new features for this EP only.
Here are few updates that has to be done in your request:
Use “/tripplanner/st/v1/plan” endpoint
Date in YYYY-MM-DD format
Time in 24 hours format
MaxWalkDistance in meters
Your request would have been working fine before our last week release in which we have added “Travel Window validation” to filter out Itineraries whose Start Time(for Leave At Option) or End Time(for Arrive By Option) is outside of 4 hours compared to Request Time. Trip Planner responds back with 490 Error Code if all of the Itineraries are filtered out.
From further communication with Sound Transit, JSON output is possible (and the default?) from the v1 endpoint too. Here's a sample response from curl:
Summary:
Late last week Sound Transit rolled out a new OTP URL format that broke trip planning in OBA Android.
Here's the URL format that broke:
http://tpng.api.soundtransit.org/tripplanner/st/plan?date=03-01-2019&mode=TRANSIT,WALK&arriveBy=false&wheelchair=false&optimize=QUICK&showIntermediateStops=true&fromPlace=47.7163,-122.295&toPlace=47.7313,-122.315&time=02:25PM
They eventually rolled the change back yesterday to give us time to adapt.
Here's the email from Sound Transit:
Steps to reproduce:
Plan a trip with the Sound Transit OTP server-side changes in place
Expected behavior:
Plan a trip successfully
Observed behavior:
An empty trip plan is returned with no itineraries
Device and Android version:
N/A