Basic API to locate the nearest pharmacy given latitude/longitude input
------TO RUN THE PROGRAM------
Prerequisites: Latest java jdk is installed and properly set in the user's PATH variable.
Steps:
-
Download the rx-pharmacy-locator project (https://github.com/zwilliam12/rx-pharmacy-locator/archive/main.zip).
-
Within the command prompt, navigate into the rx-pharmacy-locator project, and then continue into the out/production/rx-pharmacy-locator directory.
-
To run the program, execute the following command:
java com.company.PharmacyLocator patientLatitude patientLongitude absolutePharmaciesCsv
where patientLatitude and patientLongitude are the latitude and longitude of the patient and absolutePharmaciesCsv is the absolute pathname of the csv file containing all pharmacies.
-
The program will output the resulting closest pharmacy to the command prompt, and additionally will create a html file in the base level of the project, called htmlOutput.html. This file can be opened in a web browser for viewing and contains a google map with the patient and chosen pharmacy location.