> I am trying to store path direction (Direction text) in a variable as
> in below mentioned code , it seems I am doing some thing wrong, Please
> advise

For starters, you're doggedly refusing to post a link to your own map
through many questions of yours.  Help others to help you
   
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

So, guessing only ....

>                 directions.load("from: 246 Port Richmond Ave Staten Island, 
> NY 10302
> to: 777 Washington Rd, Parlin, NJ 08859 ");
>                 var ak1 = directions.load("from: 246 Port Richmond Ave Staten
> Island, NY 10302 to: 777 Washington Rd, Parlin, NJ 08859 ");
>                 alert(ak);}

What's going on here, doing it twice?  The second one may fail due to
the speed limit on direction requests.
Your alert will fail because directions works asynchronously - the
results won't have come back before your alert is triggered
   http://econym.org.uk/gmap/async.htm

cheers, Ross K

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to