HikeMate / hikeMateApp

3 stars 1 forks source link

Function that maps location to location on hike #199

Closed mchac15 closed 1 day ago

mchac15 commented 1 week ago

Problem: The user location won't necessarily be exactly on the hike's line, but we want to display it on the hike nevertheless.

Thus we need a function that projects the actual user's position point onto the lines formed by the hike's waypoints, similar to the image shown below.

@MaelImhof and @davidholzwarth think this function is best put into LocationUtils, but if you have a different proposal please start a discussion about it.

Image

MaelImhof commented 5 days ago

Adding this here for further documentation :

We discussed the function further on the Telegram group and decided it would be best to have it return three things :