You should be able to accomplish something like this yourself. It is
much easier if you don't do it perfectly (uses only one GDirections
request), but you could also make multiple requests (carefully) to get
a better result.

The easiest way is to get directions to point C, then trim back the
directions until you are > X meters away, then use the final point in
the directions to replace C.

Take a look at
http://maps.forum.nu/gm_driving_radius.html
to see an example of trimming the directions, specifically: function
shortenAndShow(polyline). You should be able to adapt that to measure
distance from C instead of driving distance along the polyline. The
problem is that there are potentially shorter routes that don't follow
the same polyline, for example to the other side of a park. If you can
accept that problem, this should be fairly easy.

Otherwise, you'd have to make multiple GDirections requests, and it
will take some time to run (maybe 10+ seconds to even minutes).

-Brian

On Mar 26, 11:01 am, Layla <[email protected]> wrote:
> Yes actually we are currently offering this functionality on our
> website and users are using it.
>
> On Mar 26, 1:46 pm, Rossko <[email protected]> wrote:
>
> > Do you have a means of checking if your users actually use this "pass
> > within X of a waypoint" feature?  If it's not being used, you need not
> > replicate it... as already said, Google directions automatically do
> > this to an extent, its just that you can't adjust the distance.
>
> > Difficult to see many uses for it, but of course it depends what you
> > are tracking.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to