Android Question Google Map waypoints

prajinpraveen

Active Member
Licensed User
Longtime User
Hello all. I have a set of way points (eg: 10 waypoints) which i use to create a route from point A (a moving object - car) to Point B. i use google api to find the distance and time from moving object point A to Point B.

Issue : how would i know if point A has passed a way point 1,2 & 3 on the route and i should omit these way points when i calculate my new distance and time.

Thank you,
 

prajinpraveen

Active Member
Licensed User
Longtime User
Thanks Erel. Do i have to keep a map/list of waypoints and compare it to the new/current location of the car. Car should follow the waypoint in an order.
Problem is , there could be situations where waypoint 9 is closer to the car than waypoint 2. but the car should go to waypoint 2 first.

what i am trying to achieve is to calculate time and distance to reach point 9 (going through the way points)
 

Attachments

  • upload_2016-5-23_8-25-4.png
    upload_2016-5-23_8-25-4.png
    313.8 KB · Views: 282
Upvote 0

maleche

Active Member
Licensed User
Longtime User
Just what I am looking for!
I too have a list of waypoints which mark various hazards. While moving, I scan through the list and check DistanceTo(). However, I only want to check for (waypoints)hazards within 90 degrees of my heading. I also have the Text To Speech (TTS) speak the hazard and distance. I don't want the speech to continue after passing the point.
also, I've noticed that the speech tends to lag my display during voice I've tried buffering but i'll have to keep experimenting.
thanks in advance!
 
Upvote 0
Top