A Next.js implementation of the OpenRouteService Map Client (https://maps.openrouteservice.org/) using React, Radix UI, and Leaflet.
- 🗺️ Interactive map with Leaflet
- 🔍 Place search and geocoding
- 🛣️ Route planning and directions
- ⏱️ Isochrones (travel time areas)
- 🎨 Modern UI with Radix UI components
- 📱 Responsive design
- Node.js 18+
- npm, yarn, or pnpm
npm install
# or
yarn install
# or
pnpm install- Copy
.env.exampleto.env.local - Add your OpenRouteService API key:
Get your API key from: https://openrouteservice.org/dev/#/signup
NEXT_PUBLIC_ORS_API_KEY=your-api-key-here
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 in your browser.
- Framework: Next.js 14 (App Router)
- UI Library: React 18
- UI Components: Radix UI
- Styling: Tailwind CSS
- Map Library: Leaflet + React-Leaflet
- State Management: Zustand
- API Client: openrouteservice-js
- Icons: Lucide React