From 8f8b30e5ad6652aa1b16c87ce17c16598acb461a Mon Sep 17 00:00:00 2001 From: Rick Hays Date: Wed, 25 Sep 2019 09:52:27 -0500 Subject: [PATCH] Update 'README.md' --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f97b37..cc50433 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,18 @@ # RX_API_Call -Create a very basic API using tools and languages of your choice. The API will have a single endpoint/method -with a single function. \ No newline at end of file +## 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. \ No newline at end of file