forked from agaidus/optimize_stops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
optimize_stops_1_person_walk.html
431 lines (204 loc) · 21.8 KB
/
optimize_stops_1_person_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
<!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_f4e2eabbab5f48969c4616fdf1cbe276 {
position : relative;
width : 100.0%;
height: 100.0%;
left: 0.0%;
top: 0.0%;
}
</style>
</head>
<body>
<div class="folium-map" id="map_f4e2eabbab5f48969c4616fdf1cbe276" ></div>
</body>
<script>
var southWest = L.latLng(-90, -180);
var northEast = L.latLng(90, 180);
var bounds = L.latLngBounds(southWest, northEast);
var map_f4e2eabbab5f48969c4616fdf1cbe276 = L.map('map_f4e2eabbab5f48969c4616fdf1cbe276', {
center:[37.7797914286,-122.465204286],
zoom: 14,
maxBounds: bounds,
layers: [],
crs: L.CRS.EPSG3857
});
var tile_layer_2b926372f1da480e9f1ba7f7f011d428 = 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_f4e2eabbab5f48969c4616fdf1cbe276);
var marker_d4b465641876424ebc0c6eb03266cd6b = L.marker(
[37.77911,-122.46419],
{
icon: new L.Icon.Default()
}
)
.addTo(map_f4e2eabbab5f48969c4616fdf1cbe276);
var icon_104ec7c1470b452c9f36ce0e313fa81c = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'black',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_d4b465641876424ebc0c6eb03266cd6b.setIcon(icon_104ec7c1470b452c9f36ce0e313fa81c);
var popup_2f9f76197b874d6ea284b9e679b1e3c0 = L.popup({maxWidth: '300'});
var html_99aee52caab14989a29153e1c0ca1cd6 = $(' <div id="html_99aee52caab14989a29153e1c0ca1cd6" style="width: 100.0%; height: 100.0%;"> Home</div> ')[0];
popup_2f9f76197b874d6ea284b9e679b1e3c0.setContent(html_99aee52caab14989a29153e1c0ca1cd6);
marker_d4b465641876424ebc0c6eb03266cd6b.bindPopup(popup_2f9f76197b874d6ea284b9e679b1e3c0);
var marker_afde55931b9a40bda618acc728bb7b55 = L.marker(
[37.77002,-122.46561],
{
icon: new L.Icon.Default()
}
)
.addTo(map_f4e2eabbab5f48969c4616fdf1cbe276);
var icon_2fd5766aee23426e9f2aca6d5397caed = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'red',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_afde55931b9a40bda618acc728bb7b55.setIcon(icon_2fd5766aee23426e9f2aca6d5397caed);
var popup_7da055430ed94fd291c4789d9684313d = L.popup({maxWidth: '300'});
var html_4b22955bb30a405f98d9bc3cafbcec23 = $(' <div id="html_4b22955bb30a405f98d9bc3cafbcec23" style="width: 100.0%; height: 100.0%;"> de Young Museum</div> ')[0];
popup_7da055430ed94fd291c4789d9684313d.setContent(html_4b22955bb30a405f98d9bc3cafbcec23);
marker_afde55931b9a40bda618acc728bb7b55.bindPopup(popup_7da055430ed94fd291c4789d9684313d);
var marker_348745bacb7b42d68513ff44a66e073a = L.marker(
[37.77558,-122.45833],
{
icon: new L.Icon.Default()
}
)
.addTo(map_f4e2eabbab5f48969c4616fdf1cbe276);
var icon_8e72f98acfed483abcebac1a10d88766 = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'red',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_348745bacb7b42d68513ff44a66e073a.setIcon(icon_8e72f98acfed483abcebac1a10d88766);
var popup_4ef2da6872494c35a196e5511ee249d0 = L.popup({maxWidth: '300'});
var html_3e72fe432000485e80be70af01af5d5b = $(' <div id="html_3e72fe432000485e80be70af01af5d5b" style="width: 100.0%; height: 100.0%;"> Arguello Market</div> ')[0];
popup_4ef2da6872494c35a196e5511ee249d0.setContent(html_3e72fe432000485e80be70af01af5d5b);
marker_348745bacb7b42d68513ff44a66e073a.bindPopup(popup_4ef2da6872494c35a196e5511ee249d0);
var marker_b9d8cb4f27e74dc9bfb8f6ffcec52ddf = L.marker(
[37.78621,-122.45184],
{
icon: new L.Icon.Default()
}
)
.addTo(map_f4e2eabbab5f48969c4616fdf1cbe276);
var icon_0762c5a23ab14f40b553e778e7746e72 = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'red',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_b9d8cb4f27e74dc9bfb8f6ffcec52ddf.setIcon(icon_0762c5a23ab14f40b553e778e7746e72);
var popup_b3572d9481f5488b95e784f8f573ee27 = L.popup({maxWidth: '300'});
var html_f05151aeaad543d1a54f04400c1e66a0 = $(' <div id="html_f05151aeaad543d1a54f04400c1e66a0" style="width: 100.0%; height: 100.0%;"> Noah's Bagels</div> ')[0];
popup_b3572d9481f5488b95e784f8f573ee27.setContent(html_f05151aeaad543d1a54f04400c1e66a0);
marker_b9d8cb4f27e74dc9bfb8f6ffcec52ddf.bindPopup(popup_b3572d9481f5488b95e784f8f573ee27);
var marker_df57e63afc5c4eabbc552c726ba66331 = L.marker(
[37.78278,-122.46351],
{
icon: new L.Icon.Default()
}
)
.addTo(map_f4e2eabbab5f48969c4616fdf1cbe276);
var icon_ffcaf051f0e84b2ea72e97ad6487e365 = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'red',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_df57e63afc5c4eabbc552c726ba66331.setIcon(icon_ffcaf051f0e84b2ea72e97ad6487e365);
var popup_835da1d337a44c29b18cd7ce72b3a385 = L.popup({maxWidth: '300'});
var html_ad8067a9a2824c3bb773b65257c1f714 = $(' <div id="html_ad8067a9a2824c3bb773b65257c1f714" style="width: 100.0%; height: 100.0%;"> Toy Boat</div> ')[0];
popup_835da1d337a44c29b18cd7ce72b3a385.setContent(html_ad8067a9a2824c3bb773b65257c1f714);
marker_df57e63afc5c4eabbc552c726ba66331.bindPopup(popup_835da1d337a44c29b18cd7ce72b3a385);
var marker_e7597370bb9c492190a240df58e2654b = L.marker(
[37.78371,-122.483],
{
icon: new L.Icon.Default()
}
)
.addTo(map_f4e2eabbab5f48969c4616fdf1cbe276);
var icon_7a38fefcb48b4f79ab0a4d49fb7d73cb = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'red',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_e7597370bb9c492190a240df58e2654b.setIcon(icon_7a38fefcb48b4f79ab0a4d49fb7d73cb);
var popup_26a3e8e5608c4edc9ae9e43fa1b5ecdf = L.popup({maxWidth: '300'});
var html_990d03f683194991b015b49f929db6ab = $(' <div id="html_990d03f683194991b015b49f929db6ab" style="width: 100.0%; height: 100.0%;"> Pizzetta</div> ')[0];
popup_26a3e8e5608c4edc9ae9e43fa1b5ecdf.setContent(html_990d03f683194991b015b49f929db6ab);
marker_e7597370bb9c492190a240df58e2654b.bindPopup(popup_26a3e8e5608c4edc9ae9e43fa1b5ecdf);
var marker_5f0a8244d19c4c8e8ffb735914c6d750 = L.marker(
[37.78113,-122.46995],
{
icon: new L.Icon.Default()
}
)
.addTo(map_f4e2eabbab5f48969c4616fdf1cbe276);
var icon_bac45930fc0041b48b4e75ac00bb3d73 = L.AwesomeMarkers.icon({
icon: 'mapmarker',
iconColor: 'white',
markerColor: 'red',
prefix: 'glyphicon',
extraClasses: 'fa-rotate-0'
});
marker_5f0a8244d19c4c8e8ffb735914c6d750.setIcon(icon_bac45930fc0041b48b4e75ac00bb3d73);
var popup_e941270ad0054aa59e78790957d79a92 = L.popup({maxWidth: '300'});
var html_8b55f184ec9d43dbb0cf4b6becd01484 = $(' <div id="html_8b55f184ec9d43dbb0cf4b6becd01484" style="width: 100.0%; height: 100.0%;"> Lamps Plus</div> ')[0];
popup_e941270ad0054aa59e78790957d79a92.setContent(html_8b55f184ec9d43dbb0cf4b6becd01484);
marker_5f0a8244d19c4c8e8ffb735914c6d750.bindPopup(popup_e941270ad0054aa59e78790957d79a92);
var poly_line_e1ace33608f743ffb09f8d98a40b79e4 = 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.777595, -122.458634], [37.777736, -122.458642], [37.778011, -122.458657], [37.778091, -122.458001], [37.778728, -122.45813], [37.778797, -122.458123], [37.778827, -122.45813], [37.77885, -122.458123], [37.778873, -122.458107], [37.778892, -122.458092], [37.778915, -122.458054], [37.77893, -122.458008], [37.778938, -122.45797], [37.778945, -122.457932], [37.779014, -122.457375], [37.779033, -122.457322], [37.779056, -122.457261], [37.779071, -122.45723], [37.779098, -122.457192], [37.779132, -122.457146], [37.779174, -122.4571], [37.779216, -122.457055], [37.779251, -122.457016], [37.779293, -122.456994], [37.779319, -122.456978], [37.77935, -122.456971], [37.77938, -122.456971], [37.779407, -122.456971], [37.779468, -122.456978], [37.779579, -122.457001], [37.779594, -122.456902], [37.779605, -122.456833], [37.779621, -122.456757], [37.779644, -122.456688], [37.77967, -122.456612], [37.779708, -122.456513], [37.779808, -122.456238], [37.779899, -122.455987], [37.779945, -122.455857], [37.779991, -122.455735], [37.780006, -122.455681], [37.780017, -122.45562], [37.780029, -122.455559], [37.780036, -122.455491], [37.780097, -122.455018], [37.78012, -122.454834], [37.780242, -122.453896], [37.780364, -122.45292], [37.781669, -122.453179], [37.781787, -122.453202], [37.783954, -122.453637], [37.784057, -122.453652], [37.784168, -122.453667], [37.784267, -122.453682], [37.784378, -122.453698], [37.784496, -122.453713], [37.784614, -122.453728], [37.784732, -122.453736], [37.784851, -122.453743], [37.784976, -122.453751], [37.785106, -122.453751], [37.785236, -122.453759], [37.785358, -122.453759], [37.785465, -122.453759], [37.785511, -122.453759], [37.785556, -122.453751], [37.785594, -122.453728], [37.785633, -122.453698], [37.785659, -122.45366], [37.785682, -122.453614], [37.785694, -122.45356], [37.785705, -122.453499], [37.785713, -122.453431], [37.785717, -122.453377], [37.785724, -122.453278], [37.78577, -122.45292], [37.785877, -122.45208], [37.785934, -122.451638], [37.785934, -122.45163], [37.786239, -122.451699], [37.786239, -122.451699], [37.786476, -122.451745], [37.786624, -122.451775], [37.78643, -122.453324], [37.786418, -122.453423], [37.786388, -122.453698], [37.786312, -122.4543], [37.786251, -122.454789], [37.786212, -122.455063], [37.786109, -122.455887], [37.786003, -122.456711], [37.785972, -122.456978], [37.785831, -122.458069], [37.785686, -122.459214], [37.785545, -122.460328], [37.785408, -122.461396], [37.785274, -122.462456], [37.785137, -122.463524], [37.784866, -122.463501], [37.783, -122.463372], [37.782791, -122.463402], [37.782791, -122.463402], [37.783, -122.463372], [37.782951, -122.46444], [37.782901, -122.465508], [37.782855, -122.466584], [37.782806, -122.467652], [37.782756, -122.46872], [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.782169, -122.481675], [37.782215, -122.480607], [37.782264, -122.479531], [37.782314, -122.478463], [37.782363, -122.477395], [37.782409, -122.476319], [37.782459, -122.475251], [37.782512, -122.474129], [37.782566, -122.473008], [37.782585, -122.472542], [37.782592, -122.472397], [37.782604, -122.4721], [37.782611, -122.471932], [37.782661, -122.470864], [37.782707, -122.469788], [37.782382, -122.469765], [37.78115, -122.469704], [37.78115, -122.469704], [37.780845, -122.469658], [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: 'blue',
});
map_f4e2eabbab5f48969c4616fdf1cbe276.addLayer(poly_line_e1ace33608f743ffb09f8d98a40b79e4);
</script>