How sanjna005/coastwise-ai works
CoastWise AI helps travelers explore Coastal Karnataka, find places and transport, and build personalized day-by-day trips. The main journey runs from trip preferences through itinerary generation to ordered stops, maps, directions and local travel links. Separate discovery branches cover destination listings, stays, food and distance-ranked nearby places. Authentication uses Supabase, while place search can use OpenStreetMap or optional Google services. README capabilities guide inclusion of unsampled planner and transport modules; their internal wiring is not asserted where excerpts do not establish it.
Main entry points: places.functions.ts Place search · plan.tsx Trip planner · destinations.index.tsx Destinations · transit.ts Transit links
Components 24
Travel experience
- Coast overview
src/routes/index.tsx - Destinations
src/routes/destinations.index.tsx - Destination detail
src/routes/destinations.$slug.tsx - Train and bus links
src/routes/travel.tsx - Transit links
src/lib/transit.ts - Ride links
src/routes/rides.tsx - Cab links
src/components/ride-links.tsx - Sign in
src/routes/auth.tsx
Trip planning
- Trip planner
src/routes/plan.tsx - Itinerary service
src/lib/itinerary.functions.ts - Maps and directions
src/components/map-embed.tsx
Place discovery
- Stays directory
src/routes/stays.tsx - Food directory
src/routes/food.tsx - Nearby places
src/components/near-me.tsx - Place search
src/lib/places.functions.ts - Place listings
src/components/places-explorer.tsx
External services
- Supabase client
src/integrations/supabase/client.ts - Google Maps
- OpenStreetMap
- Google Places
- Gemini AI
- Booking services
- Supabase
Other components
- Traveler
Connections 25
- Traveler → Coast overview: explores
- Traveler → Trip planner: enters trip needs
- Traveler → Destinations: browses
- Traveler → Nearby places: shares location
- Traveler → Sign in: signs in
- Coast overview → Destinations: links to
- Destinations → Destination detail: opens destination
- Trip planner → Itinerary service: requests itinerary
- Itinerary service → Gemini AI: generates with
- Trip planner → Maps and directions: shows trip maps
- Trip planner → Transit links: offers travel links
- Destination detail → Place listings: shows places
- Stays directory → Place search: searches stays
- Food directory → Place search: searches food
- Nearby places → Place search: searches nearby
- Place search → OpenStreetMap: queries fallback
- Place search → Google Places: queries optionally
- Place search → Place listings: returns listings
- Maps and directions → Google Maps: embeds maps
- Train and bus links → Transit links: builds links
- Transit links → Booking services: opens booking
- Ride links → Cab links: uses links
- Cab links → Booking services: opens cab booking
- Sign in → Supabase client: authenticates
- Supabase client → Supabase: uses auth