Hi Javier-

You could check to see if the bounds of the resulting polyline was
inside the bounds of Spain, once the directions request comes back. I
think it'd be better to just tell the user to only search for Spain
directions though, so that you don't issue the query at all.

- pamela

On Thu, Apr 16, 2009 at 12:58 AM, Javier <[email protected]> wrote:
>
> Hi,
> is it possible to limit the "from" an "to" input of a route to an
> specific country?
> I mean, in the example 
> http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/DirectionsAdvanced.html
> is there any way to limit these 2 inputs to places that belongs only
> to Spain, for example, and not show the polylines if the user enter
> other place of other country?
> I have been trying but I dont know how to do this....
>
> Thanks!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to