Restaurant search
Let's consider creating a search portal for restaurants. The following are its requirements:
To find the nearest restaurant with Chinese cuisine, which has the word
ChingYang
in its name.To decrease the importance of all restaurants outside city limits.
To find the distance between the restaurant and current point for each of the preceding restaurant matches.
To find whether the person is in a particular city's limit or not.
To aggregate all restaurants within a distance of 10 km. That is, for a radius of the first 10 km, we have to compute the number of restaurants. For the next 10 km, we need to compute the number of restaurants and so on.