fac-17 / Generation-Change

Generation Change (Tech For Better Project)
https://generation-change.netlify.com/
1 stars 3 forks source link

Feature/connect searchbar results #65

Closed xIrusux closed 5 years ago

xIrusux commented 5 years ago

Hi guys. Couldn't help but take another quick look to finish this off.

  1. I have renamed the variables that did previously not make sense / were not explanatory enough
  2. I have commented the code on the results page in great detail so it's hopefully easy to understand
  3. I have made the connection between the listing data that falls within a specific radius within the searched postcode and the listings on the results page. Now the resultspage only renders listings within 50000 of the postcode. -> test this by typing in postcode "N19EZ" -> after you hit enter you can see the distance between every listing and the postcode print in the console -> as you can see only 5 out of the 6 listings are within the distance -> hence only 5 listings will show.