A modern, high-performance web application designed to calculate bus fares for the Dhaka Metropolitan Area based on the official BRTA (Bangladesh Road Transport Authority) fare list.
- Fare Calculator: Select a route (optional), a starting location, and a destination to instantly see the calculated fare and distance.
- Search Without Route: Simply select "From" and "To" to find all available routes connecting those two locations.
- Triangular Fare Chart: A professional-grade, tree-like triangular table for each route, showing distances and fares between all stops at a glance.
- Bilingual Support: Full support for both English and Bengali (বাংলা) languages.
- Persistent Configuration: Set your own "Minimum Fare" and "Fare per KM" parameters via a configuration modal. Settings are saved in cookies for future sessions.
- Dual Theme Support: High-contrast Dark and Light modes with persistent user preferences.
- Premium UI: Built with a minimalist aesthetic using Lucide Icons and the Inter typeface.
- Fully Responsive: Optimized for browsing on desktops, tablets, and mobile devices.
The data for this application was extracted from the official BRTA fare list:
- Source: BRTA Official Fare List
- Conversion: PDF files were converted to high-resolution images.
- Extraction: Data was extracted using OCR and LLM-assisted processing (via chat.qwen.ai) for accurate translation and digitization.
- Structure: Raw data is stored in
raw_data/and processed into an optimized JSON format inweb_data/data.jsonfor fast client-side performance.
- Frontend: Vanilla HTML5, CSS3, JavaScript (ES6+)
- Icons: Lucide Icons
- Fonts: Inter
- Development Utilities: Node.js scripts for data transformation.
Since the application uses fetch() to load JSON data, it must be run through a local server due to browser security (CORS) policies.
-
Clone the repository:
git clone https://github.com/imamhossain94/dhaka-metro-area-bus-fare-list.git cd dhaka-metro-area-bus-fare-list -
Run a local server:
- Using Node.js:
npx serve . - Using Python:
python -m http.server 8000
- Using Node.js:
- Data provided by BRTA (Bangladesh Road Transport Authority).
- OCR and extraction assistance by Qwen.
- Icons provided by Lucide.
Developed by Imam Hossain
