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
The route planning endpoint analyzes bus schedules and local transport options to find the fastest and most economical routes between any two locations in the network.Plan a Route
Query Parameters
Origin node ID. Must be a valid node from the network.Example:
TILAGOR, CAMPUS, SUBIDBAZARUse GET /api/nodes to get all valid node IDs.Destination node ID. Must be a valid node from the network.Example:
CAMPUS, MEDICAL, ZINDABAZARDeparture time in 24-hour format (HH:MM).Examples:
08:30, 14:15, 17:00Must match the regex pattern: /^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/Optional. If the user is already on a bus route, specify it to get transfer options.Example:
bus1Response Fields
Origin node ID (echoed from request)
Destination node ID (echoed from request)
Request time in HH:MM format (echoed from request)
Array of route options, sorted by preference. See RouteOption model.
Route Categories
Routes are categorized to help users make informed decisions:Fastest
The quickest route considering total travel time, including waiting for buses.Least Local
Minimizes use of paid local transport (CNG, rickshaw), preferring free bus service.Both
A route that is both fastest AND uses least local transport.Route Types
Direct Bus
Single bus route from origin to destination, no transfers.Transfer Route
Requires changing between bus routes.Local Only
Uses only local transport (CNG, rickshaw, walking) - no bus.Real-World Example
From Subidbazar to Chowhatta at 4:40 PM:Error Responses
Missing Parameters (400)Distance Matrix Integration
When the API needs to calculate distances for local transport, it may use the Google Distance Matrix API:Distance Matrix results are cached to minimize API usage. Check
/api/health for cache statistics.Related Endpoints
Nodes
Get all available locations
Bus Routes
Browse bus schedules
Favorites
Save frequently used routes
Models
RouteOption data structure