Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ihfaz297/MND/llms.txt
Use this file to discover all available pages before exploring further.
Overview
TheNode model represents a physical location in the transportation network. Nodes can be bus stops, major intersections, or key destinations.
Type Definition
/home/daytona/workspace/source/MND-backend/src/core/types.ts:5-12
Fields
Unique node identifier in UPPERCASE with underscores.Examples:
TILAGORCAMPUSSHAHI_EIDGAHMODINA_MARKET
Human-readable location name.Examples:
"Tilagor""Campus""Shahi Eidgah""Modina Market"
Classification of the node’s purpose.
Google Maps searchable address.Used for:
- Distance Matrix API calculations
- User-facing location descriptions
- Map integrations
"Tilagor, Sylhet, Bangladesh""Shahjalal University of Science and Technology, Sylhet, Bangladesh""Sylhet MAG Osmani Medical College Hospital, Sylhet, Bangladesh"
Latitude coordinate (optional).Example:
24.9204Longitude coordinate (optional).Example:
91.8354Node Types
Stop
Regular bus stops with scheduled pickups and drop-offs.- Served by one or more bus routes
- Users wait here for buses
- May have local transport connections
Intersection
Major crossroads serving as transfer points.- Multiple bus routes converge here
- Good transfer points between routes
- High connectivity to other nodes
Destination
Key destinations with high foot traffic.- Important endpoints for routes
- May have limited direct bus service
- Often reached via local transport
Complete Node List
All 19 Nodes
Usage in API
Route Planning
Node IDs are used in route planning:Getting Node Information
Finding Nodes on a Route
Node Connectivity
Nodes are connected via edges (relationships):Bus Connections
Nodes connected by scheduled bus routes:Local Transport
Nodes connected by CNG/rickshaw:Walking
Nearby nodes connected by walking paths:Validation
Required Fields
All nodes must have:- Unique
id - Human-readable
name - Valid
type(stop/intersection/destination) - Google Maps searchable
gmaps_address
ID Format
Type Validation
Coordinate System
When provided, coordinates use WGS84 (GPS standard):- Latitude: ~24.85 to 24.95
- Longitude: ~91.81 to 91.88
- Region: Sylhet, Bangladesh
Distance Matrix Integration
Thegmaps_address field is used for Distance Matrix API calls:
Related Data
Edges
Nodes are connected by edges:Routes
Bus routes define stop sequences:Related Endpoints
Get All Nodes
List all 19 locations
Route Planning
Use nodes to plan routes
Bus Routes
See which nodes are served
RouteLeg Model
Nodes as from/to in legs