|
|
@ -15,4 +15,26 @@ application. |
|
|
|
closest pharmacy to the input latitude/longitude. |
|
|
|
2. The API will return the closest pharmacy (with name and address) in a consumable response packet. 3. The |
|
|
|
API will include the distance (in miles) between the input latitude/longitude and the selected closest pharmacy |
|
|
|
in the response packet. |
|
|
|
in the response packet. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
----- |
|
|
|
|
|
|
|
|
|
|
|
Database is a SQLite |
|
|
|
|
|
|
|
Table Schema |
|
|
|
|
|
|
|
``` |
|
|
|
create table pharmacies |
|
|
|
( |
|
|
|
Pharmacy TEXT not null, |
|
|
|
Address TEXT, |
|
|
|
City TEXT, |
|
|
|
State TEXT, |
|
|
|
Zip TEXT, |
|
|
|
Latitude REAL not null, |
|
|
|
Longitude REAL not null |
|
|
|
); |
|
|
|
``` |
|
|
|