Show HN: Visualizing Eclipse Traffic Impact in Vermont
Hello! Long time lurker, first time poster.<p>I’ve always been fascinated by maps and how they can track and reflect our lived experiences. The eclipse coming to my town was a perfect opportunity to use a map to demonstrate the magnitude of the impact of crowds of people descending on our little state.<p>I wanted to visualize this impact in an informative and visually appealing way. being a regional hotspot for viewing the totality, I was curious about the eclipse&#x27;s effects on traffic. Map apps only show you the &quot;now,&quot; and that was not what I wanted, so I decided to take matters into my own hands.<p>After reviewing various traffic data providers, I settled on using TomTom. Their policy on data usage was a crucial factor, as many providers restrict scraping. TomTom&#x27;s Flow&#x2F;Relative raster tiles offered the perfect balance between clarity and detail, emphasizing traffic conditions with a transparent background, perfect for overlaying standard basemaps.<p>I developed a script to programmatically scrape the tiles in my region across a few zoom levels, trying to balance TomTom&#x27;s costs and limits with the desired level of detail and storage costs. I set up GitHub actions to run the script at regular intervals throughout the day leading up to the eclipse and then extra times on the day of.<p>I initially stored the files directly in GitHub, but that quickly became unwieldy and led to 429 rate limit errors. I then tacked on a &quot;Copy to S3&quot; step to get the data out of the repo and set up CloudFront to improve performance and limit transfer costs.<p>AI, particularly ChatGPT and GitHub CoPilot, played a significant role in developing this project. Each line of code, while initially drafted by AI, underwent thorough review and refinement by me. This blend of AI efficiency and human oversight was essential, especially given the occasional need to correct or redirect the AI&#x27;s approach. (I let ChatGPT write this paragraph and present it without editing)<p>I hope you enjoy exploring my simple little map! Take a close look at totality (3:32 period), then immediately afterward (4:02 period). The map lights up red!<p>Then, watch as the huge flow of traffic heads southward. I heard anecdotes of it taking 2-3x as long to get home!