PageSourceSearch

https://pullmanbus.cl/_next/static/chunks/pages/kmzmap-4972cbc16c6be7ba.js

js pullmanbus.cl collected 2026-10-04 12:18:45 UTC 2,305 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8380],{33625:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/kmzmap",function(){return n(78772)}])},70114:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});let a={ONE_SIGNAL_APP_ID:"234fd2db-ea84-4b59-ab4b-28a3ea826474",SENDER_ID:"730867902568",MAP_API_KEY:"AIzaSyDj_trn6aFeNXQ-KPzOEBO5VNlOFs4tysc",FB_APP_ID:"409783556699660",RECAPTCHA_SITE_KEY:"6LcPYrwpAAAAAAXReFLlJoUZbZqS4eApuZoPK-up",RECAPTCHA_API_KEY:"AIzaSyCUKEmCp8fFW0cNJqMrGW-HOipe0Ckrid4"}},78772:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var a=n(37876),o=n(14232),s=n(62945),l=n(70114),i=n(94891),r=n.n(i);let p=()=>{let[e,t]=(0,o.useState)([]),[n,i]=(0,o.useState)(null),p=async()=>{let e=`
2      [out:json];
3      nwr[highway=bus_stop](around:5000,-29.9280,-71.3150);  // Around La Serena and Coquimbo
4      out body;
5    `,n=await fetch(`https://overpass-api.de/api/interpreter?data=${encodeURIComponent(e)}`);t((await n.json()).elements.map(e=>({name:e.tags.name||"Unnamed Bus Stop",lat:e.lat,lng:e.lon})).slice(0,10))};return(0,o.useEffect)(()=>{p()},[]),(0,o.useEffect)(()=>{e.length>=2&&window.google&&(t=>{if(e.length<2)return;let n=new t.maps.DirectionsService,a=new t.maps.LatLng(e[0].lat,e[0].lng),o=new t.maps.LatLng(e[e.length-1].lat,e[e.length-1].lng),s=[];for(let t=1;t<e.length-1;t+=23)s.push(e.slice(t,t+23));let l=s.map(e=>({origin:a,destination:o,waypoints:e.map(e=>({location:new t.maps.LatLng(e.lat,e.lng),stopover:!0})),travelMode:t.maps.TravelMode.DRIVING,optimizeWaypoints:!0})),r=[];l.forEach((e,a)=>{n.route(e,(e,n)=>{n===t.maps.DirectionsStatus.OK?(r.push(e),r.length===l.length&&i(r)):console.error("Directions request failed due to "+n)})})})(window.google)},[e]),(0,a.jsx)("div",{className:r().mapContainer,children:(0,a.jsx)(s.aJ,{googleMapsApiKey:l.A.MAP_API_KEY,children:(0,a.jsxs)(s.u6,{id:"google-map",mapContainerStyle:{height:"100vh",width:"100%"},zoom:10,center:{lat:-29.928,lng:-71.315},children:[e.map((e,t)=>(0,a.jsx)(s.pH,{position:{lat:e.lat,lng:e.lng},label:e.name},t)),n?.map((e,t)=>(0,a.jsx)(s.C,{directions:e,options:{polylineOptions:{strokeColor:"black",strokeOpacity:.7,strokeWeight:4}}},t))]})})})}},94891:e=>{e.exports={mapContainer:"index_mapContainer__8W7Eb"}}},e=>{e.O(0,[9759,636,6593,8792],()=>e(e.s=33625)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.