-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGooglemaps html code.html
49 lines (38 loc) · 1.37 KB
/
Googlemaps html code.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<html>
<head>
<title>Shortest Distance Finder</title>
<meta type = "description" content = "Find the distance between two points on the map and find the shortest route between them"/>
<script type = "text/javascript" src = "http://maps.google.com/maps/api/js?sensor=true"></script>
<script type = "text/javascript" src= "googlemapsapitest.js"></script>
</head>
<body bgcolor="#FFFFFF">
<div id="form" style="width:100%; height:20%">
<table align="center" valign="center">
<tr>
<td colspan="8" align="center"><b>Calculate the distance between two locations</b></td>
</tr>
<tr>
<td colspan="8"> </td>
</tr>
<tr>
<td>First address:</td>
<td> </td>
<td><input type="text" name="address1" id="address1" size="50"/></td>
<td> </td>
<td>Second address:</td>
<td> </td>
<td><input type="text" name="address2" id="address2" size="50"/></td>
</tr>
<tr>
<td colspan="8"> </td>
</tr>
<tr>
<td colspan="8" align="center"><input type="button" value="Calculate" onclick="initializeAndShowMap();"/></td>
</tr>
</table>
</div>
<center><div style="width:100%; height:10%" id="distance_direct"></div></center>
<center><div style="width:100%; height:10%" id="distance_road"></div></center>
<center><div id="map_canvas" style="width:80%; height:60%"></div></center>
</body>
</html>