Hi,

I have the need to generate travel routes that do NOT cross country
borders. I can't see the ability to do that automatically in the
Google Maps API nor on the Google Maps website. Here is an example
route that starts and finishes in Switzerland but travels through
Germany:

http://maps.google.com/maps?saddr=Rossberghof,+Rossberg,+Wilchingen,+Switzerland&daddr=Fries,+Wil,+Switzerland&hl=en&ll=47.62676,8.548737&spn=0.132352,0.333023&sll=47.602459,8.604012&sspn=0.132414,0.333023&geocode=FQpE1wId4e6BACmTlJO5w3uQRzEiK6JZKSuscw%3BFRJF1gIdvSCCACkN-0EFW3eQRzHs7TE_4A3_WQ&oq=Fries,+sw&mra=ls&t=m&z=12

This route takes 21 minutes, but for legal reasons I can not use it,
so the alternate route that stays in Switzerland takes 65 minutes:

http://maps.google.com/maps?saddr=Rossberghof,+Rossberg,+Wilchingen,+Switzerland&daddr=47.68941,8.56706+to:47.61723,8.62564+to:Fries,+Wil,+Switzerland&hl=en&ll=47.639022,8.453293&spn=0.422873,0.837021&sll=47.646887,8.563156&sspn=0.393203,1.056747&geocode=FQpE1wId4e6BACmTlJO5w3uQRzEiK6JZKSuscw%3BFcKu1wIdFLmCACnNc6lIyH6QRzEALRb0lMNB5g%3BFc6U1gId6J2DACm_h5VtmIKaRzHd1g49soAsrg%3BFRJF1gIdvSCCACkN-0EFW3eQRzHs7TE_4A3_WQ&mra=dpe&mrsp=2&sz=11&via=1,2&t=m&z=11

I need to be able to generate routes that stay in country through the
API. The avoidHighways, avoidTolls and region bias do not appear to
achieve this. I know that a user can use dragging to travel via a
point but I am looking for the route to be generated in country
automatically without relying on the user to customise the offered
route. Have I missed something else? Is it something that perhaps
could be added to the API?

Cheers,
Mark

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to