June 10, 2026
Building TERRA·SCAN: AI Land Inspection Tool
How I built an AI-powered land inspection platform with Next.js, OpenRouter vision API, and Leaflet maps.
The Problem
Land inspection in Nigeria is slow, expensive, and often inaccurate. I wanted to build a tool that could analyze land images and generate professional reports instantly.
The Stack
- Next.js — frontend and API routes
- OpenRouter — vision AI for analyzing land images
- Leaflet — interactive maps for coordinates
- jsPDF — generating downloadable PDF reports
- react-dropzone — drag and drop image uploads
How It Works
Users drop an image of their land into the app. The image is sent to OpenRouter's vision API which analyzes it and returns a detailed inspection report. The report is then formatted into a branded PDF the user can download.
Key Challenges
The biggest challenge was handling OpenRouter being blocked in Nigeria. I had to implement VPN fallback logic and proper error handling for network failures.
TERRA·SCAN is now evolving into a full B2B SaaS with org accounts, Paystack subscriptions, and per-account inspection history.