-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselect.html
179 lines (151 loc) · 6.76 KB
/
select.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script>
<script src="script.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#gmap_radius").change(function(){
updateCircle();
});
});
</script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="gmap_canvas"></div>
<div class="actions">
<div class="button">
<label for="gmap_where">Where:</label>
<input id="gmap_where" type="text" name="gmap_where" />
<br><br>
<input type="text" id="lat" name="lat" value="40.7143528" /> <br><br>
<input type="text" id="lng" name="lng" value="-74.0059731" />
</div>
<div id="button2" class="button" onclick="findAddress(); return false;">Set Location</div>
<div class="button">
<label for="gmap_keyword">Keyword (optional):</label>
<input id="gmap_keyword" type="text" name="gmap_keyword" /></div>
<div class="button">
<label for="gmap_type">Type:</label>
<select name="gmap_type" id="gmap_type">
<option value="accounting">accounting</option>
<option value="airport">airport</option>
<option value="amusement_park">amusement_park</option>
<option value="aquarium">aquarium</option>
<option value="art_gallery">art_gallery</option>
<option value="atm">atm</option>
<option value="bakery">bakery</option>
<option value="bank">bank</option>
<option value="bar">bar</option>
<option value="beauty_salon">beauty_salon</option>
<option value="bicycle_store">bicycle_store</option>
<option value="book_store">book_store</option>
<option value="bowling_alley">bowling_alley</option>
<option value="bus_station">bus_station</option>
<option value="cafe">cafe</option>
<option value="campground">campground</option>
<option value="car_dealer">car_dealer</option>
<option value="car_rental">car_rental</option>
<option value="car_repair">car_repair</option>
<option value="car_wash">car_wash</option>
<option value="casino">casino</option>
<option value="cemetery">cemetery</option>
<option value="church">church</option>
<option value="city_hall">city_hall</option>
<option value="clothing_store">clothing_store</option>
<option value="convenience_store">convenience_store</option>
<option value="courthouse">courthouse</option>
<option value="dentist">dentist</option>
<option value="department_store">department_store</option>
<option value="doctor">doctor</option>
<option value="electrician">electrician</option>
<option value="electronics_store">electronics_store</option>
<option value="embassy">embassy</option>
<option value="fire_station">fire_station</option>
<option value="florist">florist</option>
<option value="funeral_home">funeral_home</option>
<option value="furniture_store">furniture_store</option>
<option value="gas_station">gas_station</option>
<option value="grocery_or_supermarket">grocery_or_supermarket</option>
<option value="gym">gym</option>
<option value="hair_care">hair_care</option>
<option value="hardware_store">hardware_store</option>
<option value="hindu_temple">hindu_temple</option>
<option value="home_goods_store">home_goods_store</option>
<option value="hospital">hospital</option>
<option value="insurance_agency">insurance_agency</option>
<option value="jewelry_store">jewelry_store</option>
<option value="laundry">laundry</option>
<option value="lawyer">lawyer</option>
<option value="library">library</option>
<option value="liquor_store">liquor_store</option>
<option value="local_government_office">local_government_office</option>
<option value="locksmith">locksmith</option>
<option value="lodging">lodging</option>
<option value="meal_delivery">meal_delivery</option>
<option value="meal_takeaway">meal_takeaway</option>
<option value="mosque">mosque</option>
<option value="movie_rental">movie_rental</option>
<option value="movie_theater">movie_theater</option>
<option value="moving_company">moving_company</option>
<option value="museum">museum</option>
<option value="night_club">night_club</option>
<option value="painter">painter</option>
<option value="park">park</option>
<option value="parking">parking</option>
<option value="pet_store">pet_store</option>
<option value="pharmacy">pharmacy</option>
<option value="physiotherapist">physiotherapist</option>
<option value="place_of_worship(deprecated)">place_of_worship(deprecated)</option>
<option value="plumber">plumber</option>
<option value="police">police</option>
<option value="post_office">post_office</option>
<option value="real_estate_agency">real_estate_agency</option>
<option value="restaurant">restaurant</option>
<option value="roofing_contractor">roofing_contractor</option>
<option value="rv_park">rv_park</option>
<option value="school">school</option>
<option value="shoe_store">shoe_store</option>
<option value="shopping_mall">shopping_mall</option>
<option value="spa">spa</option>
<option value="stadium">stadium</option>
<option value="storage">storage</option>
<option value="store">store</option>
<option value="subway_station">subway_station</option>
<option value="synagogue">synagogue</option>
<option value="taxi_stand">taxi_stand</option>
<option value="train_station">train_station</option>
<option value="transit_station">transit_station</option>
<option value="travel_agency">travel_agency</option>
<option value="university">university</option>
<option value="veterinary_care">veterinary_care</option>
<option value="zoo">zoo</option>
</select>
</div>
<div class="button">
<label for="gmap_radius">Radius - Max 5000 Meters:</label>
<input type="text" id="gmap_radius" name="gmap_radius" onkeyup="this.value = minmax(this.value, 100, 5000)" value="5000"> </input>
</div>
<div id="button1" class="button" onclick="findPlaces(); return false;">Search for objects</div>
<!--<div id="reload" class="button" onclick="reloadList();">Reload list after search</div>--->
<div id="clear" class="button" onclick="clearList();">Clear List</div>
<div id="send" class="button" onclick="sendList();">Send to Geo JSON</div>
</DIV>
<script type="text/javascript">
function minmax(value, min, max)
{
if(parseInt(value) < min || isNaN(value))
return 100;
else if(parseInt(value) > max)
return 5000;
else return value;
}
</script>
<table id="list">
<p >
</p>
</table>
</body>