On Mar 12, 6:06 pm, Marcelo <[email protected]> wrote:
> On Mar 12, 3:41 pm, Sarath K S <[email protected]> wrote:
>
> > Hi,
>
> > I have put a sample page which throws this error on the following
> > location.
>
> >http://gdemo.tpfcloud.com/direction.htm
>
> This is only a partial response.
> There are a number of potential problems in your code, but the main
> one seems to be the address format.
>
> If I change:
>
> var request = {
> origin: "E1 1JY, LONDON",
> destination: "E1 6AD,LONDON",
>
> to:
>
> var request = {
> origin: "ORD",
> destination: "JFK",
>
> and remove the waypoints, then it works.
> It is still unclear to me why it returns status OK if the request had
> failed.
> I'll dig some more into this when I find the time.
>
> --
> Marcelo -http://maps.forum.nu
> --
>
>
>
> > Thanks & Regards,
> > Sarath
>
> > On Mar 12, 5:21 pm, Marcelo <[email protected]> wrote:
>
> > > On Mar 12, 11:50 am, Sarath K S <[email protected]> wrote:
>
> > > > Can anyone tell me what is this problem?
>
> > > How?
>
> > > My cat is sick. Can you tell me what's the problem?
> > > Really, for all we know, B could be a potato.
>
> > > Please read and follow the group's posting
> > > guidelines:http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th......
>
> > > --
> > > Marcelo -http://maps.forum.nu
> > > --
>
> > > > Best Regards,
> > > > Sarath
I believe travelMode expects an 'enum' constant, not a string literal.
travelMode:google.maps.DirectionsTravelMode.DRIVING,
I have not checked the documentation to see if both are acceptable.
--
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.