Google Maps/Directions PHP Question

pda4me
pda4me used Ask the Experts™
on
I am using a standard <a href> to link from my webpage to a directions page on Google like this:

http://maps.google.com/maps?f=d&source=s_d&saddr=Fort+Myers,+6325+Presidential+Court,+FL&daddr=8359%20Beacon%20Blvd.+Fort%20Myers+FL+33912&hl=en&ie=UTF8&layer=c&pw=2

Two Questions:

1.)  How do I have the map print by default instead of requiring a checkbox, i assume its a switch I can add in the URL?

2.)  How do I include some default notes in the notes section on the google print page.  I am guessing I can somehow include some text here by passing it in my URL.  How do I do that?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2016
Commented:
Google changed the API last summer, and you can now embed Google Static Maps in your own web pages.  Please see this article for examples of the new ways to create and retrieve map images.

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_3350-Using-the-Google-Maps-API-in-PHP.html

My thinking is that you could ask Google to draw the static map and use your URL to produce the written directions.

HTH, ~Ray

Author

Commented:
Thanks Ray!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial