A Hong Kong-focused web application to help users decide whether taking a taxi is worth the extra cost compared to public transportation. The app features Hong Kong's three taxi types (Red/Green/Blue) with accurate fare calculations including tunnel fees, and calculates your approximate hourly rate to determine if the time saved justifies the additional expense.
- Hong Kong Taxi Calculator: Support for all three taxi types (Urban Red, New Territories Green, Lantau Blue)
- Accurate Fare Calculation: Real-time fare calculation with Hong Kong's tunnel fees
- Route Planning: GPS location detection and route mapping between Hong Kong locations
- Salary-Based Analysis: Calculate your effective hourly wage to compare against taxi costs
- Bilingual Support: Available in English and Traditional Chinese (Hong Kong)
- Government Data Integration: Uses Hong Kong Government geodata for accurate location search
- Local Storage: Save your salary preferences for quick calculations
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
- Select Start and End Locations: Use GPS or search for Hong Kong locations
- Choose Taxi Type: Select from Urban (Red), New Territories (Green), or Lantau (Blue) taxis
- Review Fare Calculation: See real-time fare including tunnel fees and route distance
- Enter Your Salary: Input annual or monthly salary to calculate your hourly rate
- Get Recommendation: Instant analysis of whether the taxi cost is worth your time
- View Route on Map: See the planned route with location markers
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.