Re: [Google Maps API v2] Re: how to get all coordinates between two locations?
On 2 July 2013 04:01, Akash Ashok <thehellmaker@gmail.com> wrote:
> So for this usecase would I be able to get all coordinates / lat-longs in
> between a route ?
All lat-longs on a route is an infinite number.
A potential method might be: get the route; calculate a buffer zone
around it; see whether your two additional routeing points are within
the buffer zone. It's quite computationally expensive.
An alternative method might be: get the route; calculate the distance
from your two additional routeing points to the line of the route.
Whichever you choose, it's best implemented in Version 3, and asked
about on a different group.
A search for "Google Maps API buffer zone" or "Google Maps API
distance to line" [both without the quotes] might yield something
useful.
--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home