-
Notifications
You must be signed in to change notification settings - Fork 2
/
optimize_stops_3_people_walk.html
453 lines (216 loc) · 23.2 KB
/
optimize_stops_3_people_walk.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster-src.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.Default.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.css" />
<link rel="stylesheet" href="https://raw.githubusercontent.com/python-visualization/folium/master/folium/templates/leaflet.awesome.rotate.css" />
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#map {
position:absolute;
top:0;
bottom:0;
right:0;
left:0;
}
</style>
<style> #map_8afa3182933e40bcac7df1e9d934282e {
position : relative;
width : 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
</style>
</head>
<body>
<div class="folium-map" id="map_8afa3182933e40bcac7df1e9d934282e" ></div>
</body>
<script>
var southWest = L.latLng(-90, -180);
var northEast = L.latLng(90, 180);
var bounds = L.latLngBounds(southWest, northEast);
var map_8afa3182933e40bcac7df1e9d934282e = L.map('map_8afa3182933e40bcac7df1e9d934282e', {
center:[37.7797914286,-122.465204286],
zoom: 14,
maxBounds: bounds,
layers: [],
crs: L.CRS.EPSG3857
});
var tile_layer_8fbf3d9cf4e34c8b887c2b4fffbb1b5d = L.tileLayer(
'https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg',
{
maxZoom: 18,
minZoom: 1,
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.',
detectRetina: false
}
).addTo(map_8afa3182933e40bcac7df1e9d934282e);
var marker_7061f545524c478ab5663cd636bea049 = L.marker(
[37.77911,-122.46419],
{
icon: new L.Icon.Default()
}
)
.addTo(map_8afa3182933e40bcac7df1e9d934282e);
var icon_7d3c55680f05483ab1ff5c72c9a3f0fc = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'black',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_7061f545524c478ab5663cd636bea049.setIcon(icon_7d3c55680f05483ab1ff5c72c9a3f0fc);
var popup_aafde3a4458b49be83b85110d761cc09 = L.popup({maxWidth: '300'});
var html_06bae8eb622e4af3972f460633222699 = $(' <div id="html_06bae8eb622e4af3972f460633222699" style="width: 100.0%; height: 100.0%;"> Home</div> ')[0];
popup_aafde3a4458b49be83b85110d761cc09.setContent(html_06bae8eb622e4af3972f460633222699);
marker_7061f545524c478ab5663cd636bea049.bindPopup(popup_aafde3a4458b49be83b85110d761cc09);
var marker_7fed735bd15c4fb08e5aeafd0b2466ca = L.marker(
[37.78621,-122.45184],
{
icon: new L.Icon.Default()
}
)
.addTo(map_8afa3182933e40bcac7df1e9d934282e);
var icon_9974280fa23647f79b2ba67f4f9a0e8a = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'blue',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_7fed735bd15c4fb08e5aeafd0b2466ca.setIcon(icon_9974280fa23647f79b2ba67f4f9a0e8a);
var popup_d08983420e2a4249b299965926902681 = L.popup({maxWidth: '300'});
var html_af1672b530de4b8f9d609b3d1763f747 = $(' <div id="html_af1672b530de4b8f9d609b3d1763f747" style="width: 100.0%; height: 100.0%;"> 1 - Noah's Bagels</div> ')[0];
popup_d08983420e2a4249b299965926902681.setContent(html_af1672b530de4b8f9d609b3d1763f747);
marker_7fed735bd15c4fb08e5aeafd0b2466ca.bindPopup(popup_d08983420e2a4249b299965926902681);
var marker_980730a723e544a9a4cbb653313611cb = L.marker(
[37.78113,-122.46995],
{
icon: new L.Icon.Default()
}
)
.addTo(map_8afa3182933e40bcac7df1e9d934282e);
var icon_f15b8b108cc34aa3a604f5f6d49881fd = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'red',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_980730a723e544a9a4cbb653313611cb.setIcon(icon_f15b8b108cc34aa3a604f5f6d49881fd);
var popup_1a2140527d0042c9bf216b54e4654773 = L.popup({maxWidth: '300'});
var html_a45b327b9d264ccb98b43787f7249cca = $(' <div id="html_a45b327b9d264ccb98b43787f7249cca" style="width: 100.0%; height: 100.0%;"> 1 - Lamps Plus</div> ')[0];
popup_1a2140527d0042c9bf216b54e4654773.setContent(html_a45b327b9d264ccb98b43787f7249cca);
marker_980730a723e544a9a4cbb653313611cb.bindPopup(popup_1a2140527d0042c9bf216b54e4654773);
var marker_c3d8c10065124443b69268e741e2093e = L.marker(
[37.78371,-122.483],
{
icon: new L.Icon.Default()
}
)
.addTo(map_8afa3182933e40bcac7df1e9d934282e);
var icon_d6a0c100adc4484487feaeb063f43f24 = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'red',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_c3d8c10065124443b69268e741e2093e.setIcon(icon_d6a0c100adc4484487feaeb063f43f24);
var popup_c0bb61f7d1e04ba0a8308a6c8238de61 = L.popup({maxWidth: '300'});
var html_d28796c97a6e424d9cbd5374c8395374 = $(' <div id="html_d28796c97a6e424d9cbd5374c8395374" style="width: 100.0%; height: 100.0%;"> 2 - Pizzetta</div> ')[0];
popup_c0bb61f7d1e04ba0a8308a6c8238de61.setContent(html_d28796c97a6e424d9cbd5374c8395374);
marker_c3d8c10065124443b69268e741e2093e.bindPopup(popup_c0bb61f7d1e04ba0a8308a6c8238de61);
var marker_476c156bcd794212ab816ad4d09a36ab = L.marker(
[37.77002,-122.46561],
{
icon: new L.Icon.Default()
}
)
.addTo(map_8afa3182933e40bcac7df1e9d934282e);
var icon_dcf3348c05d1481b9ef9ae7e73e8c8c4 = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'green',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_476c156bcd794212ab816ad4d09a36ab.setIcon(icon_dcf3348c05d1481b9ef9ae7e73e8c8c4);
var popup_2a1c26a19b3b4351b62e01050da879a6 = L.popup({maxWidth: '300'});
var html_125b0679824d46c49d6168ca0594742d = $(' <div id="html_125b0679824d46c49d6168ca0594742d" style="width: 100.0%; height: 100.0%;"> 1 - de Young Museum</div> ')[0];
popup_2a1c26a19b3b4351b62e01050da879a6.setContent(html_125b0679824d46c49d6168ca0594742d);
marker_476c156bcd794212ab816ad4d09a36ab.bindPopup(popup_2a1c26a19b3b4351b62e01050da879a6);
var marker_b478f80b5a004728971c492a98b03251 = L.marker(
[37.77558,-122.45833],
{
icon: new L.Icon.Default()
}
)
.addTo(map_8afa3182933e40bcac7df1e9d934282e);
var icon_3032dab5281b4b8a8e4583cc4f5d9a45 = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'green',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_b478f80b5a004728971c492a98b03251.setIcon(icon_3032dab5281b4b8a8e4583cc4f5d9a45);
var popup_4f6e1d6dc5c349739fd6cff632c7e857 = L.popup({maxWidth: '300'});
var html_e9c5614a3ead417fb9f134f456aed53b = $(' <div id="html_e9c5614a3ead417fb9f134f456aed53b" style="width: 100.0%; height: 100.0%;"> 2 - Arguello Market</div> ')[0];
popup_4f6e1d6dc5c349739fd6cff632c7e857.setContent(html_e9c5614a3ead417fb9f134f456aed53b);
marker_b478f80b5a004728971c492a98b03251.bindPopup(popup_4f6e1d6dc5c349739fd6cff632c7e857);
var marker_0e46d288329c4d2890479d94b5576258 = L.marker(
[37.78278,-122.46351],
{
icon: new L.Icon.Default()
}
)
.addTo(map_8afa3182933e40bcac7df1e9d934282e);
var icon_ff8e78aada0b4ecb9930925ecab851af = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'green',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_0e46d288329c4d2890479d94b5576258.setIcon(icon_ff8e78aada0b4ecb9930925ecab851af);
var popup_def8a54adeac403984d3065f19853b78 = L.popup({maxWidth: '300'});
var html_ffe33f5ab53b4ee18bf83f77a6605d14 = $(' <div id="html_ffe33f5ab53b4ee18bf83f77a6605d14" style="width: 100.0%; height: 100.0%;"> 3 - Toy Boat</div> ')[0];
popup_def8a54adeac403984d3065f19853b78.setContent(html_ffe33f5ab53b4ee18bf83f77a6605d14);
marker_0e46d288329c4d2890479d94b5576258.bindPopup(popup_def8a54adeac403984d3065f19853b78);
var poly_line_0a8a44d43b7e4bb1aef15c742b41a1f2 = L.polyline(
[[37.779106, -122.464158], [37.780529, -122.464264], [37.780967, -122.464295], [37.781089, -122.464303], [37.781513, -122.464333], [37.782093, -122.464379], [37.782238, -122.464386], [37.782546, -122.464409], [37.782951, -122.46444], [37.78479, -122.46457], [37.785003, -122.464585], [37.785137, -122.463524], [37.785274, -122.462456], [37.785408, -122.461396], [37.785545, -122.460328], [37.785686, -122.459214], [37.785831, -122.458069], [37.785972, -122.456978], [37.786003, -122.456711], [37.786109, -122.455887], [37.786212, -122.455063], [37.786251, -122.454789], [37.786312, -122.4543], [37.786388, -122.453698], [37.786418, -122.453423], [37.78643, -122.453324], [37.786624, -122.451775], [37.786476, -122.451745], [37.786239, -122.451699], [37.786239, -122.451699], [37.785934, -122.45163], [37.785934, -122.451638], [37.785877, -122.45208], [37.78577, -122.45292], [37.785724, -122.453278], [37.785717, -122.453377], [37.785713, -122.453431], [37.785705, -122.453499], [37.785694, -122.45356], [37.785682, -122.453614], [37.785659, -122.45366], [37.785633, -122.453698], [37.785594, -122.453728], [37.785556, -122.453751], [37.785511, -122.453759], [37.785465, -122.453759], [37.785358, -122.453759], [37.785236, -122.453759], [37.785106, -122.453751], [37.784976, -122.453751], [37.784851, -122.453743], [37.784732, -122.453736], [37.784614, -122.453728], [37.784496, -122.453713], [37.784378, -122.453698], [37.784267, -122.453682], [37.784168, -122.453667], [37.784057, -122.453652], [37.783954, -122.453637], [37.781787, -122.453202], [37.781669, -122.453179], [37.780364, -122.45292], [37.780242, -122.453896], [37.78012, -122.454834], [37.780097, -122.455018], [37.780036, -122.455491], [37.780029, -122.455559], [37.780017, -122.45562], [37.780006, -122.455681], [37.779991, -122.455735], [37.779945, -122.455857], [37.779899, -122.455987], [37.779808, -122.456238], [37.779708, -122.456513], [37.77967, -122.456612], [37.779644, -122.456688], [37.779621, -122.456757], [37.779605, -122.456833], [37.779594, -122.456902], [37.779579, -122.457001], [37.779483, -122.457764], [37.779472, -122.45784], [37.779373, -122.458619], [37.779357, -122.458756], [37.77935, -122.458825], [37.779342, -122.458893], [37.7793, -122.459878], [37.779251, -122.460946], [37.779201, -122.462021], [37.779151, -122.463097], [37.779109, -122.464203]],
{
color: 'blue',
});
map_8afa3182933e40bcac7df1e9d934282e.addLayer(poly_line_0a8a44d43b7e4bb1aef15c742b41a1f2);
var poly_line_cc57d3bd0c994d38bf919c1eef8c8b17 = L.polyline(
[[37.779106, -122.464158], [37.780529, -122.464264], [37.780967, -122.464295], [37.780918, -122.465363], [37.780902, -122.465714], [37.780868, -122.466439], [37.780853, -122.46679], [37.780822, -122.467507], [37.780773, -122.468575], [37.780723, -122.469651], [37.780845, -122.469658], [37.78115, -122.469704], [37.78115, -122.469704], [37.782382, -122.469765], [37.782707, -122.469788], [37.782661, -122.470864], [37.782611, -122.471932], [37.782604, -122.4721], [37.782592, -122.472397], [37.782585, -122.472542], [37.782566, -122.473008], [37.782512, -122.474129], [37.782459, -122.475251], [37.782409, -122.476319], [37.782363, -122.477395], [37.782314, -122.478463], [37.782264, -122.479531], [37.782215, -122.480607], [37.782169, -122.481675], [37.782119, -122.48275], [37.783718, -122.482903], [37.783718, -122.482903], [37.782119, -122.48275], [37.781738, -122.48272], [37.780258, -122.482613], [37.780277, -122.482239], [37.780307, -122.481545], [37.780326, -122.481133], [37.780357, -122.480477], [37.780403, -122.479401], [37.780452, -122.478333], [37.780467, -122.477974], [37.780502, -122.477257], [37.780513, -122.476937], [37.780551, -122.476189], [37.780597, -122.475113], [37.780651, -122.473992], [37.78067, -122.473504], [37.7807, -122.47287], [37.780719, -122.472489], [37.780719, -122.472405], [37.780597, -122.472397], [37.780605, -122.472252], [37.780609, -122.472176], [37.780616, -122.471985], [37.780628, -122.471795], [37.780658, -122.471093], [37.780673, -122.470719], [37.780708, -122.470025], [37.780723, -122.469651], [37.780773, -122.468575], [37.780822, -122.467507], [37.780853, -122.46679], [37.780868, -122.466439], [37.780902, -122.465714], [37.780918, -122.465363], [37.780967, -122.464295], [37.780529, -122.464264], [37.779106, -122.464158]],
{
color: 'red',
});
map_8afa3182933e40bcac7df1e9d934282e.addLayer(poly_line_cc57d3bd0c994d38bf919c1eef8c8b17);
var poly_line_6dcccafa36db4fcfbf3891c15e149047 = L.polyline(
[[37.779106, -122.464158], [37.777233, -122.464028], [37.775459, -122.463898], [37.775371, -122.463891], [37.7742, -122.463807], [37.773635, -122.463769], [37.773651, -122.463662], [37.773536, -122.463669], [37.77349, -122.463669], [37.773448, -122.463669], [37.773414, -122.463723], [37.773406, -122.463769], [37.773281, -122.463738], [37.773189, -122.463738], [37.773105, -122.463746], [37.772991, -122.463814], [37.77293, -122.46386], [37.772872, -122.463898], [37.772609, -122.463997], [37.772529, -122.464028], [37.77243, -122.464013], [37.772369, -122.464043], [37.772308, -122.464074], [37.772365, -122.464272], [37.772399, -122.464402], [37.77243, -122.464524], [37.77246, -122.464654], [37.772384, -122.464684], [37.772331, -122.464699], [37.77227, -122.464715], [37.772182, -122.464829], [37.772159, -122.464974], [37.772113, -122.465066], [37.771965, -122.46531], [37.771766, -122.465279], [37.771575, -122.465264], [37.771366, -122.465195], [37.771224, -122.465188], [37.77106, -122.465188], [37.770946, -122.465195], [37.770797, -122.465134], [37.770626, -122.46505], [37.770423, -122.465104], [37.770313, -122.465096], [37.770236, -122.464951], [37.770092, -122.464776], [37.76995, -122.464608], [37.769802, -122.464486], [37.769725, -122.46447], [37.769695, -122.46457], [37.76976, -122.464608], [37.769798, -122.464669], [37.769832, -122.464798], [37.769863, -122.464882], [37.769958, -122.465012], [37.769958, -122.465012], [37.769863, -122.464882], [37.769832, -122.464798], [37.769798, -122.464669], [37.76976, -122.464608], [37.769695, -122.46457], [37.769725, -122.46447], [37.769802, -122.464486], [37.76995, -122.464608], [37.770092, -122.464776], [37.770236, -122.464951], [37.770313, -122.465096], [37.770423, -122.465104], [37.770626, -122.46505], [37.770931, -122.464577], [37.771018, -122.464318], [37.771114, -122.464127], [37.771156, -122.463959], [37.771171, -122.463738], [37.771175, -122.463509], [37.771209, -122.46325], [37.771286, -122.46312], [37.771427, -122.463074], [37.771442, -122.462853], [37.771457, -122.4627], [37.77148, -122.462655], [37.771652, -122.462571], [37.771739, -122.46251], [37.771686, -122.462357], [37.771759, -122.462342], [37.771835, -122.462304], [37.771934, -122.462266], [37.771915, -122.462182], [37.771903, -122.462143], [37.771965, -122.46209], [37.772083, -122.46193], [37.772178, -122.461716], [37.772274, -122.46151], [37.772407, -122.461335], [37.772548, -122.461228], [37.772579, -122.461213], [37.772655, -122.461175], [37.772708, -122.461144], [37.772659, -122.461083], [37.77272, -122.461037], [37.772766, -122.460999], [37.772819, -122.460946], [37.772872, -122.460877], [37.772918, -122.460793], [37.772953, -122.460717], [37.772987, -122.460618], [37.773014, -122.460511], [37.773036, -122.460396], [37.773117, -122.459824], [37.773147, -122.45961], [37.773193, -122.459267], [37.773208, -122.459145], [37.773273, -122.459153], [37.773571, -122.458893], [37.773845, -122.458626], [37.774002, -122.458527], [37.774139, -122.458497], [37.774299, -122.458512], [37.774299, -122.458458], [37.774299, -122.45839], [37.77441, -122.458405], [37.774703, -122.45842], [37.774982, -122.458443], [37.775245, -122.458458], [37.775569, -122.458504], [37.775569, -122.458504], [37.775615, -122.458489], [37.776119, -122.458527], [37.776187, -122.458527], [37.776844, -122.458573], [37.777126, -122.458596], [37.777286, -122.458611], [37.777336, -122.458741], [37.777408, -122.458947], [37.777431, -122.459015], [37.777446, -122.459076], [37.777454, -122.45913], [37.777458, -122.459183], [37.777435, -122.459649], [37.777427, -122.45974], [37.777423, -122.459839], [37.777378, -122.460808], [37.777332, -122.461884], [37.777282, -122.46296], [37.779151, -122.463097], [37.781017, -122.463227], [37.781139, -122.463234], [37.781539, -122.463265], [37.782791, -122.463402], [37.782791, -122.463402], [37.781539, -122.463265], [37.781139, -122.463234], [37.781089, -122.464303], [37.780967, -122.464295], [37.780529, -122.464264], [37.779106, -122.464158]],
{
color: 'green',
});
map_8afa3182933e40bcac7df1e9d934282e.addLayer(poly_line_6dcccafa36db4fcfbf3891c15e149047);
</script>