{"id":235160,"date":"2026-06-30T13:50:02","date_gmt":"2026-06-30T13:50:02","guid":{"rendered":"https:\/\/teknomers.com\/en\/i-wanted-to-find-the-closest-spot-to-view-the-eclipse-so-i-programmed-an-ai-app-to-search-for-it\/"},"modified":"2026-06-30T13:50:04","modified_gmt":"2026-06-30T13:50:04","slug":"i-wanted-to-find-the-closest-spot-to-view-the-eclipse-so-i-programmed-an-ai-app-to-search-for-it","status":"publish","type":"post","link":"https:\/\/teknomers.com\/en\/i-wanted-to-find-the-closest-spot-to-view-the-eclipse-so-i-programmed-an-ai-app-to-search-for-it\/","title":{"rendered":"I Wanted to Find the Closest Spot to View the Eclipse, So I Programmed an AI App to Search for It"},"content":{"rendered":"\n<div>\n<h2>Maximizing Your Solar Eclipse Experience: Finding the Best Viewing Locations<\/h2>\n<p>Next August 12, I&#8217;ll find myself in Madrid during an astronomical event that many will be eagerly anticipating: the solar eclipse taking place at around 8:30 p.m. Unfortunately, Madrid isn&#8217;t the best viewing spot for this celestial phenomenon. To truly enjoy the eclipse with my family, we&#8217;re looking for a location where we can experience it fully and for as long as possible\u2014without straying too far from home.<\/p>\n<h3>The Search for Optimal Viewing<\/h3>\n<p>There are several tools available from organizations like the National Geographic Institute that describe what the eclipse will look like from various locations. However, I&#8217;m interested in a tool that helps determine the best location based on distance and travel time. Realizing the need for such an application led me to ponder the idea of creating my own.<\/p>\n<h3>Creating My AI-Powered App<\/h3>\n<p>Recent advancements in AI technologies\u2014like Claude Code, Codex, Antigravity, and OpenCode\u2014encouraged me to explore the feasibility of developing this tool. I started by using ChatGPT to evaluate whether it was possible to identify ideal viewing locations for the eclipse based on real-time data about distances and travel times.<\/p>\n<h3>Gathering Essential Data<\/h3>\n<p>After a detailed discussion with the AI model, I received a comprehensive executive summary. It highlighted several viable data sources, such as the National Observatory and astronomical APIs like <a rel=\"nofollow noopener\" href=\"https:\/\/opale.imcce.fr\/\" target=\"_blank\">OPALE<\/a>. For optimal routing, it recommended using <a rel=\"nofollow noopener\" href=\"https:\/\/project-osrm.org\/\" target=\"_blank\">OSRM<\/a>, which is an excellent open-source platform for navigation purposes.<\/p>\n<h2>The Development Process<\/h2>\n<p>Equipped with this information, I began developing the application using AI platforms, particularly testing the GLM-5.2 model from Z.ai. I created a project directory on my computer, launched the AI agent, and relayed my previous conversation with ChatGPT, along with additional guidelines for planning the application.<\/p>\n<h3>Initial Results and Refinements<\/h3>\n<p>After 42 minutes of AI-powered creation, the application was up and running. It displayed an appealing interface, but a few issues arose regarding distance calculations for selected viewing locations from Madrid. For instance, options given were much farther away than I had anticipated. A collaborative &#8220;chat&#8221; with the AI fixed these discrepancies, allowing for better recommendations based on factors such as highway access and duration of eclipse totality.<\/p>\n<h3>Enhancements and User Experience<\/h3>\n<p>As I refined the recommendations, the AI suggested more features, including a visualization of the eclipse&#8217;s totality strips and a user-friendly route display. This resulted in an intuitive interface, enabling users to see the best locations to view the eclipse based on their departure point.<\/p>\n<h3>Final Touches and Launch<\/h3>\n<p>After successfully implementing these features and ensuring that the code was efficient and secure, I published the project on GitHub, inviting others to explore and modify it. I also launched the application on a subdomain, making it publicly available for anyone interested in planning their eclipse viewing experience.<\/p>\n<h2>Your Eclipse Adventure Awaits<\/h2>\n<p>While my application may not be perfect, it serves as an illustration of how easy it has become to turn an idea into a functional app thanks to modern technology. Whether you\u2019re planning to view the eclipse from Madrid or another location, I hope this guide helps maximize your experience. Don\u2019t miss out on the solar eclipse this August\u2014embrace the adventure!<\/p>\n<\/div>\n<p><br \/>\n<br \/><a href=\"https:\/\/teknomers.com\/category\/general\/\" rel=\"dofollow\">General News &#8211; 2<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Maximizing Your Solar Eclipse Experience: Finding the Best Viewing Locations Next August 12, I&#8217;ll find myself in Madrid during an astronomical event that many will be eagerly anticipating: the solar eclipse taking place at around 8:30 p.m. Unfortunately, Madrid isn&#8217;t the best viewing spot for this celestial phenomenon. To truly enjoy the eclipse with my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":235161,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36399],"tags":[4931,13173,8677,54,6844,536,11862,2408,893],"class_list":["post-235160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-app","tag-closest","tag-eclipse","tag-find","tag-programmed","tag-search","tag-spot","tag-view","tag-wanted"],"_links":{"self":[{"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/posts\/235160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/comments?post=235160"}],"version-history":[{"count":1,"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/posts\/235160\/revisions"}],"predecessor-version":[{"id":235162,"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/posts\/235160\/revisions\/235162"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/media\/235161"}],"wp:attachment":[{"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/media?parent=235160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/categories?post=235160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teknomers.com\/en\/wp-json\/wp\/v2\/tags?post=235160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}