Source: site.view [edit]
Function name: pdaDirections
Arguments: fromAddr,toAddr
Description: Return HTML for directions fromAddr toAddr, suitable for PDA display
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/pda/directions.adp`,
   [. "go"="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, `Directions`);
   T[0];
else
   false
end;