This is one of those questions that doesnt have a clear answer.
shortest I suppose is: technically yes, practically not really.


You mostly do this with the Directions API. Compare the streight line
distance of each point, with the road distance, and if say over 140%
distance, then exclude the ones that require a long detour.

First that 140% is an estimate, it would even change with say the
distance, and type of roads etc. Ie can't get a perfect answer, just
pick a roughly good value.

But the Directions API (whether called directly, or in the JS API) has
rate limits. eg you couldnt expect to run 300 (say) points though it
in quick succession to furfil a client request. (both from rate limits
imposed, and the legal implication as cant display 300 routes on a mpa
to the user)

You could get 'close' by say, running your search server side just
using the streight line distance, then in the client, just loop though
and remove the 'outliyers' - this would take time, so they would
disappear after the user has already seen the map.
To cut down on the number of requests, could avoid repeated requests
for the same compass direction (but incorperating a bit of
fuzzyness!). And if you 'reject' a close point, then all further
points dont need checking for example.


So - with a bit of trail and error to get the values sensible - it
might well be possible to get close to the original requirement.




On 1 March 2011 16:37, stapes <[email protected]> wrote:
> Hi
>
> I want an application to find addresses within a certain radius that
> are not unreachable by road. For instance, in the UK, addresses in
> Wales may be close to addresses in Cornwall, but there is sea in
> between so there is no route. Is there any way I can do this using the
> google maps api.
>
> Stapes
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Maps API V2" 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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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