added working ALT
This commit is contained in:
parent
7d657b7222
commit
b11eef1cf7
8 changed files with 167 additions and 80 deletions
|
|
@ -31,10 +31,20 @@
|
|||
<input type="text" class="form-control" name="to" id="to">
|
||||
</div>
|
||||
|
||||
<div class="form group">
|
||||
<label for="algorithm">Algorithm</label>
|
||||
<select name="algorithm" id="algorithm" class="form-control">
|
||||
<option value="dijkstra">Dijkstra</option>
|
||||
<option value="astar-haversine">A* with haversine</option>
|
||||
<option value="alt">ALT</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<button class="btn btn-primary" onclick="get_route()">Submit</button>
|
||||
<button class="btn btn-primary" onclick="get_random_route()">Random Route</button>
|
||||
<p>Route Cost: <input class="form-control " type="text" id="routecost" readonly></p>
|
||||
<p>Algorithm: <input class="form-control " type="text" id="algorithm_used" readonly></p>
|
||||
</div>
|
||||
<div id="map" class="col-9"></div>
|
||||
<script type="text/javascript" src="/static/js/script.js"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue