On Oct 4, 7:54 am, Chris <[email protected]> wrote:
> Hi,
>
> I am looking at making a store locator using Google Maps API. We need
> it to calculate the nearest by driving distance from the start point
> to the nearest depot rather than in a straight line. This is because
> it is how our old system works and we would like to keep the results
> consistant.
>
> The only way I can see for doing this is to first find the nearest 5
> in a straight line, then calculate the driving distance to these 5 and
> then display the nearest three depots. This is a really conveluted way
> of getting the nearest by driving distance.

But it is how you need to do it.  Getting directions is a server
intensive operation, those servers are shared with every one.

> Is there a way of getting
> the API to return the nearest three by driving distance as the default
> distance rather than so many calculations?

Not at present (at least that I know of).  Feel free to request an
enhancement (if there isn't already one):
http://code.google.com/p/gmaps-api-issues/issues/list?can=2&q=apitype%3AJavascript3+type%3AEnhancement

I wouldn't wait for it.

  -- Larry

>
> Thanks,
>
> Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to