Source: site.view [edit]
Function name: directions
Arguments: fromAddr,toAddr
Description: Return HTML of directions fromAddr toAddr
Page type: webl
Render function:  
Module: global

Page source:

var fromA = WubCall("global.parseAddress", [fromAddr]);
var toA = WubCall("global.parseAddress", [toAddr]);

if (Objectp(fromA) and Objectp(toA)) then
   var P = GetURL(`http://www.mapquest.com/directions/main.adp`,
   [. "go"="1", "do"="nw", "rmm"="1","un"="m", "cl"="EN", "ct"="NA", "rsres"="1",
     "1a"=fromA["address"], "1c"=fromA["city"], "1s"=fromA["state"], "1z"=fromA["zip"], 
     "2a"=toA["address"], "2c"=toA["city"], "2s"=toA["state"], "2z"=toA["zip"]
    .]);

   var T = Elem(P, "table") directlycontain Pat(P, `Maneuvers`);
   T[0];
else
   false
end;