On Oct 7, 11:14 am, "Jim Higson (Aberystwyth University)"
<[EMAIL PROTECTED]> wrote:
> On Oct 7, 11:07 am, "Barry Hunter" <[EMAIL PROTECTED]>
> In your code you have:
>
> function get_directions(thatform) {
> saddr = thatform.saddr.value;
> daddr = thatform.daddr.value;
>
> dirn.load("from: "+saddr+" to: "+daddr, {getSteps:true});
>
> return false;
>
> }
A little more investigation, and it seems the {getSteps:true} is what
makes this work.
On our test page, not passing that GDirectionsOptions in (and getting
the API from .co.uk) causes directions to fail for cities such as
Birmingham. Whereas with that they return as usual.
I'm still not completely convinced this isn't an issue with a cache
somewhere between us and Google, but seems to work for now.
Jim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Re: Defaulting directions to inside a country
Jim Higson (Aberystwyth University) Thu, 09 Oct 2008 04:18:36 -0700
- Defaulting directions to inside a coun... Jim Higson (Aberystwyth University)
- Re: Defaulting directions to insi... Barry Hunter
- Re: Defaulting directions to ... Jim Higson (Aberystwyth University)
- Re: Defaulting directions... Barry Hunter
- Re: Defaulting directions to ... Barry Hunter
- Re: Defaulting directions... Jim Higson (Aberystwyth University)
- Re: Defaulting direct... Jim Higson (Aberystwyth University)
