This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass
What I Built
Adventure Map is a crowdsourced social map designed to get hikers, explorers, and off-road adventurers outside. Instead of just dropping standard pins, it provides an intuitive freehand trail-drawing engine where users can seamlessly paint their own trails directly onto an interactive 3D map. It helps people discover hidden waterfalls, map out dangerous zones, and plan safe excursions.
Demo
Code
Adventure Map
Adventure Map is a crowdsourced social map for hikers, explorers, and off-road adventurers. Discover hidden waterfalls, navigate dangerous zones, and map out your next excursion using our intuitive freehand trail-drawing engine.
Features
Core Mapping & Exploration
- Interactive 3D Map: Fluid MapLibre GL integration with seamless toggling between Street and Satellite views.
- Smart Filtering: Instantly declutter the map by filtering for All Trails, My Trails, Scenic, or Danger Zones.
Drawing & Navigation
- Freehand Trail Engine: Paint custom, continuous trails directly on the map with categorized brushes (Normal/Blue, Moderate/Yellow, Danger/Red).
- AI Auto-Routing: The moment you draw a normal path, an AI engine (Powered by OSRM) instantly snaps your hand-drawn line to the nearest real-world roads and hiking trails.
- Live GPS Tracking: Hit "Start Tracking" on mobile to automatically paint the trail behind you as you walk in real-time.
Social & Community
- Google Auth & Profiles: Instant…
How I Built It
To make trail drawing magical and effortless on mobile, I used the Open Source Routing Machine (OSRM) API as an intelligent spatial routing engine. When a user haphazardly draws a freehand "Normal Path" on their touchscreen, the app instantly queries the OSRM engine. The AI analyzes the messy coordinates, matches them to real-world pedestrian and hiking paths, and seamlessly snaps the drawn line to the actual physical trails!
I built the frontend with React, Vite, and MapLibre GL JS, and the backend with Node.js, Express, and MongoDB.
Why Does Open Innovation Matter?
Building with open source tools like MapLibre and OSRM made this project possible. A closed routing API would have severely rate-limited our real-time trail matching or charged prohibitive costs for processing thousands of GPS coordinates. Open spatial data allows developers to build hyper-localized, outdoor-focused tools without gatekeepers.
My Agent Session
Here is an interactive snippet from my session with Antigravity showing how we debugged MapLibre's touch gesture events and implemented Optimistic UI to fix the AI routing lag on mobile devices:
Prize Categories
- Touch Grass Prize
Top comments (0)