2019-09-25 11:33:01 -05:00
2019-09-25 10:04:25 -05:00
2019-09-25 09:51:08 -05:00
2019-09-25 09:52:27 -05:00

RX_API_Call

Objective

Create a very basic API using tools and languages of your choice. The API will have a single endpoint/method with a single function.

API Input

  1. User Location - The API will receive a latitude and longitude value which describes the current location of a user.

API Output

  1. The API will return a simple response packet with the name and address of the pharmacy chosen by the application.
  2. The distance between: the input latitude/longitude and the location of the pharmacy.

Business Requirements

  1. The API will receive a latitude/longitude, using the provided list in pharmacies.csv the API will calculate the 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.
Description
No description provided
Readme 39 KiB
Languages
PHP 35.4%
JavaScript 17.6%
CSS 16.9%
HTML 15.1%
SCSS 15%