PrintGoogleDirections ( Start Address ; Start City ; Start State ; Start Zip ; Start Country ; End Address ; End City ; End State ;%
Rate this function: Average rating: 3.3 (14 votes) Discuss this Custom Function
Bill K, No Company
http://billspartypics.com
Give
Sample Input:
| PrintGoogleDirections ( Start Address ; Start City ; Start State ; Start Zip ; Start Country ; End Address ; End City ; End State ; End Zip ; End Country ) |
|
Sample Output:
| http://maps.google.com/maps?f=d&source=s_d&saddr=1+Microsoft+Way,+Redmond,+WA+98052+(Microsoft+Corporation+825)&daddr=1600+Amphitheatre+Parkway,+Mountain+View,+CA+94043&geocode=Ca9Rv24a3ZyGFbf71gIdLne4-CErWDHbJqnMXA;Fa8DOwIdLyS5-A&view=map&hl=en&mra=pe&mrcr=0&sll=42.532791,-122.106805&sspn=15.613641,32.497559&ie=UTF8&ll=42.536892,-122.67334&spn=15.613641,32.497559&t=h&z=6&layer=c&pw=2 |
|
Description:
This will create a URL from a starting address to an ending address to Google Maps Printable version
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
This is my Custom Function and I want to
edit it
Discuss:Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:
|
Newest Custom Functions:
| 1. |
indonesian_date(date) |
| |
(Mon, Feb 06, 7:14pm) |
| 2. |
phpArrayValue ( array ; key ; pos ) |
| |
(Fri, Jan 27, 1:49pm) |
| 3. |
solfm_timeToMinutes (theTime;roundSec) |
| |
(Fri, Jan 20, 6:26am) |
| 4. |
filterLines(filterField;filterValue;Result) |
| |
(Sat, Jan 14, 2:20pm) |
| 5. |
getMaxValue ( theList ) |
| |
(Thu, Jan 12, 1:06pm) |
| 6. |
MiddleWordsIncPunct ( text ; startingWord ; numberOfWords ) |
| |
(Sat, Jan 07, 9:16am) |
| 7. |
WindowInfo |
| |
(Fri, Jan 06, 12:39pm) |
| 8. |
CenterWindow in Window vert horiz (demension) |
| |
(Fri, Jan 06, 12:25pm) |
 |
|
Hi Bill, nice function. Just a couple of things:
1. When I tried to use it I would only see "A" pointer on the start location, and "1" pointer on the destination. There was no line drawn between them, nor any actual directions as text, should there have been?
2. Is it ok to omit certain parameters, ie just leaving them as double quotes? Some addresses in countries other than the US do not have a state or zip. It seems to work to the degree mentioned in (1) above, but that's about it.
Cheers
Daniel Wood, Christchurch, New Zealand
December 17, 2009 3:16pm