# ajit-patagar-17/traveller architecture

> Architecture diagram of the GitHub repository ajit-patagar-17/traveller, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ajit-patagar-17/traveller
- Repository: https://github.com/ajit-patagar-17/traveller

## Overview

Traveller is an Android tourist guide. Users authenticate, browse temple, beach, and waterfall listings, open destination information, and launch map directions; the home screen also sends typed route searches to Google Maps. Category grids share a small adapter and item model. The README additionally advertises nearby attractions, location tracking, and travel tips, but the sampled code does not show their implementation, so those capabilities are represented only as an unverified subsystem. Firebase and map integrations are external services.

Main entry points: [`app/src/main/java/www/traveller/traveller/MainActivity.java`](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/MainActivity.java) (Home Activity), [`app/src/main/java/www/traveller/traveller/viewpagerTempleAdapter.java`](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/viewpagerTempleAdapter.java) (Category Tabs), [`app/src/main/java/www/traveller/traveller/TemplesFragment.java`](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/TemplesFragment.java) (Temple Listings), [`app/src/main/java/www/traveller/traveller/Beaches_fragment.java`](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/Beaches_fragment.java) (Beach Listings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Account Access"]
  node_login["Login"]
  node_signup["Sign Up"]
  node_firebase{{"Firebase Auth"}}
end

subgraph group_browse["Attraction Browsing"]
  node_home["Home Activity<br/>[MainActivity.java]"]
  node_tabs["Category Tabs"]
  node_temples["Temple Listings"]
  node_beaches["Beach Listings"]
  node_waterfalls["Waterfall Listings"]
  node_grid_adapter["Grid Adapter<br/>[GridAdapter.java]"]
  node_grid_item["Grid Item<br/>[GridItem.java]"]
end

subgraph group_places["Destination Details"]
  node_destination_details["Destination Details"]
  node_nearby_location["Nearby Attractions"]
  node_travel_tips["Travel Tips"]
end

subgraph group_maps["Maps and Routes"]
  node_route_search["Route Search<br/>[MainActivity.java]"]
  node_place_directions["Place Directions"]
  node_google_maps{{"Google Maps"}}
end

node_traveler(("Traveler"))

node_traveler -.->|"opens"| node_login
node_traveler -.->|"browses"| node_home
node_login -->|"signs in"| node_firebase
node_signup -->|"creates account"| node_firebase
node_login -->|"opens on success"| node_home
node_signup -->|"opens after signup"| node_login
node_home -->|"sets adapter"| node_tabs
node_tabs -->|"provides page"| node_temples
node_tabs -->|"provides page"| node_beaches
node_tabs -->|"provides page"| node_waterfalls
node_temples -->|"sets adapter"| node_grid_adapter
node_beaches -->|"sets adapter"| node_grid_adapter
node_waterfalls -->|"sets adapter"| node_grid_adapter
node_grid_adapter -->|"binds items"| node_grid_item
node_temples -->|"creates items"| node_grid_item
node_beaches -->|"creates items"| node_grid_item
node_waterfalls -->|"creates items"| node_grid_item
node_temples -->|"opens destination"| node_destination_details
node_beaches -->|"opens destination"| node_destination_details
node_waterfalls -->|"opens destination"| node_destination_details
node_home -->|"opens route"| node_google_maps
node_place_directions -->|"opens directions"| node_google_maps
node_nearby_location -.->|"uses maps"| node_google_maps
node_home -.->|"finds nearby"| node_nearby_location
node_destination_details -.->|"provides advice"| node_travel_tips

click node_login "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/login_activity.java"
click node_signup "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/signup_activity.java"
click node_home "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/MainActivity.java"
click node_tabs "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/viewpagerTempleAdapter.java"
click node_temples "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/TemplesFragment.java"
click node_beaches "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/Beaches_fragment.java"
click node_waterfalls "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/WaterfallsFragment.java"
click node_grid_adapter "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/GridAdapter.java"
click node_grid_item "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/GridItem.java"
click node_destination_details "https://github.com/ajit-patagar-17/traveller/tree/main/app/src/main/java/www/traveller/traveller"
click node_route_search "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/MainActivity.java"
click node_place_directions "https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/Chandragutti_activity.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_signup,node_firebase toneBlue
class node_home,node_tabs,node_temples,node_beaches,node_waterfalls,node_grid_adapter,node_grid_item toneAmber
class node_destination_details,node_nearby_location,node_travel_tips toneMint
class node_route_search,node_place_directions,node_google_maps toneRose
class node_traveler toneIndigo
```

## Components

### Account Access

- [Login](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/login_activity.java): `app/src/main/java/www/traveller/traveller/login_activity.java`
- [Sign Up](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/signup_activity.java): `app/src/main/java/www/traveller/traveller/signup_activity.java`
- **Firebase Auth**

### Attraction Browsing

- [Home Activity](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/MainActivity.java): `app/src/main/java/www/traveller/traveller/MainActivity.java`
- [Category Tabs](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/viewpagerTempleAdapter.java): `app/src/main/java/www/traveller/traveller/viewpagerTempleAdapter.java`
- [Temple Listings](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/TemplesFragment.java): `app/src/main/java/www/traveller/traveller/TemplesFragment.java`
- [Beach Listings](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/Beaches_fragment.java): `app/src/main/java/www/traveller/traveller/Beaches_fragment.java`
- [Waterfall Listings](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/WaterfallsFragment.java): `app/src/main/java/www/traveller/traveller/WaterfallsFragment.java`
- [Grid Adapter](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/GridAdapter.java): `app/src/main/java/www/traveller/traveller/GridAdapter.java`
- [Grid Item](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/GridItem.java): `app/src/main/java/www/traveller/traveller/GridItem.java`

### Destination Details

- [Destination Details](https://github.com/ajit-patagar-17/traveller/tree/main/app/src/main/java/www/traveller/traveller): `app/src/main/java/www/traveller/traveller`
- **Nearby Attractions**
- **Travel Tips**

### Maps and Routes

- [Route Search](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/MainActivity.java): `app/src/main/java/www/traveller/traveller/MainActivity.java`
- [Place Directions](https://github.com/ajit-patagar-17/traveller/blob/main/app/src/main/java/www/traveller/traveller/Chandragutti_activity.java): `app/src/main/java/www/traveller/traveller/Chandragutti_activity.java`
- **Google Maps**

### Other components

- **Traveler**

## Connections

- Traveler → Login: opens
- Traveler → Home Activity: browses
- Login → Firebase Auth: signs in (evidence: `app/src/main/java/www/traveller/traveller/login_activity.java`)
- Sign Up → Firebase Auth: creates account (evidence: `app/src/main/java/www/traveller/traveller/signup_activity.java`)
- Login → Home Activity: opens on success (evidence: `app/src/main/java/www/traveller/traveller/login_activity.java`)
- Sign Up → Login: opens after signup (evidence: `app/src/main/java/www/traveller/traveller/signup_activity.java`)
- Home Activity → Category Tabs: sets adapter (evidence: `app/src/main/java/www/traveller/traveller/MainActivity.java`)
- Category Tabs → Temple Listings: provides page (evidence: `app/src/main/java/www/traveller/traveller/viewpagerTempleAdapter.java`)
- Category Tabs → Beach Listings: provides page (evidence: `app/src/main/java/www/traveller/traveller/viewpagerTempleAdapter.java`)
- Category Tabs → Waterfall Listings: provides page (evidence: `app/src/main/java/www/traveller/traveller/viewpagerTempleAdapter.java`)
- Temple Listings → Grid Adapter: sets adapter (evidence: `app/src/main/java/www/traveller/traveller/TemplesFragment.java`)
- Beach Listings → Grid Adapter: sets adapter (evidence: `app/src/main/java/www/traveller/traveller/Beaches_fragment.java`)
- Waterfall Listings → Grid Adapter: sets adapter (evidence: `app/src/main/java/www/traveller/traveller/WaterfallsFragment.java`)
- Grid Adapter → Grid Item: binds items (evidence: `app/src/main/java/www/traveller/traveller/GridAdapter.java`)
- Temple Listings → Grid Item: creates items (evidence: `app/src/main/java/www/traveller/traveller/TemplesFragment.java`)
- Beach Listings → Grid Item: creates items (evidence: `app/src/main/java/www/traveller/traveller/Beaches_fragment.java`)
- Waterfall Listings → Grid Item: creates items (evidence: `app/src/main/java/www/traveller/traveller/WaterfallsFragment.java`)
- Temple Listings → Destination Details: opens destination (evidence: `app/src/main/java/www/traveller/traveller/TemplesFragment.java`)
- Beach Listings → Destination Details: opens destination (evidence: `app/src/main/java/www/traveller/traveller/Beaches_fragment.java`)
- Waterfall Listings → Destination Details: opens destination (evidence: `app/src/main/java/www/traveller/traveller/WaterfallsFragment.java`)
- Home Activity → Google Maps: opens route (evidence: `app/src/main/java/www/traveller/traveller/MainActivity.java`)
- Place Directions → Google Maps: opens directions (evidence: `app/src/main/java/www/traveller/traveller/Chandragutti_activity.java`)
- Nearby Attractions → Google Maps: uses maps (evidence: `README.md`)
- Home Activity → Nearby Attractions: finds nearby (evidence: `README.md`)
- Destination Details → Travel Tips: provides advice (evidence: `README.md`)
