This is a Next.js project bootstrapped with create-next-app
. Deployed live on vercel at citybusbd.com.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
This project uses next/font
to automatically optimize and load PT Sans, a custom Google Font.
GET /api/stops
Parameter | Type | Description |
---|---|---|
None |
None |
No parameters required |
GET /api/bus
Parameter | Type | Description |
---|---|---|
None |
None |
No parameters required |
GET /api/bus?from=stop_id&to=stop_id
Parameter | Type | Description |
---|---|---|
from |
string |
Required. From stop id |
to |
string |
Required. To stop id |