I need my Python script translated to Java and optimised for speed as currently it takes too long to run (90 seconds). I need someone experienced in both Python and Java.
Currently the Python script calls two APIs although it calls them many too many times to make it feasible for an app. So what I need is this script to run server-side and to provide expected outputs in an API call.
Before we get started I need assurance this script can be executed quicker.
Please ask for access to view the Python script in Google Colab.
Inputs are as follows, FromStation, ToStation, Date (single) and Price of ticket
Results (Last 30 days) must be stored in a database for a certain customer and executed every night so results are ready each day for the user.
Ability to execute one off queries, that store in the database and results are shown instantly.
Querying the API you create, should provide results from the database (Expected results can be seen in the python script). If the query doesn't exist it should be scheduled to be executed.