zugspitze / Hiking-Buddies

This repository is used to create bugs and new features for www.hiking-buddies.com
1 stars 0 forks source link

Routes Map - search by area #52

Open c-harding opened 5 years ago

c-harding commented 5 years ago

At the moment the routes map shows maps plotted by center point. It would be useful if there was also the option to search by area: draw a rectangle around an area, such as a mountain peak, and it will show all the routes that go through there.

It would be even better if it does this similar to a Google Maps search, in that it offers a sidebar with the results, and hovering over each result highlights it on the map.

In terms of implementation, it would be a matter of looking for hikes with a GPS point in the given area. To avoid searching through every datapoint on all routes, the search could be narrowed down by only looking at those where the selected area falls within the bounding rectangle of the route/where the rectangle falls within half the route length of the route midpoint.

zugspitze commented 5 years ago

Good idea but I think not easy from frontend.

c-harding commented 5 years ago

The search would definitely have to happen on the server, yes