We will use our Point2d class from Lecture 17 to review the following:
We will work through the implementation details together during lecture. The skeleton implementation is attached to these notes
Recall Lab 5:
Read and parse input lines that look like:
The Greek House|42.73|-73.69|27 3rd St+Troy, NY 12180|\
http://www.yelp.com/biz/the-greek-house-troy|Greek|1|5|4|5|4|4|5|5|5|5|5|4
Find restaurants that satisfy certain criteria: distance, rating, type.
Original implementation based on a list was awkward:
New implementation here is based on a class
Let’s look at restaurant_sol.py
Looking at the code that is in restaurant_sol.py
Look at rest.py