include_once 'classes/QSet.class.php';
include_once 'classes/QGoogleMapToGPX.class.php';
$key = ""; // just provide your own GoogleApi Key
$url = 'http://maps.google.de/maps?f=d&hl=de&geocode=';
$url .= '&saddr='. urlencode("Barbarossa Platz 1, Köln, Erftstadt");
$url .= '&daddr='. urlencode("L182 @50.724248, 6.914609 to:L192 @50.778430, 6.990120 to:Meckenheimer Allee @50.731026, 7.094984");
$url . '';
$url .= '&ie=UTF8&t=h&z=12';
$object = new QGoogleMapToGPX($url);
$object->set("GMapToGPX.name", "GoogleMap - Route");
header("content-type:text/xml");
print $object->asXML();
|