|
|
@ -46,7 +46,7 @@ Call: https://rhays.us/Examples/RX_API_Call/RX.php?K=RLH1234&Latitude=39.1030&Lo |
|
|
|
This is a basic lookup system to find the closest pharmacy to a given Lat/Lon |
|
|
|
|
|
|
|
My assumptions: |
|
|
|
1) No clear request for distance, options are drive distance or straight line distance, I chose: straight line distance. |
|
|
|
2) No request trap errors, I added a few, validation, key check, request check, and a basic DB check. |
|
|
|
3) Output was requested as a packet but not the type, so I just passed the requested data back as text and not JSON. |
|
|
|
1. No clear request for distance, options are drive distance or straight line distance, I chose: straight line distance. |
|
|
|
2. No request for trap errors, I added a few, validation, key check, request check, and a basic DB check. |
|
|
|
3. Output was requested as a packet but not the type, so I just passed the requested data back as text and not JSON. |
|
|
|
|
|
|
|