HealthcARWebsite / Backend

This is the backend repo for the HealthcAR website.
https://healthcarwebsite.github.io/splash
0 stars 0 forks source link

Zipcode API #2

Open dawson-sanders opened 1 year ago

dawson-sanders commented 1 year ago

This issue is for the zipcode API. This API should get all the clinic information from the database based on the zipcode integer. If the user types in a zipcode that is in the database, then that zipcode shoud appear at the top of every other clinic. Also, if the user inputs a zipcode that is not in the database, then the order of the clinics returned from the database should be the zipcodes that are closest to the one the user inputted.

dawson-sanders commented 1 year ago

Currently, the zipcode API does fetch all of the clinics from the database and orders them based on the zipcode integer using simple math. Although this solution is not the most optimal, it should be able to work for this semester. If we have time towards the end we can try and implement a better scaling version.