Forum #23 - Topic #73 - Message List
Where I can download the source code from sample Geobase Canada road network?? I need view the length route distance en the html, but i can't. Please helpme
-
Message #272
You can download all the Geobase Canada road network from http://geobase.ca/geobase/en/data/nrn/index.html
Or did you look for the tutorial source code? http://pgrouting.postlbs.org/attachment/wiki/WorkshopFOSS4G2007/20071004_tutorial.zip?format=raw
daniel12/06/07 10:03:17 -
Message #273
The page
http://demo.postlbs.org/openrouting/geobase.html
in the Gallery, its a example of a very good Web routing. The source code of this page its
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
<!-- Meta descriptions --> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="author" content="Daniel Kastl (ORKNEY, Inc.)" /> <meta name="copyright" content="Daniel Kastl (ORKNEY, Inc.)" /> <meta name="description" content="pgRouting Demo" />
<meta name="keywords" content="pgRouting Routing Demo" />
<title>British Columbia (geobase) - pgRouting - OpenLayers Demo</title>
<!-- Google Maps, Virtual Earth, Yahoo Maps API --> <script type="text/javascript"
src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA5ZH7PfZHoYxhpgxSZyFt_hQ5KHuzymVeon-6ii-nyTO13qgxKxTBJNfSVilEkIhvQNvhDQmUVGxtAQ"></script>
<!-- jQuery Javascript Framework --> <script type="text/javascript" src="./js/jQuery/jquery-1.2.min.js"></script>
<script type="text/javascript">
// not to conflict with jQuery and other Javascript libraries var JQ = jQuery.noConflict();
</script>
<!-- OpenLayers Mapping Framework --> <script type="text/javascript"
src="./js/OpenLayers-google/lib/OpenLayers.js"></script>
<script type="text/javascript" src="./js/openrouting.js"></script> <script type="text/javascript" src="./js/data_settings.js"></script> <script type="text/javascript" src="./js/initrouting.js"></script>
<!-- Style definitions-->
<link rel="stylesheet" href="./css/map.css" type="text/css" />
</head>
<body>
<div id="map"></div> <div id="nav">
<h1>Bristish Columbia (Canada)</h1>
<!-- Database name--> <input type="hidden" name="region" value="ca_bc_gb" />
<fieldset name="routing">
<legend> Select Routing Method </legend> <select name="method">
<option value="SPA_u">Shortest Path A Star - undirected</option> <option value="SPD_u">Shortest Path Dijkstra - undirected (BBox)</option> <option value="SPS">Shortest Path Shooting Star</option>
</select>
<!-- AJAX Loader--> <img src="./img/ajax-loader.gif" id="ajaxloader" alt="" />
<ul>
<li><label><input type="radio" name="type" value=""
id="startpoint" checked="checked" />Add START point</label></li>
<li><label><input type="radio" name="type" value=""
id="finalpoint" />Add FINAL point</label></li>
</ul>
<span class="button" style="width:65px"
name="route"><span>Route</span></span>
<span class="button" style="width:65px"
name="reverse"><span>Reverse</span></span>
<span class="button" style="width:65px"
name="reset"><span>Reset</span></span>
</fieldset>
<fieldset name="geocode">
<legend> Geocode Address </legend>
<input type="text" name="address" style="width:100%;color:gray;"
value="No data available" readonly="readonly" />
<i>Example: 201 Bewicke Avenue, North Vancouver BC V7M 3M7</i>
<span class="button" style="width:65px"
name="_geocode"><span>Geocode</span></span>
<span class="button" style="width:65px"
name="_empty"><span>Reset</span></span>
</fieldset>
<fieldset name="isoline">
<legend> Isoline (Driving Distance) </legend>
<input type="text" name="distance" style="width:50px;text-align:right;"
value="10000" maxlength="5" /> [m] around START point
<span class="button" style="width:65px;"
name="dd_calc"><span>Isoline</span></span>
<span class="button" style="width:65px;"
name="dd_reset"><span>Reset</span></span>
</fieldset>
<fieldset name="log">
<legend> Routing Log </legend> <pre><b>START: </b><span name="startpoint"></span></pre> <pre><b>FINAL: </b><span name="finalpoint"></span></pre> <pre><b>EDGES: </b><span name="edges"></span></pre>
<pre><b>LENGTH: </b><span name="length"></span></pre> <pre><b>TIME*: </b><span name="pgtime"></span></pre> <i>(*) Query time with PHP</i>
</fieldset>
<fieldset name="info">
<legend> Route Info </legend> <pre><b>EDGE-ID: </b><span name="edge_id"></span></pre>
<pre><b>DISTANCE: </b><span name="distance"></span></pre>
</fieldset>
</div>
</body> </html>
But a cant understand, please, if anybody helpme to understand this code, and I think this code its incomplete. Helpme please
pete16es12/06/07 23:17:56

