-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This project is an example project that uses Jackson to parse OTP server responses from the OpenTripPlanner (OTP) REST API.
It uses OTP POJOs:
OTP Java Client (i.e., this Github repo) is licensed under the Apache 2.0 license. OTP Java Client uses classes from the main OTP project to aid in the deserialization of OTP REST API responses. These classes are maintained in a separate Github project, are licensed under the L-GPL license per the main OTP project.
All dependencies are included in the libs
folder of the project.
Note that this project uses Lombak to auto-generate getter and setter methods, so you'll need to follow the process defined here to install Lombak into your Eclipse instance.
NOTE: If you have both the opentripplanner-pojos library project and this project (OTP-Java-Client) open in Eclipse, you need to right click on the OTP-Java-Clientproject and go to"Properties -> Maven" and uncheck "Resolve dependencies from Workspace projects". See this post for details. Otherwise, you may get the error java.lang.NoClassDefFoundError
errors when you try to run OTP-Java-Client on a device.
Also, be sure you're compiling OTP-Java-Client under JDK 1.6. You may get @Override annotation errors
if you're compiling under JDK 1.5 or 1.7. See this post for instructions.