SmogCheck - offline
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass What I Built SmogCheck is an offline walking-route planner for Lahore's smog season. You ask it, in plain English, something like "Where can I take a 3 km walk from Gulberg?" , and it plans a loop that stays off the big traffic arteries and goes through a park. During peak smog, the usual advice is "stay…
SmogCheck is an offline walking-route planner designed for Lahore's smog season. Users ask it in plain English where they can take a 3 km walk from a specific location, and it generates a loop that avoids major traffic arteries and passes through parks. During peak smog, the conventional advice is to stay indoors, but people still need to exercise, and SmogCheck offers a safer alternative.
By default, map applications provide the shortest route, which often involves busy roads. SmogCheck selects quieter streets and parks, resulting in a lower exposure to smog. It relies on proxies for exposure, such as road class and proximity to parks and mapped trees. The planner is suitable for anyone in Lahore who wants to walk or run during smog season without sharing their daily routes with cloud services.
The system uses offline data and tools like OSMnx, NetworkX, GeoPandas, and Folium to generate the routes. During a test, SmogCheck found a route through a park with 17% of the path being on major roads, compared to 61% on major roads for the shortest path. The route was 4,653 meters long with 1.1 km of extra walking, but it reduced time spent on arterial roads by 84%.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.