I'm currently developing an app using maps API, I have a polyline that is that start as LatLnt one and ends at LatLng two creating a straight line. If I have a Marker that falls somewhere close to this polyline how would I tell if the marker is to the left or to the right of the polyline?
Are there any API utils that handles such geometric calculations?
You have coordinates L0, L1 for starting and ending points of line and marker coordinate P.
Find azimuths for directions L0-L1 and L0-P (heading, bearing)
and find their difference