I presume that you are aware that the PHP runs on your server, and GDirections is Javascript that runs inside the user's browser. So you have to send the text from the browser to a PHP script on your server. It's easier to use a separate script that's dedicated to just sending the SMS, rather than trying to arrange for the script that generates the Javascript that displays the map to have two independent functions.
Send the data to the script with GDownloadUrl using the POST option (see documentation) because the default GET option is limited to 512 characters, and directions can be a lot longer than that. Obtain the data wither by using .getRoutes(), .getSteps() and .getDescriptionHtml() to obtain the description of each step, or read the .innerHTML of your panel div as one huge chunk. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
