Data which available for computation is
- Driver (lat,lon) x mins
- customer (lat,lon) x - millisecond
- Driver (lat,lon) x-1 mins
- Driver (lat,lon) x-2 mins
I have set of location in which i want to find the whether car is moving towards or moving away from a customer .
Data which i have is customer location and car's last 3 polled location (which use to push each minutes).
There is two method in which i can find .
- Distance calculation.
- Angle in which car moved.
Which would be the best way to go . Do both method required to be combined if so, how some glance ?