show route 0

This commit is contained in:
steven 2025-04-10 21:11:54 -04:00
parent 750a4f0505
commit ed177817e3
2 changed files with 4 additions and 4 deletions

View file

@ -18,9 +18,9 @@ let layerControl=L.control.layers().addTo(map);
let busLayers={},busMarkers={};
function updateMap(){
let routes={};
fetch("tarc.csv").then(response=>response.text()).then(data=>{
if(data=="")return;
data.split("\n").forEach(line=>{
fetch("tarc.csv").then(response=>response.text()).then(csv=>{
if(csv=="")return;
csv.split("\n").forEach(line=>{
let [lat,lng,r,id,p,d,s,t]=line.split(",");
p=parseInt(p);
t=new Date(t*1000).toLocaleTimeString("en-US",{hour12:false});