Commit 81dacdfbe20b73a7cddf25110852ce8dea8e980e

Authored by Sing Chung Xiao
1 parent 20d5b2c910
Exists in master

Added autocomplete.

Showing 2 changed files with 654 additions and 586 deletions Side-by-side Diff

views/pages/index.ejs View file @ 81dacdf
... ... @@ -13,6 +13,9 @@
13 13 <p>The best way to find the safest routes.</p>
14 14 </div>
15 15  
  16 +
  17 +
  18 +
16 19 <% if(!locals.loggedin || (locals.loggedin != "true")){ %>
17 20  
18 21 <%console.log(locals.loggedin)%>
... ... @@ -22,6 +25,7 @@
22 25 <!-- <input type="submit" value="Submit"> -->
23 26 </form>
24 27 <% } %>
  28 +
25 29  
26 30  
27 31  
28 32  
... ... @@ -30,13 +34,13 @@
30 34 <form action="/landing">
31 35 <!-- First text field and label above the text field for current location -->
32 36 <div class="form-group text-center">
33   - <label for="currentLocation">From</label>
34   - <input type="currentLocation" class="form-control" id="origin" placeholder="Enter Current Location" onchange="saveFrom()">
  37 + <label for="origin">From</label>
  38 + <input type="text" class="form-control" id="origin" placeholder="Enter Current Location" onclick="initFrom()">
35 39 </div>
36 40 <!-- Second text field and label above the text field for destination -->
37 41 <div class="form-group text-center">
38   - <label for="destination">To</label>
39   - <input type="destination" class="form-control" id="dest" placeholder="Enter Destination" onchange="saveTo()">
  42 + <label for="dest">To</label>
  43 + <input type="text" class="form-control" id="dest" placeholder="Enter Destination" onclick="initTo()">
40 44 </div>
41 45 <!-- First travel option button, walking
42 46 This contains a row that holds buttons of type button. Buttons are highlighted upon selection.
43 47  
... ... @@ -65,9 +69,35 @@
65 69  
66 70 <!-- Google Map functionality. -->
67 71 <script>
  72 + function initFrom() {
  73 + var temp = document.getElementById("origin");
  74 +
  75 + var autoOrigin = new google.maps.places.Autocomplete(temp);
  76 +
  77 + google.maps.event.addListener(autoOrigin, 'place_changed', function () {
  78 + var place = autoOrigin.getPlace();
  79 + // Testing.
  80 + console.log(place);
  81 + localStorage.setItem("from", place.formatted_address);
  82 + });
  83 + }
  84 +
  85 + function initTo() {
  86 + var temp = document.getElementById("dest");
  87 +
  88 + var autoDest = new google.maps.places.Autocomplete(temp);
  89 +
  90 + google.maps.event.addListener(autoDest, 'place_changed', function () {
  91 + var place = autoDest.getPlace();
  92 + // Testing.
  93 + console.log(place);
  94 + localStorage.setItem("to", place.formatted_address);
  95 + });
  96 + }
  97 +
68 98 function saveFrom() {
69 99 var fromInput = document.getElementById("origin").value;
70   - localStorage.setItem("from", fromInput);
  100 + localStorage.setItem("from", fromInput);
71 101 }
72 102 function saveTo() {
73 103 var toInput = document.getElementById("dest").value;
... ... @@ -86,6 +116,10 @@
86 116 function login(){
87 117  
88 118 }
  119 + </script>
  120 +
  121 + <script async defer
  122 + src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDAXDHeZXEv4H4ZnThVDxpyAuxVpzOcj_U&libraries=places">
89 123 </script>
90 124  
91 125 </body>
views/pages/landing.ejs View file @ 81dacdf
Diff suppressed. Click to show
... ... @@ -14,11 +14,11 @@
14 14  
15 15 <!-- My LOCATION -->
16 16 <div>
17   - <input type="text" class="form-control text-field" id="from" name="fromText" placeholder="MY LOCATION">
  17 + <input type="text" class="form-control text-field" id="origin" name="fromText" placeholder="MY LOCATION" onclick="initFrom()">
18 18 </div>
19 19 <!-- Destination -->
20 20 <div>
21   - <input type="text" class="form-control text-field" id="to" name="toText" placeholder="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna...">
  21 + <input type="text" class="form-control text-field" id="dest" name="toText" placeholder="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna..." onclick="initTo()">
22 22 </div>
23 23  
24 24 <!-- Buttons and status information on top of the map. -->
25 25  
26 26  
27 27  
28 28  
29 29  
30 30  
31 31  
32 32  
33 33  
34 34  
35 35  
36 36  
37 37  
38 38  
39 39  
40 40  
41 41  
42 42  
... ... @@ -54,586 +54,621 @@
54 54  
55 55 <!-- Javascript for the map. -->
56 56 <script>
57   -
58   - var map, heatmap;
59   - function initMap() {
  57 + var map, heatmap;
60 58 // Used by the Google Maps Direction API.
61   - var directionsService = new google.maps.DirectionsService;
62   - var directionsDisplay = new google.maps.DirectionsRenderer;
63   - // Setting default map location.
  59 + var directionsService;
  60 + var directionsDisplay;
64 61  
65   - map = new google.maps.Map(document.getElementById('map'), {
66   - zoom: 13,
67   - center: {lat: 37.775, lng: -122.434}
68   - });
  62 + function initMap() {
  63 + directionsService = new google.maps.DirectionsService;
  64 + directionsDisplay = new google.maps.DirectionsRenderer;
  65 + // Setting default map location i.e. Geisel Library.
  66 + map = new google.maps.Map(document.getElementById('map'), {
  67 + zoom: 13,
  68 + center: {lat: 37.775, lng: -122.434}
  69 + });
69 70  
70   - heatmap = new google.maps.visualization.HeatmapLayer({
71   - data: getPoints(),
72   - map: map
73   - });
74   - directionsDisplay.setMap(map);
  71 + heatmap = new google.maps.visualization.HeatmapLayer({
  72 + data: getPoints(),
  73 + map: map
  74 + });
  75 + directionsDisplay.setMap(map);
75 76  
76   - // Keeping the map center when the browser is resized.
77   - function resizing() {
78   - var center = map.getCenter();
79   - google.maps.event.trigger(map, "resize");
80   - map.setCenter(center);
81   - }
  77 + // Keeping the map center when the browser is resized.
  78 + function resizing() {
  79 + var center = map.getCenter();
  80 + google.maps.event.trigger(map, "resize");
  81 + map.setCenter(center);
  82 + }
82 83  
83   - google.maps.event.addDomListener(window, "resize", resizing);
  84 + google.maps.event.addDomListener(window, "resize", resizing);
84 85  
85   - // // Showing route.
86   - displayRoute(directionsService, directionsDisplay);
87   - }
  86 + // // Showing route.
  87 + displayRoute(directionsService, directionsDisplay);
  88 + }
88 89  
89   - function displayRoute(directionsService, directionsDisplay) {
90   - // Textfields that show from and to.
91   - document.getElementsByName("fromText")[0].placeholder=localStorage.getItem("from");
92   - document.getElementsByName("toText")[0].placeholder=localStorage.getItem("to");
  90 + function displayRoute(directionsService, directionsDisplay) {
  91 + // Textfields that show from and to.
  92 + document.getElementsByName("fromText")[0].placeholder=localStorage.getItem("from");
  93 + document.getElementsByName("toText")[0].placeholder=localStorage.getItem("to");
93 94  
94   - var request = {
95   - origin: localStorage.getItem("from"),
96   - destination: localStorage.getItem("to"),
97   - travelMode: localStorage.getItem("mode")
98   - };
  95 + // Default mode to driving if none was chosen.
  96 + var mode = localStorage.getItem("mode");
99 97  
100   - directionsService.route(request, function(response, status) {
101   - if (status === "OK") {
102   - directionsDisplay.setDirections(response);
103   - }
104   - else {
105   - window.alert("Directions request failed due to " + status);
  98 + if (mode != "WALKING" && mode != "DRIVING" && mode != "TRANSIT") {
  99 + mode = "DRIVING";
106 100 }
107   - });
108   - }
109 101  
110   - function getPoints() {
111   - //read json here from passed in parameters
112   - //loop here that loops through the passed in json values for points along the route
113   - //return the list of objects created from those longitudes and latitudes
  102 + var request = {
  103 + origin: localStorage.getItem("from"),
  104 + destination: localStorage.getItem("to"),
  105 + travelMode: mode
  106 + };
114 107  
115   - //THIS IS THE CODE TO READ JSON BUT IT'S NOT VIABLE TO CREATE ALL THESE POINTS MANUALLY IN A JSON FILE.
116   - //So instead we copy pasted a sample set of points to demonstrate the functionality
  108 + directionsService.route(request, function(response, status) {
  109 + if (status === "OK") {
  110 + directionsDisplay.setDirections(response);
  111 + }
  112 + else {
  113 + window.alert("Directions request failed due to " + status);
  114 + }
  115 + });
  116 + }
117 117  
118   - /*var toReturn = [];
119   - for (i = 0; i < [insert ejs symbols here]spots.length[insert ejs symbols here]; i++) {
120   - toReturn.push(new google.maps.LatLng(insert ejs symbols here spots[i].latutudeinsert ejs symbols here, insert ejs symbols here spots[i].longitudeinsert ejs symbols here));
  118 + function initFrom() {
  119 + var temp = document.getElementById("origin");
  120 +
  121 + var autoOrigin = new google.maps.places.Autocomplete(temp);
  122 +
  123 + google.maps.event.addListener(autoOrigin, 'place_changed', function () {
  124 + var place = autoOrigin.getPlace();
  125 + // Testing.
  126 + console.log(place);
  127 + localStorage.setItem("from", place.formatted_address);
  128 + displayRoute(directionsService, directionsDisplay);
  129 + });
121 130 }
122 131  
123   - return toReturn;*/
  132 + function initTo() {
  133 + var temp = document.getElementById("dest");
124 134  
  135 + var autoDest = new google.maps.places.Autocomplete(temp);
125 136  
126   - return [
127   - new google.maps.LatLng(37.782551, -122.445368),
128   - new google.maps.LatLng(37.782745, -122.444586),
129   - new google.maps.LatLng(37.782842, -122.443688),
130   - new google.maps.LatLng(37.782919, -122.442815),
131   - new google.maps.LatLng(37.782992, -122.442112),
132   - new google.maps.LatLng(37.783100, -122.441461),
133   - new google.maps.LatLng(37.783206, -122.440829),
134   - new google.maps.LatLng(37.783273, -122.440324),
135   - new google.maps.LatLng(37.783316, -122.440023),
136   - new google.maps.LatLng(37.783357, -122.439794),
137   - new google.maps.LatLng(37.783371, -122.439687),
138   - new google.maps.LatLng(37.783368, -122.439666),
139   - new google.maps.LatLng(37.783383, -122.439594),
140   - new google.maps.LatLng(37.783508, -122.439525),
141   - new google.maps.LatLng(37.783842, -122.439591),
142   - new google.maps.LatLng(37.784147, -122.439668),
143   - new google.maps.LatLng(37.784206, -122.439686),
144   - new google.maps.LatLng(37.784386, -122.439790),
145   - new google.maps.LatLng(37.784701, -122.439902),
146   - new google.maps.LatLng(37.784965, -122.439938),
147   - new google.maps.LatLng(37.785010, -122.439947),
148   - new google.maps.LatLng(37.785360, -122.439952),
149   - new google.maps.LatLng(37.785715, -122.440030),
150   - new google.maps.LatLng(37.786117, -122.440119),
151   - new google.maps.LatLng(37.786564, -122.440209),
152   - new google.maps.LatLng(37.786905, -122.440270),
153   - new google.maps.LatLng(37.786956, -122.440279),
154   - new google.maps.LatLng(37.800224, -122.433520),
155   - new google.maps.LatLng(37.800155, -122.434101),
156   - new google.maps.LatLng(37.800160, -122.434430),
157   - new google.maps.LatLng(37.800378, -122.434527),
158   - new google.maps.LatLng(37.800738, -122.434598),
159   - new google.maps.LatLng(37.800938, -122.434650),
160   - new google.maps.LatLng(37.801024, -122.434889),
161   - new google.maps.LatLng(37.800955, -122.435392),
162   - new google.maps.LatLng(37.800886, -122.435959),
163   - new google.maps.LatLng(37.800811, -122.436275),
164   - new google.maps.LatLng(37.800788, -122.436299),
165   - new google.maps.LatLng(37.800719, -122.436302),
166   - new google.maps.LatLng(37.800702, -122.436298),
167   - new google.maps.LatLng(37.800661, -122.436273),
168   - new google.maps.LatLng(37.800395, -122.436172),
169   - new google.maps.LatLng(37.800228, -122.436116),
170   - new google.maps.LatLng(37.800169, -122.436130),
171   - new google.maps.LatLng(37.800066, -122.436167),
172   - new google.maps.LatLng(37.784345, -122.422922),
173   - new google.maps.LatLng(37.784389, -122.422926),
174   - new google.maps.LatLng(37.784437, -122.422924),
175   - new google.maps.LatLng(37.784746, -122.422818),
176   - new google.maps.LatLng(37.785436, -122.422959),
177   - new google.maps.LatLng(37.786120, -122.423112),
178   - new google.maps.LatLng(37.786433, -122.423029),
179   - new google.maps.LatLng(37.786631, -122.421213),
180   - new google.maps.LatLng(37.786660, -122.421033),
181   - new google.maps.LatLng(37.786801, -122.420141),
182   - new google.maps.LatLng(37.786823, -122.420034),
183   - new google.maps.LatLng(37.786831, -122.419916),
184   - new google.maps.LatLng(37.787034, -122.418208),
185   - new google.maps.LatLng(37.787056, -122.418034),
186   - new google.maps.LatLng(37.787169, -122.417145),
187   - new google.maps.LatLng(37.787217, -122.416715),
188   - new google.maps.LatLng(37.786144, -122.416403),
189   - new google.maps.LatLng(37.785292, -122.416257),
190   - new google.maps.LatLng(37.780666, -122.390374),
191   - new google.maps.LatLng(37.780501, -122.391281),
192   - new google.maps.LatLng(37.780148, -122.392052),
193   - new google.maps.LatLng(37.780173, -122.391148),
194   - new google.maps.LatLng(37.780693, -122.390592),
195   - new google.maps.LatLng(37.781261, -122.391142),
196   - new google.maps.LatLng(37.781808, -122.391730),
197   - new google.maps.LatLng(37.782340, -122.392341),
198   - new google.maps.LatLng(37.782812, -122.393022),
199   - new google.maps.LatLng(37.783300, -122.393672),
200   - new google.maps.LatLng(37.783809, -122.394275),
201   - new google.maps.LatLng(37.784246, -122.394979),
202   - new google.maps.LatLng(37.784791, -122.395958),
203   - new google.maps.LatLng(37.785675, -122.396746),
204   - new google.maps.LatLng(37.786262, -122.395780),
205   - new google.maps.LatLng(37.786776, -122.395093),
206   - new google.maps.LatLng(37.787282, -122.394426),
207   - new google.maps.LatLng(37.787783, -122.393767),
208   - new google.maps.LatLng(37.788343, -122.393184),
209   - new google.maps.LatLng(37.788895, -122.392506),
210   - new google.maps.LatLng(37.789371, -122.391701),
211   - new google.maps.LatLng(37.789722, -122.390952),
212   - new google.maps.LatLng(37.790315, -122.390305),
213   - new google.maps.LatLng(37.790738, -122.389616),
214   - new google.maps.LatLng(37.779448, -122.438702),
215   - new google.maps.LatLng(37.779023, -122.438585),
216   - new google.maps.LatLng(37.778542, -122.438492),
217   - new google.maps.LatLng(37.778100, -122.438411),
218   - new google.maps.LatLng(37.777986, -122.438376),
219   - new google.maps.LatLng(37.777680, -122.438313),
220   - new google.maps.LatLng(37.777316, -122.438273),
221   - new google.maps.LatLng(37.777135, -122.438254),
222   - new google.maps.LatLng(37.776987, -122.438303),
223   - new google.maps.LatLng(37.776946, -122.438404),
224   - new google.maps.LatLng(37.776944, -122.438467),
225   - new google.maps.LatLng(37.776892, -122.438459),
226   - new google.maps.LatLng(37.776842, -122.438442),
227   - new google.maps.LatLng(37.776822, -122.438391),
228   - new google.maps.LatLng(37.776814, -122.438412),
229   - new google.maps.LatLng(37.776787, -122.438628),
230   - new google.maps.LatLng(37.776729, -122.438650),
231   - new google.maps.LatLng(37.776759, -122.438677),
232   - new google.maps.LatLng(37.776772, -122.438498),
233   - new google.maps.LatLng(37.776787, -122.438389),
234   - new google.maps.LatLng(37.776848, -122.438283),
235   - new google.maps.LatLng(37.776870, -122.438239),
236   - new google.maps.LatLng(37.777015, -122.438198),
237   - new google.maps.LatLng(37.777333, -122.438256),
238   - new google.maps.LatLng(37.777595, -122.438308),
239   - new google.maps.LatLng(37.777797, -122.438344),
240   - new google.maps.LatLng(37.778160, -122.438442),
241   - new google.maps.LatLng(37.778414, -122.438508),
242   - new google.maps.LatLng(37.778445, -122.438516),
243   - new google.maps.LatLng(37.778503, -122.438529),
244   - new google.maps.LatLng(37.778607, -122.438549),
245   - new google.maps.LatLng(37.778670, -122.438644),
246   - new google.maps.LatLng(37.778847, -122.438706),
247   - new google.maps.LatLng(37.779240, -122.438744),
248   - new google.maps.LatLng(37.779738, -122.438822),
249   - new google.maps.LatLng(37.780201, -122.438882),
250   - new google.maps.LatLng(37.780400, -122.438905),
251   - new google.maps.LatLng(37.780501, -122.438921),
252   - new google.maps.LatLng(37.780892, -122.438986),
253   - new google.maps.LatLng(37.781446, -122.439087),
254   - new google.maps.LatLng(37.781985, -122.439199),
255   - new google.maps.LatLng(37.782239, -122.439249),
256   - new google.maps.LatLng(37.782286, -122.439266),
257   - new google.maps.LatLng(37.797847, -122.429388),
258   - new google.maps.LatLng(37.797874, -122.429180),
259   - new google.maps.LatLng(37.797885, -122.429069),
260   - new google.maps.LatLng(37.797887, -122.429050),
261   - new google.maps.LatLng(37.797933, -122.428954),
262   - new google.maps.LatLng(37.798242, -122.428990),
263   - new google.maps.LatLng(37.798617, -122.429075),
264   - new google.maps.LatLng(37.798719, -122.429092),
265   - new google.maps.LatLng(37.798944, -122.429145),
266   - new google.maps.LatLng(37.799320, -122.429251),
267   - new google.maps.LatLng(37.799590, -122.429309),
268   - new google.maps.LatLng(37.799677, -122.429324),
269   - new google.maps.LatLng(37.799966, -122.429360),
270   - new google.maps.LatLng(37.800288, -122.429430),
271   - new google.maps.LatLng(37.800443, -122.429461),
272   - new google.maps.LatLng(37.800465, -122.429474),
273   - new google.maps.LatLng(37.800644, -122.429540),
274   - new google.maps.LatLng(37.800948, -122.429620),
275   - new google.maps.LatLng(37.801242, -122.429685),
276   - new google.maps.LatLng(37.801375, -122.429702),
277   - new google.maps.LatLng(37.801400, -122.429703),
278   - new google.maps.LatLng(37.801453, -122.429707),
279   - new google.maps.LatLng(37.801473, -122.429709),
280   - new google.maps.LatLng(37.801532, -122.429707),
281   - new google.maps.LatLng(37.801852, -122.429729),
282   - new google.maps.LatLng(37.802173, -122.429789),
283   - new google.maps.LatLng(37.802459, -122.429847),
284   - new google.maps.LatLng(37.802554, -122.429825),
285   - new google.maps.LatLng(37.802647, -122.429549),
286   - new google.maps.LatLng(37.802693, -122.429179),
287   - new google.maps.LatLng(37.802729, -122.428751),
288   - new google.maps.LatLng(37.766104, -122.409291),
289   - new google.maps.LatLng(37.766103, -122.409268),
290   - new google.maps.LatLng(37.766138, -122.409229),
291   - new google.maps.LatLng(37.766183, -122.409231),
292   - new google.maps.LatLng(37.766153, -122.409276),
293   - new google.maps.LatLng(37.766005, -122.409365),
294   - new google.maps.LatLng(37.765897, -122.409570),
295   - new google.maps.LatLng(37.765767, -122.409739),
296   - new google.maps.LatLng(37.765693, -122.410389),
297   - new google.maps.LatLng(37.765615, -122.411201),
298   - new google.maps.LatLng(37.765533, -122.412121),
299   - new google.maps.LatLng(37.765467, -122.412939),
300   - new google.maps.LatLng(37.765444, -122.414821),
301   - new google.maps.LatLng(37.765444, -122.414964),
302   - new google.maps.LatLng(37.765318, -122.415424),
303   - new google.maps.LatLng(37.763961, -122.415296),
304   - new google.maps.LatLng(37.763115, -122.415196),
305   - new google.maps.LatLng(37.762967, -122.415183),
306   - new google.maps.LatLng(37.762278, -122.415127),
307   - new google.maps.LatLng(37.761675, -122.415055),
308   - new google.maps.LatLng(37.760932, -122.414988),
309   - new google.maps.LatLng(37.759337, -122.414862),
310   - new google.maps.LatLng(37.773187, -122.421922),
311   - new google.maps.LatLng(37.773043, -122.422118),
312   - new google.maps.LatLng(37.773007, -122.422165),
313   - new google.maps.LatLng(37.772979, -122.422219),
314   - new google.maps.LatLng(37.772865, -122.422394),
315   - new google.maps.LatLng(37.772779, -122.422503),
316   - new google.maps.LatLng(37.772676, -122.422701),
317   - new google.maps.LatLng(37.772606, -122.422806),
318   - new google.maps.LatLng(37.772566, -122.422840),
319   - new google.maps.LatLng(37.772508, -122.422852),
320   - new google.maps.LatLng(37.772387, -122.423011),
321   - new google.maps.LatLng(37.772099, -122.423328),
322   - new google.maps.LatLng(37.771704, -122.423783),
323   - new google.maps.LatLng(37.771481, -122.424081),
324   - new google.maps.LatLng(37.771400, -122.424179),
325   - new google.maps.LatLng(37.771352, -122.424220),
326   - new google.maps.LatLng(37.771248, -122.424327),
327   - new google.maps.LatLng(37.770904, -122.424781),
328   - new google.maps.LatLng(37.770520, -122.425283),
329   - new google.maps.LatLng(37.770337, -122.425553),
330   - new google.maps.LatLng(37.770128, -122.425832),
331   - new google.maps.LatLng(37.769756, -122.426331),
332   - new google.maps.LatLng(37.769300, -122.426902),
333   - new google.maps.LatLng(37.769132, -122.427065),
334   - new google.maps.LatLng(37.769092, -122.427103),
335   - new google.maps.LatLng(37.768979, -122.427172),
336   - new google.maps.LatLng(37.768595, -122.427634),
337   - new google.maps.LatLng(37.768372, -122.427913),
338   - new google.maps.LatLng(37.768337, -122.427961),
339   - new google.maps.LatLng(37.768244, -122.428138),
340   - new google.maps.LatLng(37.767942, -122.428581),
341   - new google.maps.LatLng(37.767482, -122.429094),
342   - new google.maps.LatLng(37.767031, -122.429606),
343   - new google.maps.LatLng(37.766732, -122.429986),
344   - new google.maps.LatLng(37.766680, -122.430058),
345   - new google.maps.LatLng(37.766633, -122.430109),
346   - new google.maps.LatLng(37.766580, -122.430211),
347   - new google.maps.LatLng(37.766367, -122.430594),
348   - new google.maps.LatLng(37.765910, -122.431137),
349   - new google.maps.LatLng(37.765353, -122.431806),
350   - new google.maps.LatLng(37.764962, -122.432298),
351   - new google.maps.LatLng(37.764868, -122.432486),
352   - new google.maps.LatLng(37.764518, -122.432913),
353   - new google.maps.LatLng(37.763435, -122.434173),
354   - new google.maps.LatLng(37.762847, -122.434953),
355   - new google.maps.LatLng(37.762291, -122.435935),
356   - new google.maps.LatLng(37.762224, -122.436074),
357   - new google.maps.LatLng(37.761957, -122.436892),
358   - new google.maps.LatLng(37.761652, -122.438886),
359   - new google.maps.LatLng(37.761284, -122.439955),
360   - new google.maps.LatLng(37.761210, -122.440068),
361   - new google.maps.LatLng(37.761064, -122.440720),
362   - new google.maps.LatLng(37.761040, -122.441411),
363   - new google.maps.LatLng(37.761048, -122.442324),
364   - new google.maps.LatLng(37.760851, -122.443118),
365   - new google.maps.LatLng(37.759977, -122.444591),
366   - new google.maps.LatLng(37.759913, -122.444698),
367   - new google.maps.LatLng(37.759623, -122.445065),
368   - new google.maps.LatLng(37.758902, -122.445158),
369   - new google.maps.LatLng(37.758428, -122.444570),
370   - new google.maps.LatLng(37.757687, -122.443340),
371   - new google.maps.LatLng(37.757583, -122.443240),
372   - new google.maps.LatLng(37.757019, -122.442787),
373   - new google.maps.LatLng(37.756603, -122.442322),
374   - new google.maps.LatLng(37.756380, -122.441602),
375   - new google.maps.LatLng(37.755790, -122.441382),
376   - new google.maps.LatLng(37.754493, -122.442133),
377   - new google.maps.LatLng(37.754361, -122.442206),
378   - new google.maps.LatLng(37.753719, -122.442650),
379   - new google.maps.LatLng(37.753096, -122.442915),
380   - new google.maps.LatLng(37.751617, -122.443211),
381   - new google.maps.LatLng(37.751496, -122.443246),
382   - new google.maps.LatLng(37.750733, -122.443428),
383   - new google.maps.LatLng(37.750126, -122.443536),
384   - new google.maps.LatLng(37.750103, -122.443784),
385   - new google.maps.LatLng(37.750390, -122.444010),
386   - new google.maps.LatLng(37.750448, -122.444013),
387   - new google.maps.LatLng(37.750536, -122.444040),
388   - new google.maps.LatLng(37.750493, -122.444141),
389   - new google.maps.LatLng(37.790859, -122.402808),
390   - new google.maps.LatLng(37.790864, -122.402768),
391   - new google.maps.LatLng(37.790995, -122.402539),
392   - new google.maps.LatLng(37.791148, -122.402172),
393   - new google.maps.LatLng(37.791385, -122.401312),
394   - new google.maps.LatLng(37.791405, -122.400776),
395   - new google.maps.LatLng(37.791288, -122.400528),
396   - new google.maps.LatLng(37.791113, -122.400441),
397   - new google.maps.LatLng(37.791027, -122.400395),
398   - new google.maps.LatLng(37.791094, -122.400311),
399   - new google.maps.LatLng(37.791211, -122.400183),
400   - new google.maps.LatLng(37.791060, -122.399334),
401   - new google.maps.LatLng(37.790538, -122.398718),
402   - new google.maps.LatLng(37.790095, -122.398086),
403   - new google.maps.LatLng(37.789644, -122.397360),
404   - new google.maps.LatLng(37.789254, -122.396844),
405   - new google.maps.LatLng(37.788855, -122.396397),
406   - new google.maps.LatLng(37.788483, -122.395963),
407   - new google.maps.LatLng(37.788015, -122.395365),
408   - new google.maps.LatLng(37.787558, -122.394735),
409   - new google.maps.LatLng(37.787472, -122.394323),
410   - new google.maps.LatLng(37.787630, -122.394025),
411   - new google.maps.LatLng(37.787767, -122.393987),
412   - new google.maps.LatLng(37.787486, -122.394452),
413   - new google.maps.LatLng(37.786977, -122.395043),
414   - new google.maps.LatLng(37.786583, -122.395552),
415   - new google.maps.LatLng(37.786540, -122.395610),
416   - new google.maps.LatLng(37.786516, -122.395659),
417   - new google.maps.LatLng(37.786378, -122.395707),
418   - new google.maps.LatLng(37.786044, -122.395362),
419   - new google.maps.LatLng(37.785598, -122.394715),
420   - new google.maps.LatLng(37.785321, -122.394361),
421   - new google.maps.LatLng(37.785207, -122.394236),
422   - new google.maps.LatLng(37.785751, -122.394062),
423   - new google.maps.LatLng(37.785996, -122.393881),
424   - new google.maps.LatLng(37.786092, -122.393830),
425   - new google.maps.LatLng(37.785998, -122.393899),
426   - new google.maps.LatLng(37.785114, -122.394365),
427   - new google.maps.LatLng(37.785022, -122.394441),
428   - new google.maps.LatLng(37.784823, -122.394635),
429   - new google.maps.LatLng(37.784719, -122.394629),
430   - new google.maps.LatLng(37.785069, -122.394176),
431   - new google.maps.LatLng(37.785500, -122.393650),
432   - new google.maps.LatLng(37.785770, -122.393291),
433   - new google.maps.LatLng(37.785839, -122.393159),
434   - new google.maps.LatLng(37.782651, -122.400628),
435   - new google.maps.LatLng(37.782616, -122.400599),
436   - new google.maps.LatLng(37.782702, -122.400470),
437   - new google.maps.LatLng(37.782915, -122.400192),
438   - new google.maps.LatLng(37.783137, -122.399887),
439   - new google.maps.LatLng(37.783414, -122.399519),
440   - new google.maps.LatLng(37.783629, -122.399237),
441   - new google.maps.LatLng(37.783688, -122.399157),
442   - new google.maps.LatLng(37.783716, -122.399106),
443   - new google.maps.LatLng(37.783798, -122.399072),
444   - new google.maps.LatLng(37.783997, -122.399186),
445   - new google.maps.LatLng(37.784271, -122.399538),
446   - new google.maps.LatLng(37.784577, -122.399948),
447   - new google.maps.LatLng(37.784828, -122.400260),
448   - new google.maps.LatLng(37.784999, -122.400477),
449   - new google.maps.LatLng(37.785113, -122.400651),
450   - new google.maps.LatLng(37.785155, -122.400703),
451   - new google.maps.LatLng(37.785192, -122.400749),
452   - new google.maps.LatLng(37.785278, -122.400839),
453   - new google.maps.LatLng(37.785387, -122.400857),
454   - new google.maps.LatLng(37.785478, -122.400890),
455   - new google.maps.LatLng(37.785526, -122.401022),
456   - new google.maps.LatLng(37.785598, -122.401148),
457   - new google.maps.LatLng(37.785631, -122.401202),
458   - new google.maps.LatLng(37.785660, -122.401267),
459   - new google.maps.LatLng(37.803986, -122.426035),
460   - new google.maps.LatLng(37.804102, -122.425089),
461   - new google.maps.LatLng(37.804211, -122.424156),
462   - new google.maps.LatLng(37.803861, -122.423385),
463   - new google.maps.LatLng(37.803151, -122.423214),
464   - new google.maps.LatLng(37.802439, -122.423077),
465   - new google.maps.LatLng(37.801740, -122.422905),
466   - new google.maps.LatLng(37.801069, -122.422785),
467   - new google.maps.LatLng(37.800345, -122.422649),
468   - new google.maps.LatLng(37.799633, -122.422603),
469   - new google.maps.LatLng(37.799750, -122.421700),
470   - new google.maps.LatLng(37.799885, -122.420854),
471   - new google.maps.LatLng(37.799209, -122.420607),
472   - new google.maps.LatLng(37.795656, -122.400395),
473   - new google.maps.LatLng(37.795203, -122.400304),
474   - new google.maps.LatLng(37.778738, -122.415584),
475   - new google.maps.LatLng(37.778812, -122.415189),
476   - new google.maps.LatLng(37.778824, -122.415092),
477   - new google.maps.LatLng(37.778833, -122.414932),
478   - new google.maps.LatLng(37.778834, -122.414898),
479   - new google.maps.LatLng(37.778740, -122.414757),
480   - new google.maps.LatLng(37.778501, -122.414433),
481   - new google.maps.LatLng(37.778182, -122.414026),
482   - new google.maps.LatLng(37.777851, -122.413623),
483   - new google.maps.LatLng(37.777486, -122.413166),
484   - new google.maps.LatLng(37.777109, -122.412674),
485   - new google.maps.LatLng(37.776743, -122.412186),
486   - new google.maps.LatLng(37.776440, -122.411800),
487   - new google.maps.LatLng(37.776295, -122.411614),
488   - new google.maps.LatLng(37.776158, -122.411440),
489   - new google.maps.LatLng(37.775806, -122.410997),
490   - new google.maps.LatLng(37.775422, -122.410484),
491   - new google.maps.LatLng(37.775126, -122.410087),
492   - new google.maps.LatLng(37.775012, -122.409854),
493   - new google.maps.LatLng(37.775164, -122.409573),
494   - new google.maps.LatLng(37.775498, -122.409180),
495   - new google.maps.LatLng(37.775868, -122.408730),
496   - new google.maps.LatLng(37.776256, -122.408240),
497   - new google.maps.LatLng(37.776519, -122.407928),
498   - new google.maps.LatLng(37.776539, -122.407904),
499   - new google.maps.LatLng(37.776595, -122.407854),
500   - new google.maps.LatLng(37.776853, -122.407547),
501   - new google.maps.LatLng(37.777234, -122.407087),
502   - new google.maps.LatLng(37.777644, -122.406558),
503   - new google.maps.LatLng(37.778066, -122.406017),
504   - new google.maps.LatLng(37.778468, -122.405499),
505   - new google.maps.LatLng(37.778866, -122.404995),
506   - new google.maps.LatLng(37.779295, -122.404455),
507   - new google.maps.LatLng(37.779695, -122.403950),
508   - new google.maps.LatLng(37.779982, -122.403584),
509   - new google.maps.LatLng(37.780295, -122.403223),
510   - new google.maps.LatLng(37.780664, -122.402766),
511   - new google.maps.LatLng(37.781043, -122.402288),
512   - new google.maps.LatLng(37.781399, -122.401823),
513   - new google.maps.LatLng(37.781727, -122.401407),
514   - new google.maps.LatLng(37.781853, -122.401247),
515   - new google.maps.LatLng(37.781894, -122.401195),
516   - new google.maps.LatLng(37.782076, -122.400977),
517   - new google.maps.LatLng(37.782338, -122.400603),
518   - new google.maps.LatLng(37.782666, -122.400133),
519   - new google.maps.LatLng(37.783048, -122.399634),
520   - new google.maps.LatLng(37.783450, -122.399198),
521   - new google.maps.LatLng(37.783791, -122.398998),
522   - new google.maps.LatLng(37.784177, -122.398959),
523   - new google.maps.LatLng(37.784388, -122.398971),
524   - new google.maps.LatLng(37.784404, -122.399128),
525   - new google.maps.LatLng(37.784586, -122.399524),
526   - new google.maps.LatLng(37.784835, -122.399927),
527   - new google.maps.LatLng(37.785116, -122.400307),
528   - new google.maps.LatLng(37.785282, -122.400539),
529   - new google.maps.LatLng(37.785346, -122.400692),
530   - new google.maps.LatLng(37.765769, -122.407201),
531   - new google.maps.LatLng(37.765790, -122.407414),
532   - new google.maps.LatLng(37.765802, -122.407755),
533   - new google.maps.LatLng(37.765791, -122.408219),
534   - new google.maps.LatLng(37.765763, -122.408759),
535   - new google.maps.LatLng(37.765726, -122.409348),
536   - new google.maps.LatLng(37.765716, -122.409882),
537   - new google.maps.LatLng(37.765708, -122.410202),
538   - new google.maps.LatLng(37.765705, -122.410253),
539   - new google.maps.LatLng(37.765707, -122.410369),
540   - new google.maps.LatLng(37.765692, -122.410720),
541   - new google.maps.LatLng(37.765699, -122.411215),
542   - new google.maps.LatLng(37.765687, -122.411789),
543   - new google.maps.LatLng(37.765666, -122.412373),
544   - new google.maps.LatLng(37.765598, -122.412883),
545   - new google.maps.LatLng(37.765543, -122.413039),
546   - new google.maps.LatLng(37.765532, -122.413125),
547   - new google.maps.LatLng(37.765500, -122.413553),
548   - new google.maps.LatLng(37.765448, -122.414053),
549   - new google.maps.LatLng(37.765388, -122.414645),
550   - new google.maps.LatLng(37.765323, -122.415250),
551   - new google.maps.LatLng(37.765303, -122.415847),
552   - new google.maps.LatLng(37.765251, -122.416439),
553   - new google.maps.LatLng(37.765204, -122.417020),
554   - new google.maps.LatLng(37.765172, -122.417556),
555   - new google.maps.LatLng(37.765164, -122.418075),
556   - new google.maps.LatLng(37.765153, -122.418618),
557   - new google.maps.LatLng(37.765136, -122.419112),
558   - new google.maps.LatLng(37.765129, -122.419378),
559   - new google.maps.LatLng(37.765119, -122.419481),
560   - new google.maps.LatLng(37.765100, -122.419852),
561   - new google.maps.LatLng(37.765083, -122.420349),
562   - new google.maps.LatLng(37.765045, -122.420930),
563   - new google.maps.LatLng(37.764992, -122.421481),
564   - new google.maps.LatLng(37.764980, -122.421695),
565   - new google.maps.LatLng(37.764993, -122.421843),
566   - new google.maps.LatLng(37.764986, -122.422255),
567   - new google.maps.LatLng(37.764975, -122.422823),
568   - new google.maps.LatLng(37.764939, -122.423411),
569   - new google.maps.LatLng(37.764902, -122.424014),
570   - new google.maps.LatLng(37.764853, -122.424576),
571   - new google.maps.LatLng(37.764826, -122.424922),
572   - new google.maps.LatLng(37.764796, -122.425375),
573   - new google.maps.LatLng(37.764782, -122.425869),
574   - new google.maps.LatLng(37.764768, -122.426089),
575   - new google.maps.LatLng(37.764766, -122.426117),
576   - new google.maps.LatLng(37.764723, -122.426276),
577   - new google.maps.LatLng(37.764681, -122.426649),
578   - new google.maps.LatLng(37.782012, -122.404200),
579   - new google.maps.LatLng(37.781574, -122.404911),
580   - new google.maps.LatLng(37.781055, -122.405597),
581   - new google.maps.LatLng(37.780479, -122.406341),
582   - new google.maps.LatLng(37.779996, -122.406939),
583   - new google.maps.LatLng(37.779459, -122.407613),
584   - new google.maps.LatLng(37.778953, -122.408228),
585   - new google.maps.LatLng(37.778409, -122.408839),
586   - new google.maps.LatLng(37.777842, -122.409501),
587   - new google.maps.LatLng(37.777334, -122.410181),
588   - new google.maps.LatLng(37.776809, -122.410836),
589   - new google.maps.LatLng(37.776240, -122.411514),
590   - new google.maps.LatLng(37.775725, -122.412145),
591   - new google.maps.LatLng(37.775190, -122.412805),
592   - new google.maps.LatLng(37.774672, -122.413464),
593   - new google.maps.LatLng(37.774084, -122.414186),
594   - new google.maps.LatLng(37.773533, -122.413636),
595   - new google.maps.LatLng(37.773021, -122.413009),
596   - new google.maps.LatLng(37.772501, -122.412371),
597   - new google.maps.LatLng(37.771964, -122.411681),
598   - new google.maps.LatLng(37.771479, -122.411078),
599   - new google.maps.LatLng(37.770992, -122.410477),
600   - new google.maps.LatLng(37.770467, -122.409801),
601   - new google.maps.LatLng(37.770090, -122.408904),
602   - new google.maps.LatLng(37.769657, -122.408103),
603   - new google.maps.LatLng(37.769132, -122.407276),
604   - new google.maps.LatLng(37.768564, -122.406469),
605   - new google.maps.LatLng(37.767980, -122.405745),
606   - new google.maps.LatLng(37.767380, -122.405299),
607   - new google.maps.LatLng(37.766604, -122.405297),
608   - new google.maps.LatLng(37.765838, -122.405200),
609   - new google.maps.LatLng(37.765139, -122.405139),
610   - new google.maps.LatLng(37.764457, -122.405094),
611   - new google.maps.LatLng(37.763716, -122.405142),
612   - new google.maps.LatLng(37.762932, -122.405398),
613   - new google.maps.LatLng(37.762126, -122.405813),
614   - new google.maps.LatLng(37.761344, -122.406215),
615   - new google.maps.LatLng(37.760556, -122.406495),
616   - new google.maps.LatLng(37.759732, -122.406484),
617   - new google.maps.LatLng(37.758910, -122.406228),
618   - new google.maps.LatLng(37.758182, -122.405695),
619   - new google.maps.LatLng(37.757676, -122.405118),
620   - new google.maps.LatLng(37.757039, -122.404346),
621   - new google.maps.LatLng(37.756335, -122.403719),
622   - new google.maps.LatLng(37.755503, -122.403406),
623   - new google.maps.LatLng(37.754665, -122.403242),
624   - new google.maps.LatLng(37.753837, -122.403172),
625   - new google.maps.LatLng(37.752986, -122.403112),
626   - new google.maps.LatLng(37.751266, -122.403355)
627   - ];
628   - }
  137 + google.maps.event.addListener(autoDest, 'place_changed', function () {
  138 + var place = autoDest.getPlace();
  139 + // Testing.
  140 + console.log(place);
  141 + localStorage.setItem("to", place.formatted_address);
  142 + displayRoute(directionsService, directionsDisplay);
  143 + });
  144 + }
  145 +
  146 + function getPoints() {
  147 + //read json here from passed in parameters
  148 + //loop here that loops through the passed in json values for points along the route
  149 + //return the list of objects created from those longitudes and latitudes
  150 +
  151 + //THIS IS THE CODE TO READ JSON BUT IT'S NOT VIABLE TO CREATE ALL THESE POINTS MANUALLY IN A JSON FILE.
  152 + //So instead we copy pasted a sample set of points to demonstrate the functionality
  153 +
  154 + /*var toReturn = [];
  155 + for (i = 0; i < [insert ejs symbols here]spots.length[insert ejs symbols here]; i++) {
  156 + toReturn.push(new google.maps.LatLng(insert ejs symbols here spots[i].latutudeinsert ejs symbols here, insert ejs symbols here spots[i].longitudeinsert ejs symbols here));
  157 + }
  158 +
  159 + return toReturn;*/
  160 +
  161 +
  162 + return [
  163 + new google.maps.LatLng(37.782551, -122.445368),
  164 + new google.maps.LatLng(37.782745, -122.444586),
  165 + new google.maps.LatLng(37.782842, -122.443688),
  166 + new google.maps.LatLng(37.782919, -122.442815),
  167 + new google.maps.LatLng(37.782992, -122.442112),
  168 + new google.maps.LatLng(37.783100, -122.441461),
  169 + new google.maps.LatLng(37.783206, -122.440829),
  170 + new google.maps.LatLng(37.783273, -122.440324),
  171 + new google.maps.LatLng(37.783316, -122.440023),
  172 + new google.maps.LatLng(37.783357, -122.439794),
  173 + new google.maps.LatLng(37.783371, -122.439687),
  174 + new google.maps.LatLng(37.783368, -122.439666),
  175 + new google.maps.LatLng(37.783383, -122.439594),
  176 + new google.maps.LatLng(37.783508, -122.439525),
  177 + new google.maps.LatLng(37.783842, -122.439591),
  178 + new google.maps.LatLng(37.784147, -122.439668),
  179 + new google.maps.LatLng(37.784206, -122.439686),
  180 + new google.maps.LatLng(37.784386, -122.439790),
  181 + new google.maps.LatLng(37.784701, -122.439902),
  182 + new google.maps.LatLng(37.784965, -122.439938),
  183 + new google.maps.LatLng(37.785010, -122.439947),
  184 + new google.maps.LatLng(37.785360, -122.439952),
  185 + new google.maps.LatLng(37.785715, -122.440030),
  186 + new google.maps.LatLng(37.786117, -122.440119),
  187 + new google.maps.LatLng(37.786564, -122.440209),
  188 + new google.maps.LatLng(37.786905, -122.440270),
  189 + new google.maps.LatLng(37.786956, -122.440279),
  190 + new google.maps.LatLng(37.800224, -122.433520),
  191 + new google.maps.LatLng(37.800155, -122.434101),
  192 + new google.maps.LatLng(37.800160, -122.434430),
  193 + new google.maps.LatLng(37.800378, -122.434527),
  194 + new google.maps.LatLng(37.800738, -122.434598),
  195 + new google.maps.LatLng(37.800938, -122.434650),
  196 + new google.maps.LatLng(37.801024, -122.434889),
  197 + new google.maps.LatLng(37.800955, -122.435392),
  198 + new google.maps.LatLng(37.800886, -122.435959),
  199 + new google.maps.LatLng(37.800811, -122.436275),
  200 + new google.maps.LatLng(37.800788, -122.436299),
  201 + new google.maps.LatLng(37.800719, -122.436302),
  202 + new google.maps.LatLng(37.800702, -122.436298),
  203 + new google.maps.LatLng(37.800661, -122.436273),
  204 + new google.maps.LatLng(37.800395, -122.436172),
  205 + new google.maps.LatLng(37.800228, -122.436116),
  206 + new google.maps.LatLng(37.800169, -122.436130),
  207 + new google.maps.LatLng(37.800066, -122.436167),
  208 + new google.maps.LatLng(37.784345, -122.422922),
  209 + new google.maps.LatLng(37.784389, -122.422926),
  210 + new google.maps.LatLng(37.784437, -122.422924),
  211 + new google.maps.LatLng(37.784746, -122.422818),
  212 + new google.maps.LatLng(37.785436, -122.422959),
  213 + new google.maps.LatLng(37.786120, -122.423112),
  214 + new google.maps.LatLng(37.786433, -122.423029),
  215 + new google.maps.LatLng(37.786631, -122.421213),
  216 + new google.maps.LatLng(37.786660, -122.421033),
  217 + new google.maps.LatLng(37.786801, -122.420141),
  218 + new google.maps.LatLng(37.786823, -122.420034),
  219 + new google.maps.LatLng(37.786831, -122.419916),
  220 + new google.maps.LatLng(37.787034, -122.418208),
  221 + new google.maps.LatLng(37.787056, -122.418034),
  222 + new google.maps.LatLng(37.787169, -122.417145),
  223 + new google.maps.LatLng(37.787217, -122.416715),
  224 + new google.maps.LatLng(37.786144, -122.416403),
  225 + new google.maps.LatLng(37.785292, -122.416257),
  226 + new google.maps.LatLng(37.780666, -122.390374),
  227 + new google.maps.LatLng(37.780501, -122.391281),
  228 + new google.maps.LatLng(37.780148, -122.392052),
  229 + new google.maps.LatLng(37.780173, -122.391148),
  230 + new google.maps.LatLng(37.780693, -122.390592),
  231 + new google.maps.LatLng(37.781261, -122.391142),
  232 + new google.maps.LatLng(37.781808, -122.391730),
  233 + new google.maps.LatLng(37.782340, -122.392341),
  234 + new google.maps.LatLng(37.782812, -122.393022),
  235 + new google.maps.LatLng(37.783300, -122.393672),
  236 + new google.maps.LatLng(37.783809, -122.394275),
  237 + new google.maps.LatLng(37.784246, -122.394979),
  238 + new google.maps.LatLng(37.784791, -122.395958),
  239 + new google.maps.LatLng(37.785675, -122.396746),
  240 + new google.maps.LatLng(37.786262, -122.395780),
  241 + new google.maps.LatLng(37.786776, -122.395093),
  242 + new google.maps.LatLng(37.787282, -122.394426),
  243 + new google.maps.LatLng(37.787783, -122.393767),
  244 + new google.maps.LatLng(37.788343, -122.393184),
  245 + new google.maps.LatLng(37.788895, -122.392506),
  246 + new google.maps.LatLng(37.789371, -122.391701),
  247 + new google.maps.LatLng(37.789722, -122.390952),
  248 + new google.maps.LatLng(37.790315, -122.390305),
  249 + new google.maps.LatLng(37.790738, -122.389616),
  250 + new google.maps.LatLng(37.779448, -122.438702),
  251 + new google.maps.LatLng(37.779023, -122.438585),
  252 + new google.maps.LatLng(37.778542, -122.438492),
  253 + new google.maps.LatLng(37.778100, -122.438411),
  254 + new google.maps.LatLng(37.777986, -122.438376),
  255 + new google.maps.LatLng(37.777680, -122.438313),
  256 + new google.maps.LatLng(37.777316, -122.438273),
  257 + new google.maps.LatLng(37.777135, -122.438254),
  258 + new google.maps.LatLng(37.776987, -122.438303),
  259 + new google.maps.LatLng(37.776946, -122.438404),
  260 + new google.maps.LatLng(37.776944, -122.438467),
  261 + new google.maps.LatLng(37.776892, -122.438459),
  262 + new google.maps.LatLng(37.776842, -122.438442),
  263 + new google.maps.LatLng(37.776822, -122.438391),
  264 + new google.maps.LatLng(37.776814, -122.438412),
  265 + new google.maps.LatLng(37.776787, -122.438628),
  266 + new google.maps.LatLng(37.776729, -122.438650),
  267 + new google.maps.LatLng(37.776759, -122.438677),
  268 + new google.maps.LatLng(37.776772, -122.438498),
  269 + new google.maps.LatLng(37.776787, -122.438389),
  270 + new google.maps.LatLng(37.776848, -122.438283),
  271 + new google.maps.LatLng(37.776870, -122.438239),
  272 + new google.maps.LatLng(37.777015, -122.438198),
  273 + new google.maps.LatLng(37.777333, -122.438256),
  274 + new google.maps.LatLng(37.777595, -122.438308),
  275 + new google.maps.LatLng(37.777797, -122.438344),
  276 + new google.maps.LatLng(37.778160, -122.438442),
  277 + new google.maps.LatLng(37.778414, -122.438508),
  278 + new google.maps.LatLng(37.778445, -122.438516),
  279 + new google.maps.LatLng(37.778503, -122.438529),
  280 + new google.maps.LatLng(37.778607, -122.438549),
  281 + new google.maps.LatLng(37.778670, -122.438644),
  282 + new google.maps.LatLng(37.778847, -122.438706),
  283 + new google.maps.LatLng(37.779240, -122.438744),
  284 + new google.maps.LatLng(37.779738, -122.438822),
  285 + new google.maps.LatLng(37.780201, -122.438882),
  286 + new google.maps.LatLng(37.780400, -122.438905),
  287 + new google.maps.LatLng(37.780501, -122.438921),
  288 + new google.maps.LatLng(37.780892, -122.438986),
  289 + new google.maps.LatLng(37.781446, -122.439087),
  290 + new google.maps.LatLng(37.781985, -122.439199),
  291 + new google.maps.LatLng(37.782239, -122.439249),
  292 + new google.maps.LatLng(37.782286, -122.439266),
  293 + new google.maps.LatLng(37.797847, -122.429388),
  294 + new google.maps.LatLng(37.797874, -122.429180),
  295 + new google.maps.LatLng(37.797885, -122.429069),
  296 + new google.maps.LatLng(37.797887, -122.429050),
  297 + new google.maps.LatLng(37.797933, -122.428954),
  298 + new google.maps.LatLng(37.798242, -122.428990),
  299 + new google.maps.LatLng(37.798617, -122.429075),
  300 + new google.maps.LatLng(37.798719, -122.429092),
  301 + new google.maps.LatLng(37.798944, -122.429145),
  302 + new google.maps.LatLng(37.799320, -122.429251),
  303 + new google.maps.LatLng(37.799590, -122.429309),
  304 + new google.maps.LatLng(37.799677, -122.429324),
  305 + new google.maps.LatLng(37.799966, -122.429360),
  306 + new google.maps.LatLng(37.800288, -122.429430),
  307 + new google.maps.LatLng(37.800443, -122.429461),
  308 + new google.maps.LatLng(37.800465, -122.429474),
  309 + new google.maps.LatLng(37.800644, -122.429540),
  310 + new google.maps.LatLng(37.800948, -122.429620),
  311 + new google.maps.LatLng(37.801242, -122.429685),
  312 + new google.maps.LatLng(37.801375, -122.429702),
  313 + new google.maps.LatLng(37.801400, -122.429703),
  314 + new google.maps.LatLng(37.801453, -122.429707),
  315 + new google.maps.LatLng(37.801473, -122.429709),
  316 + new google.maps.LatLng(37.801532, -122.429707),
  317 + new google.maps.LatLng(37.801852, -122.429729),
  318 + new google.maps.LatLng(37.802173, -122.429789),
  319 + new google.maps.LatLng(37.802459, -122.429847),
  320 + new google.maps.LatLng(37.802554, -122.429825),
  321 + new google.maps.LatLng(37.802647, -122.429549),
  322 + new google.maps.LatLng(37.802693, -122.429179),
  323 + new google.maps.LatLng(37.802729, -122.428751),
  324 + new google.maps.LatLng(37.766104, -122.409291),
  325 + new google.maps.LatLng(37.766103, -122.409268),
  326 + new google.maps.LatLng(37.766138, -122.409229),
  327 + new google.maps.LatLng(37.766183, -122.409231),
  328 + new google.maps.LatLng(37.766153, -122.409276),
  329 + new google.maps.LatLng(37.766005, -122.409365),
  330 + new google.maps.LatLng(37.765897, -122.409570),
  331 + new google.maps.LatLng(37.765767, -122.409739),
  332 + new google.maps.LatLng(37.765693, -122.410389),
  333 + new google.maps.LatLng(37.765615, -122.411201),
  334 + new google.maps.LatLng(37.765533, -122.412121),
  335 + new google.maps.LatLng(37.765467, -122.412939),
  336 + new google.maps.LatLng(37.765444, -122.414821),
  337 + new google.maps.LatLng(37.765444, -122.414964),
  338 + new google.maps.LatLng(37.765318, -122.415424),
  339 + new google.maps.LatLng(37.763961, -122.415296),
  340 + new google.maps.LatLng(37.763115, -122.415196),
  341 + new google.maps.LatLng(37.762967, -122.415183),
  342 + new google.maps.LatLng(37.762278, -122.415127),
  343 + new google.maps.LatLng(37.761675, -122.415055),
  344 + new google.maps.LatLng(37.760932, -122.414988),
  345 + new google.maps.LatLng(37.759337, -122.414862),
  346 + new google.maps.LatLng(37.773187, -122.421922),
  347 + new google.maps.LatLng(37.773043, -122.422118),
  348 + new google.maps.LatLng(37.773007, -122.422165),
  349 + new google.maps.LatLng(37.772979, -122.422219),
  350 + new google.maps.LatLng(37.772865, -122.422394),
  351 + new google.maps.LatLng(37.772779, -122.422503),
  352 + new google.maps.LatLng(37.772676, -122.422701),
  353 + new google.maps.LatLng(37.772606, -122.422806),
  354 + new google.maps.LatLng(37.772566, -122.422840),
  355 + new google.maps.LatLng(37.772508, -122.422852),
  356 + new google.maps.LatLng(37.772387, -122.423011),
  357 + new google.maps.LatLng(37.772099, -122.423328),
  358 + new google.maps.LatLng(37.771704, -122.423783),
  359 + new google.maps.LatLng(37.771481, -122.424081),
  360 + new google.maps.LatLng(37.771400, -122.424179),
  361 + new google.maps.LatLng(37.771352, -122.424220),
  362 + new google.maps.LatLng(37.771248, -122.424327),
  363 + new google.maps.LatLng(37.770904, -122.424781),
  364 + new google.maps.LatLng(37.770520, -122.425283),
  365 + new google.maps.LatLng(37.770337, -122.425553),
  366 + new google.maps.LatLng(37.770128, -122.425832),
  367 + new google.maps.LatLng(37.769756, -122.426331),
  368 + new google.maps.LatLng(37.769300, -122.426902),
  369 + new google.maps.LatLng(37.769132, -122.427065),
  370 + new google.maps.LatLng(37.769092, -122.427103),
  371 + new google.maps.LatLng(37.768979, -122.427172),
  372 + new google.maps.LatLng(37.768595, -122.427634),
  373 + new google.maps.LatLng(37.768372, -122.427913),
  374 + new google.maps.LatLng(37.768337, -122.427961),
  375 + new google.maps.LatLng(37.768244, -122.428138),
  376 + new google.maps.LatLng(37.767942, -122.428581),
  377 + new google.maps.LatLng(37.767482, -122.429094),
  378 + new google.maps.LatLng(37.767031, -122.429606),
  379 + new google.maps.LatLng(37.766732, -122.429986),
  380 + new google.maps.LatLng(37.766680, -122.430058),
  381 + new google.maps.LatLng(37.766633, -122.430109),
  382 + new google.maps.LatLng(37.766580, -122.430211),
  383 + new google.maps.LatLng(37.766367, -122.430594),
  384 + new google.maps.LatLng(37.765910, -122.431137),
  385 + new google.maps.LatLng(37.765353, -122.431806),
  386 + new google.maps.LatLng(37.764962, -122.432298),
  387 + new google.maps.LatLng(37.764868, -122.432486),
  388 + new google.maps.LatLng(37.764518, -122.432913),
  389 + new google.maps.LatLng(37.763435, -122.434173),
  390 + new google.maps.LatLng(37.762847, -122.434953),
  391 + new google.maps.LatLng(37.762291, -122.435935),
  392 + new google.maps.LatLng(37.762224, -122.436074),
  393 + new google.maps.LatLng(37.761957, -122.436892),
  394 + new google.maps.LatLng(37.761652, -122.438886),
  395 + new google.maps.LatLng(37.761284, -122.439955),
  396 + new google.maps.LatLng(37.761210, -122.440068),
  397 + new google.maps.LatLng(37.761064, -122.440720),
  398 + new google.maps.LatLng(37.761040, -122.441411),
  399 + new google.maps.LatLng(37.761048, -122.442324),
  400 + new google.maps.LatLng(37.760851, -122.443118),
  401 + new google.maps.LatLng(37.759977, -122.444591),
  402 + new google.maps.LatLng(37.759913, -122.444698),
  403 + new google.maps.LatLng(37.759623, -122.445065),
  404 + new google.maps.LatLng(37.758902, -122.445158),
  405 + new google.maps.LatLng(37.758428, -122.444570),
  406 + new google.maps.LatLng(37.757687, -122.443340),
  407 + new google.maps.LatLng(37.757583, -122.443240),
  408 + new google.maps.LatLng(37.757019, -122.442787),
  409 + new google.maps.LatLng(37.756603, -122.442322),
  410 + new google.maps.LatLng(37.756380, -122.441602),
  411 + new google.maps.LatLng(37.755790, -122.441382),
  412 + new google.maps.LatLng(37.754493, -122.442133),
  413 + new google.maps.LatLng(37.754361, -122.442206),
  414 + new google.maps.LatLng(37.753719, -122.442650),
  415 + new google.maps.LatLng(37.753096, -122.442915),
  416 + new google.maps.LatLng(37.751617, -122.443211),
  417 + new google.maps.LatLng(37.751496, -122.443246),
  418 + new google.maps.LatLng(37.750733, -122.443428),
  419 + new google.maps.LatLng(37.750126, -122.443536),
  420 + new google.maps.LatLng(37.750103, -122.443784),
  421 + new google.maps.LatLng(37.750390, -122.444010),
  422 + new google.maps.LatLng(37.750448, -122.444013),
  423 + new google.maps.LatLng(37.750536, -122.444040),
  424 + new google.maps.LatLng(37.750493, -122.444141),
  425 + new google.maps.LatLng(37.790859, -122.402808),
  426 + new google.maps.LatLng(37.790864, -122.402768),
  427 + new google.maps.LatLng(37.790995, -122.402539),
  428 + new google.maps.LatLng(37.791148, -122.402172),
  429 + new google.maps.LatLng(37.791385, -122.401312),
  430 + new google.maps.LatLng(37.791405, -122.400776),
  431 + new google.maps.LatLng(37.791288, -122.400528),
  432 + new google.maps.LatLng(37.791113, -122.400441),
  433 + new google.maps.LatLng(37.791027, -122.400395),
  434 + new google.maps.LatLng(37.791094, -122.400311),
  435 + new google.maps.LatLng(37.791211, -122.400183),
  436 + new google.maps.LatLng(37.791060, -122.399334),
  437 + new google.maps.LatLng(37.790538, -122.398718),
  438 + new google.maps.LatLng(37.790095, -122.398086),
  439 + new google.maps.LatLng(37.789644, -122.397360),
  440 + new google.maps.LatLng(37.789254, -122.396844),
  441 + new google.maps.LatLng(37.788855, -122.396397),
  442 + new google.maps.LatLng(37.788483, -122.395963),
  443 + new google.maps.LatLng(37.788015, -122.395365),
  444 + new google.maps.LatLng(37.787558, -122.394735),
  445 + new google.maps.LatLng(37.787472, -122.394323),
  446 + new google.maps.LatLng(37.787630, -122.394025),
  447 + new google.maps.LatLng(37.787767, -122.393987),
  448 + new google.maps.LatLng(37.787486, -122.394452),
  449 + new google.maps.LatLng(37.786977, -122.395043),
  450 + new google.maps.LatLng(37.786583, -122.395552),
  451 + new google.maps.LatLng(37.786540, -122.395610),
  452 + new google.maps.LatLng(37.786516, -122.395659),
  453 + new google.maps.LatLng(37.786378, -122.395707),
  454 + new google.maps.LatLng(37.786044, -122.395362),
  455 + new google.maps.LatLng(37.785598, -122.394715),
  456 + new google.maps.LatLng(37.785321, -122.394361),
  457 + new google.maps.LatLng(37.785207, -122.394236),
  458 + new google.maps.LatLng(37.785751, -122.394062),
  459 + new google.maps.LatLng(37.785996, -122.393881),
  460 + new google.maps.LatLng(37.786092, -122.393830),
  461 + new google.maps.LatLng(37.785998, -122.393899),
  462 + new google.maps.LatLng(37.785114, -122.394365),
  463 + new google.maps.LatLng(37.785022, -122.394441),
  464 + new google.maps.LatLng(37.784823, -122.394635),
  465 + new google.maps.LatLng(37.784719, -122.394629),
  466 + new google.maps.LatLng(37.785069, -122.394176),
  467 + new google.maps.LatLng(37.785500, -122.393650),
  468 + new google.maps.LatLng(37.785770, -122.393291),
  469 + new google.maps.LatLng(37.785839, -122.393159),
  470 + new google.maps.LatLng(37.782651, -122.400628),
  471 + new google.maps.LatLng(37.782616, -122.400599),
  472 + new google.maps.LatLng(37.782702, -122.400470),
  473 + new google.maps.LatLng(37.782915, -122.400192),
  474 + new google.maps.LatLng(37.783137, -122.399887),
  475 + new google.maps.LatLng(37.783414, -122.399519),
  476 + new google.maps.LatLng(37.783629, -122.399237),
  477 + new google.maps.LatLng(37.783688, -122.399157),
  478 + new google.maps.LatLng(37.783716, -122.399106),
  479 + new google.maps.LatLng(37.783798, -122.399072),
  480 + new google.maps.LatLng(37.783997, -122.399186),
  481 + new google.maps.LatLng(37.784271, -122.399538),
  482 + new google.maps.LatLng(37.784577, -122.399948),
  483 + new google.maps.LatLng(37.784828, -122.400260),
  484 + new google.maps.LatLng(37.784999, -122.400477),
  485 + new google.maps.LatLng(37.785113, -122.400651),
  486 + new google.maps.LatLng(37.785155, -122.400703),
  487 + new google.maps.LatLng(37.785192, -122.400749),
  488 + new google.maps.LatLng(37.785278, -122.400839),
  489 + new google.maps.LatLng(37.785387, -122.400857),
  490 + new google.maps.LatLng(37.785478, -122.400890),
  491 + new google.maps.LatLng(37.785526, -122.401022),
  492 + new google.maps.LatLng(37.785598, -122.401148),
  493 + new google.maps.LatLng(37.785631, -122.401202),
  494 + new google.maps.LatLng(37.785660, -122.401267),
  495 + new google.maps.LatLng(37.803986, -122.426035),
  496 + new google.maps.LatLng(37.804102, -122.425089),
  497 + new google.maps.LatLng(37.804211, -122.424156),
  498 + new google.maps.LatLng(37.803861, -122.423385),
  499 + new google.maps.LatLng(37.803151, -122.423214),
  500 + new google.maps.LatLng(37.802439, -122.423077),
  501 + new google.maps.LatLng(37.801740, -122.422905),
  502 + new google.maps.LatLng(37.801069, -122.422785),
  503 + new google.maps.LatLng(37.800345, -122.422649),
  504 + new google.maps.LatLng(37.799633, -122.422603),
  505 + new google.maps.LatLng(37.799750, -122.421700),
  506 + new google.maps.LatLng(37.799885, -122.420854),
  507 + new google.maps.LatLng(37.799209, -122.420607),
  508 + new google.maps.LatLng(37.795656, -122.400395),
  509 + new google.maps.LatLng(37.795203, -122.400304),
  510 + new google.maps.LatLng(37.778738, -122.415584),
  511 + new google.maps.LatLng(37.778812, -122.415189),
  512 + new google.maps.LatLng(37.778824, -122.415092),
  513 + new google.maps.LatLng(37.778833, -122.414932),
  514 + new google.maps.LatLng(37.778834, -122.414898),
  515 + new google.maps.LatLng(37.778740, -122.414757),
  516 + new google.maps.LatLng(37.778501, -122.414433),
  517 + new google.maps.LatLng(37.778182, -122.414026),
  518 + new google.maps.LatLng(37.777851, -122.413623),
  519 + new google.maps.LatLng(37.777486, -122.413166),
  520 + new google.maps.LatLng(37.777109, -122.412674),
  521 + new google.maps.LatLng(37.776743, -122.412186),
  522 + new google.maps.LatLng(37.776440, -122.411800),
  523 + new google.maps.LatLng(37.776295, -122.411614),
  524 + new google.maps.LatLng(37.776158, -122.411440),
  525 + new google.maps.LatLng(37.775806, -122.410997),
  526 + new google.maps.LatLng(37.775422, -122.410484),
  527 + new google.maps.LatLng(37.775126, -122.410087),
  528 + new google.maps.LatLng(37.775012, -122.409854),
  529 + new google.maps.LatLng(37.775164, -122.409573),
  530 + new google.maps.LatLng(37.775498, -122.409180),
  531 + new google.maps.LatLng(37.775868, -122.408730),
  532 + new google.maps.LatLng(37.776256, -122.408240),
  533 + new google.maps.LatLng(37.776519, -122.407928),
  534 + new google.maps.LatLng(37.776539, -122.407904),
  535 + new google.maps.LatLng(37.776595, -122.407854),
  536 + new google.maps.LatLng(37.776853, -122.407547),
  537 + new google.maps.LatLng(37.777234, -122.407087),
  538 + new google.maps.LatLng(37.777644, -122.406558),
  539 + new google.maps.LatLng(37.778066, -122.406017),
  540 + new google.maps.LatLng(37.778468, -122.405499),
  541 + new google.maps.LatLng(37.778866, -122.404995),
  542 + new google.maps.LatLng(37.779295, -122.404455),
  543 + new google.maps.LatLng(37.779695, -122.403950),
  544 + new google.maps.LatLng(37.779982, -122.403584),
  545 + new google.maps.LatLng(37.780295, -122.403223),
  546 + new google.maps.LatLng(37.780664, -122.402766),
  547 + new google.maps.LatLng(37.781043, -122.402288),
  548 + new google.maps.LatLng(37.781399, -122.401823),
  549 + new google.maps.LatLng(37.781727, -122.401407),
  550 + new google.maps.LatLng(37.781853, -122.401247),
  551 + new google.maps.LatLng(37.781894, -122.401195),
  552 + new google.maps.LatLng(37.782076, -122.400977),
  553 + new google.maps.LatLng(37.782338, -122.400603),
  554 + new google.maps.LatLng(37.782666, -122.400133),
  555 + new google.maps.LatLng(37.783048, -122.399634),
  556 + new google.maps.LatLng(37.783450, -122.399198),
  557 + new google.maps.LatLng(37.783791, -122.398998),
  558 + new google.maps.LatLng(37.784177, -122.398959),
  559 + new google.maps.LatLng(37.784388, -122.398971),
  560 + new google.maps.LatLng(37.784404, -122.399128),
  561 + new google.maps.LatLng(37.784586, -122.399524),
  562 + new google.maps.LatLng(37.784835, -122.399927),
  563 + new google.maps.LatLng(37.785116, -122.400307),
  564 + new google.maps.LatLng(37.785282, -122.400539),
  565 + new google.maps.LatLng(37.785346, -122.400692),
  566 + new google.maps.LatLng(37.765769, -122.407201),
  567 + new google.maps.LatLng(37.765790, -122.407414),
  568 + new google.maps.LatLng(37.765802, -122.407755),
  569 + new google.maps.LatLng(37.765791, -122.408219),
  570 + new google.maps.LatLng(37.765763, -122.408759),
  571 + new google.maps.LatLng(37.765726, -122.409348),
  572 + new google.maps.LatLng(37.765716, -122.409882),
  573 + new google.maps.LatLng(37.765708, -122.410202),
  574 + new google.maps.LatLng(37.765705, -122.410253),
  575 + new google.maps.LatLng(37.765707, -122.410369),
  576 + new google.maps.LatLng(37.765692, -122.410720),
  577 + new google.maps.LatLng(37.765699, -122.411215),
  578 + new google.maps.LatLng(37.765687, -122.411789),
  579 + new google.maps.LatLng(37.765666, -122.412373),
  580 + new google.maps.LatLng(37.765598, -122.412883),
  581 + new google.maps.LatLng(37.765543, -122.413039),
  582 + new google.maps.LatLng(37.765532, -122.413125),
  583 + new google.maps.LatLng(37.765500, -122.413553),
  584 + new google.maps.LatLng(37.765448, -122.414053),
  585 + new google.maps.LatLng(37.765388, -122.414645),
  586 + new google.maps.LatLng(37.765323, -122.415250),
  587 + new google.maps.LatLng(37.765303, -122.415847),
  588 + new google.maps.LatLng(37.765251, -122.416439),
  589 + new google.maps.LatLng(37.765204, -122.417020),
  590 + new google.maps.LatLng(37.765172, -122.417556),
  591 + new google.maps.LatLng(37.765164, -122.418075),
  592 + new google.maps.LatLng(37.765153, -122.418618),
  593 + new google.maps.LatLng(37.765136, -122.419112),
  594 + new google.maps.LatLng(37.765129, -122.419378),
  595 + new google.maps.LatLng(37.765119, -122.419481),
  596 + new google.maps.LatLng(37.765100, -122.419852),
  597 + new google.maps.LatLng(37.765083, -122.420349),
  598 + new google.maps.LatLng(37.765045, -122.420930),
  599 + new google.maps.LatLng(37.764992, -122.421481),
  600 + new google.maps.LatLng(37.764980, -122.421695),
  601 + new google.maps.LatLng(37.764993, -122.421843),
  602 + new google.maps.LatLng(37.764986, -122.422255),
  603 + new google.maps.LatLng(37.764975, -122.422823),
  604 + new google.maps.LatLng(37.764939, -122.423411),
  605 + new google.maps.LatLng(37.764902, -122.424014),
  606 + new google.maps.LatLng(37.764853, -122.424576),
  607 + new google.maps.LatLng(37.764826, -122.424922),
  608 + new google.maps.LatLng(37.764796, -122.425375),
  609 + new google.maps.LatLng(37.764782, -122.425869),
  610 + new google.maps.LatLng(37.764768, -122.426089),
  611 + new google.maps.LatLng(37.764766, -122.426117),
  612 + new google.maps.LatLng(37.764723, -122.426276),
  613 + new google.maps.LatLng(37.764681, -122.426649),
  614 + new google.maps.LatLng(37.782012, -122.404200),
  615 + new google.maps.LatLng(37.781574, -122.404911),
  616 + new google.maps.LatLng(37.781055, -122.405597),
  617 + new google.maps.LatLng(37.780479, -122.406341),
  618 + new google.maps.LatLng(37.779996, -122.406939),
  619 + new google.maps.LatLng(37.779459, -122.407613),
  620 + new google.maps.LatLng(37.778953, -122.408228),
  621 + new google.maps.LatLng(37.778409, -122.408839),
  622 + new google.maps.LatLng(37.777842, -122.409501),
  623 + new google.maps.LatLng(37.777334, -122.410181),
  624 + new google.maps.LatLng(37.776809, -122.410836),
  625 + new google.maps.LatLng(37.776240, -122.411514),
  626 + new google.maps.LatLng(37.775725, -122.412145),
  627 + new google.maps.LatLng(37.775190, -122.412805),
  628 + new google.maps.LatLng(37.774672, -122.413464),
  629 + new google.maps.LatLng(37.774084, -122.414186),
  630 + new google.maps.LatLng(37.773533, -122.413636),
  631 + new google.maps.LatLng(37.773021, -122.413009),
  632 + new google.maps.LatLng(37.772501, -122.412371),
  633 + new google.maps.LatLng(37.771964, -122.411681),
  634 + new google.maps.LatLng(37.771479, -122.411078),
  635 + new google.maps.LatLng(37.770992, -122.410477),
  636 + new google.maps.LatLng(37.770467, -122.409801),
  637 + new google.maps.LatLng(37.770090, -122.408904),
  638 + new google.maps.LatLng(37.769657, -122.408103),
  639 + new google.maps.LatLng(37.769132, -122.407276),
  640 + new google.maps.LatLng(37.768564, -122.406469),
  641 + new google.maps.LatLng(37.767980, -122.405745),
  642 + new google.maps.LatLng(37.767380, -122.405299),
  643 + new google.maps.LatLng(37.766604, -122.405297),
  644 + new google.maps.LatLng(37.765838, -122.405200),
  645 + new google.maps.LatLng(37.765139, -122.405139),
  646 + new google.maps.LatLng(37.764457, -122.405094),
  647 + new google.maps.LatLng(37.763716, -122.405142),
  648 + new google.maps.LatLng(37.762932, -122.405398),
  649 + new google.maps.LatLng(37.762126, -122.405813),
  650 + new google.maps.LatLng(37.761344, -122.406215),
  651 + new google.maps.LatLng(37.760556, -122.406495),
  652 + new google.maps.LatLng(37.759732, -122.406484),
  653 + new google.maps.LatLng(37.758910, -122.406228),
  654 + new google.maps.LatLng(37.758182, -122.405695),
  655 + new google.maps.LatLng(37.757676, -122.405118),
  656 + new google.maps.LatLng(37.757039, -122.404346),
  657 + new google.maps.LatLng(37.756335, -122.403719),
  658 + new google.maps.LatLng(37.755503, -122.403406),
  659 + new google.maps.LatLng(37.754665, -122.403242),
  660 + new google.maps.LatLng(37.753837, -122.403172),
  661 + new google.maps.LatLng(37.752986, -122.403112),
  662 + new google.maps.LatLng(37.751266, -122.403355)
  663 + ];
  664 + }
629 665 </script>
630 666  
631 667 <!-- Calling google maps API using the function defined above. -->
632 668 <script async defer
633   - src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDAXDHeZXEv4H4ZnThVDxpyAuxVpzOcj_U&callback=initMap&libraries=visualization">
  669 + src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDAXDHeZXEv4H4ZnThVDxpyAuxVpzOcj_U&callback=initMap&libraries=visualization,places">
634 670 </script>
635 671  
636   -
637 672 <!-- Buttons at the bottom of the map -->
638 673 <div class="container">
639 674 <div class="row">
640 675  
... ... @@ -661,22 +696,21 @@
661 696  
662 697 </div>
663 698  
664   -<script>
665   - function emergency(){
  699 + <script>
  700 + function emergency() {
  701 + var res = confirm("You are in a dangerous area. Would you like to call 911?");
  702 + if( res == true ) {
  703 + alert("calling 911...");// <a href="tel:+1-911">call 911</a>
  704 + }
  705 + else {
  706 + alert("Please stay safe!");
  707 + }
  708 + }
666 709  
667   - var res = confirm("You are in a dangerous area. Would you like to call 911?");
668   - if( res == true ) {
669   - alert("calling 911...");// <a href="tel:+1-911">call 911</a>
670   - }
671   - else {
672   - alert("Please stay safe!");
673   - }
674   - }
675   -
676   - function todo() {
677   - alert("This button is brought to you by the wonderful Wizard of Oz.");
678   - }
679   - </script>
  710 + function todo() {
  711 + alert("This button is brought to you by the wonderful Wizard of Oz.");
  712 + }
  713 + </script>
680 714  
681 715 </body>
682 716 </html>