General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
MapqQuest Directions Macros
Posted by: jsnj
Date: February 20, 2003 01:30AM

I wrote these today because I needed one of'm. The first prompts for each location field. Like the MapQuest site, the city & state prompts can be left blank if you know the zip code and vice versa. The second, which is what I needed, takes a location address on a webpage that you've highlighted and searches MapQuest for it with an assigned start location already built into the macro, the only prompt being for the destination zipcode. I'm not that fluent in macros so if anybody knows an easier or better way to get the same result with either or both of these, please post it. But I tested these and they work.

MQDirections{
menu = Get Directions
$homestreeteng = "http://www.mapquest.com/directions/main.adp?go=1&do=nw&ct=NA&1y=US&1a=";
$homestreet = prompt("Enter Street Address of Start Location","Mapquest Directions");
$homecityeng = "&1c=";
$homecity = prompt("Enter City of Start Location","Mapquest Directions");
$homestateeng = "&1s=";
$homestate = prompt("Enter State of Start Location","Mapquest Directions");
$homezipeng = "&1z=";
$homezip = prompt("Enter Zip Code of Start Location","Mapquest Directions");
$deststreeteng = "&2y=US&2a=";
$deststreet = prompt("Enter Destination Street Address","Mapquest Directions");
$destcityeng = "&2c=";
$destcity = prompt("Enter Destination City","Mapquest Directions");
$deststateeng = "&2s=";
$deststate = prompt("Enter Destination State","Mapquest Directions");
$destzipeng = "&2z=";
$destzip = prompt("Enter Destination Zip Code","Mapquest Directions");
$destzip == ""?"" : opennew($homestreeteng . $homestreet . $homecityeng . $homecity . $homestateeng . $homestate . $homezipeng . $homezip . $deststreeteng . $deststreet . $destcityeng . $destcity . $deststateeng . $deststate . $destzipeng . $destzip);
}


Directions{
menu = Get Directions
$tmp = getclipboard();
id(ID_EDIT_COPY);
$engine = "http://www.mapquest.com/directions/main.adp?go=1&do=nw&ct=NA&1y=US&1a=Place Start Location Street Address Here&1z=Place Start Location Zip Code Here&2y=US&2a=";
$zipengine = "&2z=";
$zipcode = prompt("Enter destination zip code","Mapquest Directions");
$zipcode == ""?"" : opennew($engine . getclipboard() . $zipengine . $zipcode);
setclipboard($tmp);
}

Options: ReplyQuote
Re: MapqQuest Directions Macros
Posted by: jsnj
Date: February 24, 2003 06:52AM

The last line of the first macro should read:

opennew($homestreeteng . $homestreet . $homecityeng . $homecity . $homestateeng . $homestate . $homezipeng . $homezip . $deststreeteng . $deststreet . $destcityeng . $destcity . $deststateeng . $deststate . $destzipeng . $destzip);


The second to last line of the second macro should read:

opennew($engine . getclipboard() . $zipengine . $zipcode);

Options: ReplyQuote
Re: MapqQuest Directions Macros
Posted by: Marie-Marthe Morency
Date: November 29, 2007 05:09PM

I would like to go from my house the that address please.
from
8603 Bolington Drive, Houston, Texas 77083
To
3003 South Loop West Houston, Texas 77054

Options: ReplyQuote
Re: MapqQuest Directions Macros
Posted by: kko
Date: November 29, 2007 05:53PM

Call a taxi.

Options: ReplyQuote
Re: MapqQuest Directions Macros
Posted by: foobarly
Date: November 29, 2007 09:53PM

LOL grinning smiley

Options: ReplyQuote
Re: MapqQuest Directions Macros
Posted by: desga2
Date: November 30, 2007 01:26PM

Search in Google Earth! grinning smiley

K-Meleon in Spanish

Options: ReplyQuote
Re: MapqQuest Directions Macros
Posted by: guenter
Date: November 30, 2007 03:25PM

Basically You mark Your destination in Your post - and copy Your starting point into cache or memory from Your post.

Then You hit the search button (usually a globe, or a search lense with most K-Meleon skins ). This gets You to google. The the topmost entry as the correct search item. Click the entry to go to that page. There You insert/paste the starting point into the appropriate field. Then You activate the button and that gives You a detailed list how to drive. If You are lucky or look from the US You may get it in English.

Below is my attemt to get it for You from Germany smiling smiley
Just in case You give You the wrong language too a little German-English legend smiling smiley

Meilen = miles
Minuten = minutes
bei starkem Verkehr = with heavy traffic
links = left
rechts = right
abbiegen = turn
Gebührenpflichtige Straße = toll road
abbiegen = turn to (left or right)
Bei = at



Fahrt:
17,0 Meilen – ca. 23 Minuten
bei starkem Verkehr bis zu 45 Minuten
17,0 Meilen – ca. 23 Minuten, bei starkem Verkehr bis zu 45 Minuten
1. Nord auf Bolington Dr Richtung Chester Gables Dr
404 ft
2. Bei Branford Manor Dr links abbiegen
184 ft
3. Bei Eldridge Pkwy rechts abbiegen
1,8 Meilen
4 Minuten
4. Bei Alief Clodine Rd rechts abbiegen
0,1 Meilen
5. Auffahrt Westpark Tollway E auf der linken Seite
0,6 Meilen
1 Minute.
6. Auf W Park Tollway/Westpark Tollway
Gebührenpflichtige Straße

6,7 Meilen
7 Minuten
7. Bei Ausfahrt US-59 N Richtung Downtown fahren
2,2 Meilen
3 Minuten
8. Die Ausfahrt nach I-610 S nehmen
4,6 Meilen
5 Minuten
9. Bei Ausfahrt 2 Richtung S Main St/US-90-ALT/Buffalo Speedway fahren
0,3 Meilen
10. Auf S Loop Fwy W
0,7 Meile



Edited 3 time(s). Last edit at 12/01/2007 05:54AM by guenter.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.