CUTR-at-USF / OpenTripPlanner-for-Android

An Android app for multi-modal trip planning and navigation using any OpenTripPlanner server.
Other
130 stars 91 forks source link

Fix #486 MetadataRequest/remove busish+trainish mode for current OTP version #487

Closed hbruch closed 7 years ago

hbruch commented 7 years ago

This PR adds API_VERSION_v2 (routers/default is metadata endpoint since OTP0.19) and API_VERSION_v3 (since 1.0.0 busish and trainish modes are not supported any more and cause 404 errors when requested).

New versions are just added as new constants. In future, a version dependend strategy would be a better approach to handle API differences.

CLAassistant commented 7 years ago

CLA assistant check
All committers have signed the CLA.

barbeau commented 7 years ago

@hbruch Thanks for tackling this! Hopefully I'll be able to review/test in the next few days.

barbeau commented 7 years ago

@hbruch Thanks for this, and sorry for the delay in reviewing. Looks good!