This commit is contained in:
Bkk1234 committed 2026-10-23 17:52:56 +07:00
commit 9519fef02d
174 files changed
+5964 -27

No files matched your search

+82
View File
@@ -1,3 +1,4 @@
<<<<<<< HEAD
import AboutView from "@/components/views/AboutView";
import PageRuntime from "@/components/PageRuntime";
@@ -8,6 +9,87 @@ export default function Page() {
<>
<AboutView />
<PageRuntime page="about" />
=======
import { HERO_MAP } from "@/lib/images";
const BLOCKS = [
{
title: "เราคือใคร? คิดอย่างไรถึงเริ่มทำเว็บนี้",
pic: "/images/about/pic1.jpg",
body: [
"สวัสดีผู้อ่านทุกคน ขอบคุณที่เข้ามาดูเว็ปตั้งแต่แรกเริ่ม เปลี่ยนชื่อหลายรอบ สำหรับข้อมูลส่วนตัวว่าเราคือใครเราไม่อยากเปิดเผยตัวตน เก็บความเป็นส่วนตัว",
"ส่วนที่ว่าคิดยังไงถึงเริ่มทำเว็บนี้ เรามีประสบการณ์รอ รถมินิบัส อ่างทอง-กรุงเทพ(สายใน) หน้าสำนักงานที่ดินจังหวัดอ่างทอง ตอน 4โมงเช้า-5โมงเช้า ถ้าคนทั่วไปอาจจะไม่รู้ แต่ถ้าคนที่ขึ้นสายนี้ประจำจะรู้ แต่เราไม่รู้ไง! และตอนนั้นเป็นวันเสาร์ก็ไม่มีสองแถวด้วย รู้สึกว่าอยากขึ้นทำอะไรซักอย่าง",
],
},
{
title: "ไม่มีจิตรกรคนไหนนั่งวาดภาพจากอากาศ",
pic: "/images/about/pic2.jpg",
body: [
"บางคนอาจจะสงสัยว่าวลีนี้เกี่ยวกับเว็ปเราอย่างไร อย่างที่สำนวนบอกไม่มีจิตรกรวาดรูปจากอากาศ เว็ปเราก็ไม่ได้มโนจากอากาศเหมือนกันจะสร้างอะไรได้มันต้องมีต้นแบบให้ดู ขอให้เครดิตและขอบคุณต้นแบบของเราทุกๆคน",
"- Mayday กลุ่มคนรณรงค์เรื่องรถเมล์ในกรุงเทพ ปริมณฑล",
"- AyuthayaBusMap เป็นธุรกิจในอยุธยาทำแผนที่รถประจำทางบริการนักท่องเที่ยว",
"- กลุ่มไลน์รถตู้ กรุงเทพ-อ่างทอง (สายใน) เป็นต้นแบบว่าถึงเราไม่ใช่ผู้ประกอบการเราก็ลุกขึ้นมาทำอะไรซักอย่างได้",
],
},
{
title: "ความตั้งใจในปัจจุบัน",
pic: "/images/about/pic3.jpg",
body: [
"ความตั้งใจของเราคือ พยายามรวบรวมช่องทางการติดต่อถามเวลาเดินรถหรือติดตามข่าวสาร เช่น เบอร์โทร เพจFB กลุ่มFBหรือline หรือwww ที่รถประจำทางแต่ละสายประกาศไว้",
"ส่วนเรื่องตารางเวลาเดินรถที่เวปเราบอกตรงๆว่า เราอยากทำเป็นไอเดีย ว่าถ้าอ่างทองมีตารางเดินรถออนไลน์คงจะดีแต่ไม่ต้องไปเชื่อมาก เราคาดสีสถานะใว้",
"สีแดง คือตารางเวลาที่ไม่ได้อัปเดตเกิน 1 อาทิตย์ น่าจะเป็นสีที่เห็นได้บ่อยที่สุด",
"สีเขียว คือตารางเวลาที่ได้อัปเดตไม่เกิน 1 วัน",
"สีส้ม คือตารางเวลาที่ไม่ได้อัปเดตเกิน 1 วันแต่น้อยกว่า 1 อาทิตย์",
],
},
{
title: "แผนพัฒนาในอนาคต",
pic: "/images/about/pic4.jpg",
body: [
"ถ้ามีคนถามถึงแผนพัฒนาในอนาคตมั้ยก็ต้องบอกตรงๆว่าไม่มีการที่ใครเข้าเวปมาแล้วได้โทรถามเวลาเดินรถ หรือเข้ากลุ่มไลน์รถสองแถว รถมินิบัส ถือว่าเว็ปนี้ทำหน้าที่ครบแล้ว จริงๆเว็ปนี้ตอนแรกตั้งใจเป็นเว็บชั่วคราว เราอยากให้หน่วยงานราชการและเอกชนใช้กฎหมาย PPP ร่วมทุนระหว่างราชการและเอกชนเพื่อสร้างระบบขนส่งมวลชนของอ่างทอง มีเว็ปแบบเรา มีสถานีขนส่งผู้โดยสารประจำอำเภอ มีรถประจำทางเส้นเลือดฝอยที่ให้บริการได้ทั้งวัน มีเรือโดยสารแม่น้ำน้อย มีเรือข้ามฟากไชโย หรือใครมีไอเดียก็เมลล์มาบอกได้เผื่อจะนำไปปรับปรุงอนาคต",
],
},
];
export default function AboutPage() {
return (
<>
<section className="hero hero--short">
<img className="hero__map" src={HERO_MAP} alt="" aria-hidden="true" />
<div className="hero__blob one" aria-hidden />
<div className="hero__blob two" aria-hidden />
<div className="hero__blob three" aria-hidden />
<div className="container hero__inner">
<span className="hero__badge">เกี่ยวกับเรา</span>
<h1>
เกี่ยวกับเรา
<br />
<span className="hero__grad">เมื่อไหร่รถจะมา</span>
</h1>
<p className="hero__lead">เรื่องราวและที่มาของเว็บนี้ — อ่านเรียงตามบล็อกด้านล่างได้เลย</p>
</div>
</section>
<main className="main">
<div className="container">
<div className="about-wrap">
{BLOCKS.map((b) => (
<article className="about-block" key={b.title}>
<div className="about-block__text">
<h2>{b.title}</h2>
{b.body.map((p, i) => (
<p key={i}>{p}</p>
))}
</div>
<div className="about-media">
<img src={b.pic} alt={b.title} loading="lazy" decoding="async" />
</div>
</article>
))}
</div>
</div>
</main>
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
</>
);
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

+71
View File
@@ -1,3 +1,4 @@
<<<<<<< HEAD
import BlogView from "@/components/views/BlogView";
import PageRuntime from "@/components/PageRuntime";
@@ -8,6 +9,76 @@ export default function Page() {
<>
<BlogView />
<PageRuntime page="blog" />
=======
import { HERO_MAP } from "@/lib/images";
import t1 from "@/data/blog/text1.json";
import t2 from "@/data/blog/text2.json";
import t3 from "@/data/blog/text3.json";
import t4 from "@/data/blog/text4.json";
import t5 from "@/data/blog/text5.json";
import t6 from "@/data/blog/text6.json";
import t7 from "@/data/blog/text7.json";
type Post = { date: string; th: { title: string; tag?: string; body: string[] } };
const POSTS: (Post & { pic: string })[] = [
{ ...(t1 as Post), pic: "/images/blog/pic1.jpg" },
{ ...(t2 as Post), pic: "/images/blog/pic2.jpg" },
{ ...(t3 as Post), pic: "/images/blog/pic3.jpg" },
{ ...(t4 as Post), pic: "/images/blog/pic4.jpg" },
{ ...(t5 as Post), pic: "/images/blog/pic5.jpg" },
{ ...(t6 as Post), pic: "/images/blog/pic6.jpg" },
{ ...(t7 as Post), pic: "/images/blog/pic7.jpg" },
].sort((a, b) => (a.date < b.date ? 1 : -1));
function fmtDate(d: string) {
const [y, m, dd] = d.split("-");
const months = ["ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."];
return `${Number(dd)} ${months[Number(m) - 1]} ${Number(y) + 543}`;
}
export default function BlogPage() {
return (
<>
<section className="hero hero--short">
<img className="hero__map" src={HERO_MAP} alt="" aria-hidden="true" />
<div className="hero__blob one" aria-hidden />
<div className="hero__blob two" aria-hidden />
<div className="hero__blob three" aria-hidden />
<div className="container hero__inner">
<span className="hero__badge">บ่นไปเรื่อย</span>
<h1>
บ่นไปเรื่อย
<br />
<span className="hero__grad">เรื่องเล่าระหว่างทาง</span>
</h1>
<p className="hero__lead">รวมข้อเขียน ความฝัน และความกังวลเกี่ยวกับรถโดยสารในจังหวัดอ่างทอง</p>
</div>
</section>
<main className="main">
<div className="container">
<div className="blog-wrap">
{POSTS.map((p, i) => (
<article className="blog-card" key={p.date + p.th.title}>
<div className="blog-card__media">
<img src={p.pic} alt={p.th.title} loading="lazy" decoding="async" />
</div>
<div className="blog-card__body">
<div className="blog-card__meta">
<time dateTime={p.date}>{fmtDate(p.date)}</time>
{p.th.tag && <span className="blog-card__tag">{p.th.tag}</span>}
</div>
<h2>{p.th.title}</h2>
{p.th.body.slice(0, 2).map((para, j) => (
<p key={j}>{para}</p>
))}
</div>
</article>
))}
</div>
</div>
</main>
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
</>
);
}
+151
View File
@@ -1,3 +1,4 @@
<<<<<<< HEAD
import CheckView from "@/components/views/CheckView";
import PageRuntime from "@/components/PageRuntime";
@@ -16,5 +17,155 @@ export default async function Page({
<CheckView />
<PageRuntime page="check" query={query} />
</>
=======
import Link from "next/link";
import { api, type RouteListItem, type Schedule, type RouteStop, type RouteDetail } from "@/lib/api";
import { RouteSelect } from "@/components/RouteSelect";
import { VisitTracker } from "@/lib/visit-tracker";
import { Icon } from "@/components/Icons";
import { headers } from "next/headers";
import { t, langFromCookie } from "@/lib/i18n";
const TONES = ["sky", "purple", "pink", "mint", "amber"] as const;
function nextTrip(times: string[]): string | null {
if (times.length === 0) return null;
const now = new Date();
const cur = now.getHours() * 60 + now.getMinutes();
for (const t of [...times].sort()) {
const [h, m] = t.split(":").map(Number);
if (h * 60 + m >= cur) return t;
}
return null;
}
type CheckPageProps = {
searchParams: Promise<{ route?: string }>;
};
export default async function CheckPage({ searchParams }: CheckPageProps) {
const sp = await searchParams;
const h = await headers();
const lang = langFromCookie(h.get("cookie"));
const T = (k: string, v?: Record<string, string | number>) => t(k, lang, v);
const { items: allRoutes } = await api.routes().catch(() => ({ items: [] as RouteListItem[] }));
const routeId =
sp.route && allRoutes.some((r) => r.route_id === sp.route)
? sp.route
: allRoutes[0]?.route_id;
let route: RouteDetail | null = null;
let schedules: Schedule[] = [];
let stops: RouteStop[] = [];
if (routeId) {
try {
[route, { items: schedules }, { items: stops }] = await Promise.all([
api.route(routeId),
api.schedules({ route_id: routeId }),
api.routeStops(routeId),
]);
} catch {
route = null;
schedules = [];
stops = [];
}
}
const allTimes = schedules.flatMap((s) => s.departure_times);
const next = nextTrip(allTimes);
const provinceSet = new Set(stops.map((s) => s.province_th).filter((x): x is string => !!x));
return (
<main className="page">
<VisitTracker path="/check" />
<div className="container">
<p className="breadcrumb">
<Link href="/">หน้าแรก</Link> / <span>เช็กเวลาเดินรถ</span>
</p>
</div>
<section className="hero hero--short">
<div className="hero__blob one" aria-hidden />
<div className="hero__blob two" aria-hidden />
<div className="hero__blob three" aria-hidden />
<div className="container hero__inner">
<span className="hero__badge">
<Icon name="clock" size={14} className="icon" /> {T("cta.check")}
</span>
<h1>
{T("check.title")}
<br />
<span className="hero__grad">{route?.name_th ?? (lang === "en" ? "Select a route below" : "เลือกสายรถด้านล่าง")}</span>
</h1>
<p className="hero__lead">{T("check.lead")}</p>
{allRoutes.length > 0 && (
<div className="check-selector">
<RouteSelect
routes={allRoutes.map((r) => ({ route_id: r.route_id, name_th: r.name_th }))}
current={routeId ?? ""}
to={(id) => `/check?route=${encodeURIComponent(id)}`}
/>
</div>
)}
</div>
</section>
<div className="container">
{/* สรุปเส้นทาง */}
<div className="check-stats">
<div className="check-stat"><b>{stops.length}</b><span>{T("check.kpiStops")}</span></div>
<div className="check-stat"><b>{provinceSet.size}</b><span>{T("check.kpiProvince")}</span></div>
<div className="check-stat"><b>{allTimes.length}</b><span>{T("check.kpiTrips")}</span></div>
<div className="check-stat"><b>{next ?? "—"}</b><span>{next ? T("check.kpiNext") : (lang === "en" ? "No trips today" : "ไม่มีรอบวันนี้")}</span></div>
</div>
{/* ตารางเวลาทุกจุดจอด */}
<section className="check-schedule">
<h2 className="section-title">
{T("check.scheduleAll")} {route ? `— ${lang === "en" ? "Route" : "สาย"} ${route.route_id}` : ""}
</h2>
{schedules.length === 0 ? (
<p className="muted">ยังไม่มีข้อมูลตารางเวลาสำหรับสายนี้</p>
) : (
<div className="schedule-list">
{schedules.map((s, i) => {
const tone = TONES[i % TONES.length];
return (
<article key={s.id} className={`schedule-card schedule-card--${tone}`}>
<span className="schedule-card__rail" aria-hidden />
<div className="schedule-card__head">
<div className={`schedule-card__route ${tone}`}>
<span>{s.station_name_th}</span>
<small>จุดต้นทาง</small>
</div>
<div className="schedule-card__meta">
<strong>{s.direction_note || "ทุกทิศทาง"}</strong>
{s.schedule_note && <span>{s.schedule_note}</span>}
</div>
</div>
{s.departure_times.length === 0 ? (
<span className="schedule-card__empty">— ยังไม่มีรอบ —</span>
) : (
<div className="schedule-card__times">
{s.departure_times.map((t, j) => (
<span key={`${s.id}-${j}`} className="schedule-card__time">
<Icon name="clock" size={13} className="icon" /> {t}
</span>
))}
</div>
)}
</article>
);
})}
</div>
)}
</section>
</div>
</main>
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
);
}
+82
View File
@@ -1,7 +1,89 @@
<<<<<<< HEAD
import CreditsView from "@/components/views/CreditsView";
export const metadata = { title: "เครดิต" };
export default function Page() {
return <CreditsView />;
=======
import { HERO_MAP } from "@/lib/images";
export default function CreditsPage() {
return (
<>
<section className="hero hero--short">
<img className="hero__map" src={HERO_MAP} alt="" aria-hidden="true" />
<div className="hero__blob one" aria-hidden />
<div className="hero__blob two" aria-hidden />
<div className="hero__blob three" aria-hidden />
<div className="container hero__inner">
<span className="hero__badge">เครดิต</span>
<h1>
เครดิตและแหล่งที่มา
<br />
<span className="hero__grad">ขอบคุณทุกทรัพยากร</span>
</h1>
<p className="hero__lead">รายการทรัพยากรทั้งหมดที่ใช้ในเว็บนี้ พร้อมใบอนุญาตตามข้อกำหนดของเจ้าของแต่ละราย</p>
</div>
</section>
<main className="main">
<div className="container credit-wrap">
<section className="credit-section">
<h2>ไอคอน — Lucide</h2>
<p className="src">
แหล่งที่มา: <a href="https://lucide.dev" rel="noopener">lucide.dev</a> · ใบอนุญาต:{" "}
<a href="https://github.com/lucide-icons/lucide/blob/main/LICENSE" rel="noopener">MIT License</a>
</p>
<ul>
<li>ไอคอนที่ใช้ทั้งหมด 15 รายการ: alarm-clock, arrow-right, bus, bus-front, check, clock, globe, hourglass, map, map-pin, message-circle, phone, refresh-cw, search, triangle-alert</li>
</ul>
<div className="license">
<strong>MIT License (สรุป):</strong> อนุญาตให้ใช้ คัดลอก แก้ไข ผสาน เผยแพร่ แจกจ่าย ขาย และ/หรือให้สิทธิ์ใช้งานซอฟต์แวร์นี้ โดยมีเงื่อนไขให้ข้อความแสดงลิขสิทธิ์และข้อความอนุญาตข้างต้นปรากฏอยู่ในสำเนาทั้งหมด ซอฟต์แวร์นี้ให้บริการ "ตามสภาพ" โดยไม่มีการรับประกันใด ๆ
</div>
</section>
<section className="credit-section">
<h2>ฟอนต์ — Google Fonts</h2>
<p className="src">
แหล่งที่มา: <a href="https://fonts.google.com" rel="noopener">fonts.google.com</a> · ใบอนุญาต:{" "}
<a href="https://openfontlicense.org" rel="noopener">SIL Open Font License 1.1</a>
</p>
<ul>
<li><strong>K2D</strong> — ฟอนต์หลักของเว็บ (เนื้อหา + หัวเรื่อง)</li>
<li><strong>Noto Sans Thai</strong> — ตัวสำรองเนื้อหา</li>
<li><strong>Prompt</strong> — ตัวสำรองหัวเรื่อง/ตัวหนา</li>
<li><strong>IBM Plex Mono</strong> — เวลา · เลขสาย · ตัวเลข</li>
</ul>
</section>
<section className="credit-section">
<h2>แผนที่</h2>
<p className="src">
ใบอนุญาต: Leaflet <a href="https://github.com/Leaflet/Leaflet/blob/main/LICENSE" rel="noopener">BSD-2-Clause</a> · ชุดแผนที่:{" "}
<a href="https://www.openstreetmap.org/copyright" rel="noopener">OpenStreetMap © ผู้มีส่วนร่วม (ODbL)</a>
</p>
<ul>
<li>Leaflet — ไลบรารีแผนที่แบบ open-source</li>
<li>OpenStreetMap — ภาพ tiles และข้อมูลแผนที่</li>
<li>เส้นทางเดินรถ จุดจอด และหมุดสถานี วาดจากข้อมูล GIS ของทีม (GeoJSON)</li>
</ul>
</section>
<section className="credit-section">
<h2>ขอขอบคุณภาพรถประจำทาง</h2>
<p className="src">ภาพรถโดยสารที่แสดงในหน้ารายละเอียดสาย มาจากแหล่งข้อมูลสาธารณะด้านล่างนี้</p>
<ul>
<li><strong>สาย 2194</strong> หัวเวียง-อยุธยา — จาก <a href="http://www.bangkokbusclub.com/cms/showthread.php?t=4968" rel="noopener">bangkokbusclub.com</a></li>
<li><strong>สาย 8</strong> กรุงเทพ-สรรคบุรี-ชัยนาท — จากกลุ่ม Facebook (web.facebook.com)</li>
<li><strong>สาย 954</strong> กรุงเทพ-ท่าช้าง — จาก <a href="https://gogo.town/route/bangkok-rangsit-angthong-thachang/" rel="noopener">gogo.town</a></li>
<li><strong>รถไฟฟ้าสายสีแดง</strong> กรุงเทพ-ชุมทางบ้านภาชี — จาก <a href="https://thelist.group" rel="noopener">thelist.group</a></li>
</ul>
<div className="license">และสายอื่น ๆ ที่ไม่ได้ระบุ ขอขอบคุณมา ณ ที่นี้</div>
</section>
</div>
</main>
</>
);
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

+42 -2
View File
@@ -1,3 +1,4 @@
<<<<<<< HEAD
import type { Metadata } from "next";
import IconSprite from "@/components/IconSprite";
import SiteBoot from "@/components/SiteBoot";
@@ -21,15 +22,45 @@ export const metadata: Metadata = {
"ศูนย์รวมข้อมูลตารางเดินรถ จุดจอด และเส้นทางในจังหวัดอ่างทองและจังหวัดใกล้เคียง",
manifest: "/ui-manifest.json",
icons: { icon: "/image/icons/minibus-512x512.png" },
=======
import "./globals.css";
import type { Metadata, Viewport } from "next";
import { headers } from "next/headers";
import { Header } from "@/components/Header";
import { Footer } from "@/components/Footer";
import { LangProvider } from "@/components/LangProvider";
import { langFromCookie } from "@/lib/i18n";
export const metadata: Metadata = {
title: "Atroute — สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง",
description:
"ค้นหาเส้นทาง ตารางเดินรถ และจุดจอดในจังหวัดอ่างทองและจังหวัดใกล้เคียง",
icons: {
icon: [{ url: "/images/icons/minibus-512x512.png", sizes: "512x512", type: "image/png" }],
apple: [{ url: "/images/icons/minibus-192x192.png", sizes: "192x192", type: "image/png" }],
},
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
export const viewport: Viewport = {
themeColor: "#7a4cc0",
};
export default async function RootLayout({ children }: { children: React.ReactNode }) {
const h = await headers();
const lang = langFromCookie(h.get("cookie"));
return (
<html lang="th">
<html lang={lang}>
<head>
<<<<<<< HEAD
{/* ฟอนต์ K2D ฝังในโปรเจกต์ + Leaflet CSS (ไฟล์ static ใน public) */}
<link rel="stylesheet" href="/vendor/fonts/k2d.css" />
<link rel="stylesheet" href="/vendor/leaflet/leaflet.css" />
=======
{/* K2D (offline, local woff2 — ตรงกับ design) + Noto/Prompt fallback (CDN) */}
<link rel="stylesheet" href="/fonts/k2d.css" />
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&family=Prompt:wght@400;500;600;700&display=swap"
@@ -40,12 +71,21 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<link rel="apple-touch-icon" href="/image/icons/minibus-192x192.png" />
<script src="/vendor/leaflet/leaflet.js" defer />
</head>
<<<<<<< HEAD
<body className="main-theme-page">
<IconSprite />
<SiteHeader />
<div id="view">{children}</div>
<SiteFooter />
<SiteBoot />
=======
<body>
<LangProvider initial={lang}>
<Header />
{children}
<Footer />
</LangProvider>
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
</body>
</html>
);
+59
View File
@@ -1,3 +1,4 @@
<<<<<<< HEAD
import HomeView from "@/components/views/HomeView";
import PageRuntime from "@/components/PageRuntime";
@@ -19,6 +20,64 @@ export default async function Page({
<>
<HomeView />
<PageRuntime page="home" query={query} />
=======
import { api, type RouteListItem, type Schedule } from "@/lib/api";
import { VisitTracker } from "@/lib/visit-tracker";
import HomeClient from "@/components/HomeClient";
export default async function HomePage({
searchParams,
}: {
searchParams: Promise<{ p?: string; s?: string }>;
}) {
const sp = await searchParams;
const [groupsRes, routesRes, schedRes, provRes, stopsRes] = await Promise.allSettled([
api.routeGroups(),
api.routes(),
api.schedules({}),
api.provinces(),
api.stops(),
]);
const groups = groupsRes.status === "fulfilled" ? groupsRes.value.items : [];
const routes: RouteListItem[] = routesRes.status === "fulfilled" ? routesRes.value.items : [];
const schedules: Schedule[] = schedRes.status === "fulfilled" ? schedRes.value.items : [];
const provinces = provRes.status === "fulfilled" ? provRes.value.items : [];
const stops = stopsRes.status === "fulfilled" ? stopsRes.value.items : [];
// route_id -> all departure times
const timesByRoute: Record<string, string[]> = {};
for (const s of schedules) {
(timesByRoute[s.route_id] ??= []).push(...s.departure_times);
}
// route_id -> station ids (for station-level filtering)
const routeStations: Record<string, number[]> = {};
await Promise.all(
routes.map(async (r) => {
const { items } = await api.routeStops(r.route_id).catch(() => ({ items: [] }));
routeStations[r.route_id] = items.map((x) => x.station_id);
}),
);
const initialProvinceId = sp.p ? Number(sp.p) || undefined : undefined;
const initialStationCode = sp.s ?? undefined;
return (
<>
<VisitTracker path="/" />
<HomeClient
groups={groups}
routes={routes}
timesByRoute={timesByRoute}
provinces={provinces}
stops={stops}
routeStations={routeStations}
initialProvinceId={initialProvinceId}
initialStationCode={initialStationCode}
/>
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
</>
);
}
+343
View File
@@ -1,8 +1,33 @@
<<<<<<< HEAD
import RouteView from "@/components/views/RouteView";
import PageRuntime from "@/components/PageRuntime";
=======
import Link from "next/link";
import { notFound } from "next/navigation";
import {
api,
isApiNotFoundError,
type RouteDetail,
type RouteStop,
type StopListItem,
type Schedule,
type RouteListItem,
} from "@/lib/api";
import LazyMapView from "@/components/LazyMapView";
import { RouteSelect } from "@/components/RouteSelect";
import { VisitTracker } from "@/lib/visit-tracker";
import { routePhoto } from "@/lib/images";
import { routePath } from "@/lib/geojson";
import { captionFor } from "@/lib/captions";
import { kmFor } from "@/lib/stop-km";
import { Icon } from "@/components/Icons";
import { headers } from "next/headers";
import { t, langFromCookie } from "@/lib/i18n";
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
export const metadata = { title: "รายละเอียดสายรถ" };
<<<<<<< HEAD
export default async function Page({ params }: { params: Promise<{ routeId: string }> }) {
const { routeId } = await params;
return (
@@ -10,5 +35,323 @@ export default async function Page({ params }: { params: Promise<{ routeId: stri
<RouteView />
<PageRuntime page="route" params={{ routeId: decodeURIComponent(routeId) }} />
</>
=======
type RouteDetailPageProps = {
params: Promise<{ routeId: string }>;
};
/** เที่ยวถัดไป = รอบแรกที่ยังไม่ผ่านของสายนี้ */
function nextTrip(schedules: Schedule[]): string | null {
const all = schedules.flatMap((s) => s.departure_times);
if (all.length === 0) return null;
const now = new Date();
const cur = now.getHours() * 60 + now.getMinutes();
for (const t of [...all].sort()) {
const [h, m] = t.split(":").map(Number);
if (h * 60 + m >= cur) return t;
}
return null;
}
export default async function RouteDetailPage({ params }: RouteDetailPageProps) {
const { routeId } = await params;
const h = await headers();
const lang = langFromCookie(h.get("cookie"));
const T = (k: string, v?: Record<string, string | number>) => t(k, lang, v);
let route: RouteDetail | null = null;
let stops: RouteStop[] = [];
let schedules: Schedule[] = [];
let allStops: StopListItem[] = [];
let allRoutes: RouteListItem[] = [];
try {
[route, { items: stops }, { items: schedules }, { items: allStops }, { items: allRoutes }] =
await Promise.all([
api.route(routeId),
api.routeStops(routeId),
api.schedules({ route_id: routeId }),
api.stops(),
api.routes(),
]);
} catch (error) {
if (isApiNotFoundError(error)) {
notFound();
}
route = null;
stops = [];
schedules = [];
allStops = [];
allRoutes = [];
}
if (!route) {
return (
<main className="page">
<VisitTracker path={`/routes/${routeId}`} />
<section className="hero">
<h1>ไม่สามารถโหลดข้อมูลเส้นทางได้</h1>
<p className="muted">ระบบยังเปิดอยู่ แต่ backend ตอบกลับไม่ได้ในตอนนี้</p>
<Link href="/routes">กลับไปหน้าสายรถ</Link>
</section>
</main>
);
}
const coordById = new Map<number, { lat: number; lng: number }>();
for (const s of allStops) {
if (s.lat != null && s.lng != null) coordById.set(s.id, { lat: s.lat, lng: s.lng });
}
const mapPoints = stops
.map((s) => {
const c = coordById.get(s.station_id);
if (!c) return null;
return {
id: s.station_id,
lat: c.lat,
lng: c.lng,
label: s.name_th,
code: s.code,
sequence: s.stop_sequence,
};
})
.filter((x): x is NonNullable<typeof x> => x !== null);
const stopPath: [number, number][] = mapPoints.map((p) => [p.lat, p.lng]);
const path: [number, number][] = routePath(route.route_id) ?? stopPath;
const provinceSet = new Set(stops.map((s) => s.province_th).filter((x): x is string => !!x));
const photo = routePhoto(route.route_id, "car") ?? routePhoto(route.route_id, "hero");
const cap = captionFor(route.route_id);
const next = nextTrip(schedules);
// ติดต่อผู้ประกอบการ (จาก design routes.json)
const contact = (route.contact ?? {}) as {
phones?: { label?: string; number: string }[];
web_url?: string;
};
const phones = Array.isArray(contact.phones) ? contact.phones : [];
const lineUrl = typeof contact.web_url === "string" ? contact.web_url : "";
const qr = cap?.qr ?? "";
return (
<main className="page">
<VisitTracker path={`/routes/${routeId}`} />
<div className="container">
<p className="breadcrumb">
<Link href="/">หน้าแรก</Link> / <Link href="/routes">รายละเอียดสายรถ</Link> /{" "}
<span>{route.route_id}</span>
</p>
</div>
<section className="page-hero page-hero--alt route-hero">
<span className="page-hero__blob page-hero__blob--a" aria-hidden />
<span className="page-hero__blob page-hero__blob--b" aria-hidden />
<span className="page-hero__blob page-hero__blob--c" aria-hidden />
<div className="route-hero__top">
<div className="route-hero__badge">{route.route_id}</div>
<div className="route-hero__title-wrap">
<div className="route-hero__chips">
<span className="chip-soft chip-soft--purple">{route.route_group_label_th || route.route_group_code}</span>
<span className="chip-soft chip-soft--sky">{route.vehicle_type}</span>
{provinceSet.size > 0 && (
<span className="chip-soft chip-soft--mint">{provinceSet.size} จังหวัด</span>
)}
</div>
<h1 className="page-hero__title">
<span className="page-hero__title-grad">{route.name_th}</span>
</h1>
<p className="page-hero__subtitle">
เส้นทางหมายเลข {route.route_id} · ผ่าน {stops.length} จุดจอด · {schedules.length} รอบเวลา
</p>
</div>
</div>
<div className="page-hero__stats">
<span className="page-hero__stat"><b>{stops.length}</b> จุดจอด</span>
<span className="page-hero__stat"><b>{schedules.length}</b> รอบเวลา</span>
<span className="page-hero__stat"><b>{provinceSet.size}</b> จังหวัด</span>
<span className="page-hero__stat">
<b>{next ?? "—"}</b> {next ? "รอบถัดไป" : "ไม่มีรอบวันนี้"}
</span>
</div>
<div className="route-hero__actions">
<Link href="/routes" className="route-hero__back">← กลับสายทั้งหมด</Link>
</div>
</section>
<div className="container">
{/* เลือกสายรถ (จาก design: route-select) */}
<div className="toolbar">
<RouteSelect
routes={allRoutes.map((r) => ({ route_id: r.route_id, name_th: r.name_th }))}
current={route.route_id}
/>
</div>
{/* รถประจำสาย + ติดต่อผู้ประกอบการ (การ์ดเดียว) */}
{(photo || cap || qr || phones.length > 0 || lineUrl) && (
<section className="vehicle-card" aria-label="รถประจำสายและติดต่อผู้ประกอบการ">
{photo && (
<img className="vehicle-card__img" src={photo} alt={`รถของสาย ${route.route_id}`} />
)}
<div className="vehicle-card__meta">
<p className="vehicle-card__label">{T("route.vehicle")}</p>
{cap?.vehicle_title && <h2>{cap.vehicle_title}</h2>}
{cap?.vehicle_desc && <p>{cap.vehicle_desc}</p>}
{!cap?.vehicle_title && !cap?.vehicle_desc && (
<p className="muted">สาย {route.route_id} · {route.vehicle_type}</p>
)}
</div>
<div className="vehicle-card__contact">
{qr && (
<a className="contact-item contact-item--qr" href={lineUrl || "#"} target="_blank" rel="noopener">
<img className="qr-img" src={qr} alt={`QR ติดตามสาย ${route.route_id}`} />
<span className="txt"><strong>สแกนติดตาม</strong><span>LINE / กลุ่มข่าวสาย</span></span>
</a>
)}
{phones.map((p, i) => (
<a key={i} className="contact-item" href={`tel:${p.number.replace(/\s/g, "")}`}>
<span className="ic-wrap"><Icon name="phone" size={20} /></span>
<span className="txt"><strong>{p.label || "โทร"}</strong><span>{p.number}</span></span>
</a>
))}
{lineUrl && (
<a className="contact-item" href={lineUrl} target="_blank" rel="noopener">
<span className="ic-wrap tone-green"><Icon name="message-circle" size={20} /></span>
<span className="txt"><strong>LINE</strong><span>ติดตามข่าวสารสาย</span></span>
</a>
)}
</div>
</section>
)}
{/* แผนที่เส้นทาง + จุดจอดตามเส้นทาง */}
<section className="route-map-section">
<div className="route-map-section__head">
<h2 className="section-title">{T("route.mapTitle")}</h2>
<span className="route-map-section__legend">
<span><i className="dot dot--start" /> ต้นทาง</span>
<span><i className="dot dot--mid" /> จุดผ่าน</span>
<span><i className="dot dot--end" /> ปลายทาง</span>
</span>
</div>
{mapPoints.length >= 1 ? (
<div className="map-wrap map-wrap--soft route-map">
<LazyMapView points={mapPoints} path={path} />
</div>
) : (
<p className="muted route-map-empty">— ยังไม่มีพิกัดสำหรับจุดจอดของสายนี้ —</p>
)}
{stops.length > 0 && (
<div className="km-wrap">
<h3 className="km-wrap__title">{T("map.alongRoute")}</h3>
<ol className="km-list">
{stops.map((s) => {
const km = kmFor(route.route_id, s.station_id);
return (
<li key={s.station_id}>
<span className="km-list__num">{km != null ? km.toFixed(1) : s.stop_sequence}</span>
<span className="km-list__name">{s.name_th}</span>
<span className="km-list__loc">{km != null ? "กม." : s.city_th ?? ""}</span>
</li>
);
})}
</ol>
</div>
)}
</section>
{/* จุดจอดตามลำดับ (รายละเอียด) */}
<section>
<h2 className="section-title">{T("route.stopsTitle")} ({stops.length})</h2>
<ol className="stop-timeline">
{stops.map((s, i) => {
const tone = TONES[i % TONES.length];
const isStart = i === 0;
const isEnd = i === stops.length - 1;
const hasCoord = coordById.has(s.station_id);
const stopHref = s.code ? `/stops/${encodeURIComponent(s.code)}` : null;
return (
<li key={s.station_id} className={`stop-node stop-node--${tone}`}>
<span className="stop-node__line" aria-hidden />
<span className={`stop-node__bullet ${isStart ? "is-start" : isEnd ? "is-end" : ""}`}>
{s.stop_sequence}
</span>
<div className="stop-node__body">
<div className="stop-node__head">
{stopHref ? (
<Link href={stopHref} className="stop-node__title">{s.name_th}</Link>
) : (
<span className="stop-node__title">{s.name_th}</span>
)}
{isStart && <span className="chip-soft chip-soft--mint">ต้นทาง</span>}
{isEnd && <span className="chip-soft chip-soft--pink">ปลายทาง</span>}
</div>
<div className="stop-node__meta">
<span className="chip-soft chip-soft--sky">{s.station_type}</span>
{(s.city_th || s.province_th) && (
<span className="stop-node__loc">
<Icon name="map-pin" size={13} className="icon" /> {[s.city_th, s.province_th].filter(Boolean).join(" · ")}
</span>
)}
{!hasCoord && <span className="stop-node__warn">ไม่มีพิกัดบนแผนที่</span>}
</div>
</div>
{stopHref ? (
<Link href={stopHref} className="stop-node__arrow" aria-label="ดูจุดจอด">→</Link>
) : (
<span className="stop-node__arrow" aria-hidden>→</span>
)}
</li>
);
})}
</ol>
</section>
{/* ตารางเวลา */}
<section>
<h2 className="section-title">{T("route.scheduleTitle")} ({schedules.length})</h2>
{schedules.length === 0 ? (
<p className="muted">ยังไม่มีข้อมูลตารางเวลา</p>
) : (
<div className="schedule-list">
{schedules.map((s, i) => {
const tone = TONES[i % TONES.length];
return (
<article key={s.id} className={`schedule-card schedule-card--${tone}`}>
<span className="schedule-card__rail" aria-hidden />
<div className="schedule-card__head">
<div className={`schedule-card__route ${tone}`}>
<span>{s.station_name_th}</span>
<small>จุดต้นทาง</small>
</div>
<div className="schedule-card__meta">
<strong>{s.direction_note || "ทุกทิศทาง"}</strong>
{s.schedule_note && <span>{s.schedule_note}</span>}
</div>
</div>
{s.departure_times.length === 0 ? (
<span className="schedule-card__empty">— ยังไม่มีรอบ —</span>
) : (
<div className="schedule-card__times">
{s.departure_times.map((t, j) => (
<span key={`${s.id}-${j}`} className="schedule-card__time"><Icon name="clock" size={13} className="icon" /> {t}</span>
))}
</div>
)}
</article>
);
})}
</div>
)}
</section>
</div>
</main>
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
);
}
+75
View File
@@ -1,13 +1,88 @@
<<<<<<< HEAD
import RouteView from "@/components/views/RouteView";
import PageRuntime from "@/components/PageRuntime";
=======
import Link from "next/link";
import { api } from "@/lib/api";
import { VisitTracker } from "@/lib/visit-tracker";
import { Icon } from "@/components/Icons";
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
export const metadata = { title: "รายละเอียดสายรถ" };
export default function Page() {
return (
<<<<<<< HEAD
<>
<RouteView />
<PageRuntime page="route" />
</>
=======
<main className="page">
<VisitTracker path="/routes" />
<section className="page-hero page-hero--alt">
<div className="page-hero__blob page-hero__blob--a" />
<div className="page-hero__blob page-hero__blob--b" />
<div className="page-hero__blob page-hero__blob--c" />
<div className="page-hero__inner">
<span className="page-hero__badge"><Icon name="bus" size={13} className="icon" /> ROUTE NETWORK</span>
<h1 className="page-hero__title">
เส้นทางเดินรถ<span className="page-hero__title-grad">ทั้งหมด</span>
</h1>
<p className="page-hero__subtitle">
{group ? `กรองหมวด: ${group}` : "ครอบคลุมทุกหมวด"}
{province ? ` · จังหวัด #${province}` : ""}
</p>
<div className="page-hero__stats">
<span className="page-hero__stat"><b>{items.length}</b> เส้นทาง</span>
<span className="page-hero__stat"><b>{Object.keys(groupCounts).length}</b> หมวด</span>
</div>
</div>
</section>
<div className="toolbar">
<div className="toolbar__search">
<Icon name="search" size={16} className="icon" />
<input placeholder="ค้นหาเลขสาย หรือชื่อเส้นทาง…" disabled />
</div>
<div className="toolbar__chips">
{Object.entries(groupCounts).map(([code, { label, n }]) => (
<span key={code} className={`chip-soft chip-soft--${GROUP_TONE[code] ?? "sky"}`}>
{label} · {n}
</span>
))}
</div>
</div>
<div className="tile-grid">
{items.map((r, i) => {
const tone = GROUP_TONE[r.route_group_code] ?? TONES[i % TONES.length];
return (
<Link
key={r.route_id}
href={`/routes/${encodeURIComponent(r.route_id)}`}
className={`tile tile--${tone}`}
>
<div className={`tile__badge tile__badge--${tone} tile__badge--num`}>
<span>{r.route_id}</span>
</div>
<div className="tile__body">
<p className="tile__title">{r.name_th}</p>
<p className="tile__meta">{r.route_group_label_th || r.route_group_code}</p>
<div className="tile__chips">
<span className={`chip-soft chip-soft--${tone}`}>
{r.route_group_label_th || r.route_group_code}
</span>
<span className="chip-soft chip-soft--mint"><Icon name="bus" size={13} className="icon" /> {r.vehicle_type}</span>
</div>
</div>
<span className="tile__arrow" aria-hidden>→</span>
</Link>
);
})}
</div>
</main>
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
);
}
+152
View File
@@ -1,3 +1,4 @@
<<<<<<< HEAD
import StopsView from "@/components/views/StopsView";
import PageRuntime from "@/components/PageRuntime";
@@ -9,5 +10,156 @@ export default function Page() {
<StopsView />
<PageRuntime page="stops" />
</>
=======
import Link from "next/link";
import { api } from "@/lib/api";
import LazyMapView from "@/components/LazyMapView";
import { VisitTracker } from "@/lib/visit-tracker";
import { Icon, type IconName } from "@/components/Icons";
import { StopSearch } from "@/components/StopSearch";
const TONES = ["sky", "purple", "pink", "mint", "amber"] as const;
const TYPE_TONE: Record<string, (typeof TONES)[number]> = {
main_terminal: "purple",
local_stop: "sky",
market: "pink",
private_stop: "amber",
other: "mint",
};
const TYPE_ICON: Record<string, IconName> = {
main_terminal: "bus-front",
local_stop: "map-pin",
market: "store",
private_stop: "bus",
other: "map-pin",
};
const TYPE_LABEL: Record<string, string> = {
main_terminal: "สถานีขนส่ง",
local_stop: "ป้ายหลัก",
market: "ตลาด/ชุมชน",
private_stop: "จุดรับส่ง",
other: "อื่น ๆ",
};
export default async function StopsPage({
searchParams,
}: {
searchParams: Promise<{ q?: string }>;
}) {
const sp = await searchParams;
const q = sp.q ?? "";
const { items } = await api.stops(q ? { q } : {}).catch(() => ({ items: [] }));
const points = items
.filter((s) => s.lat != null && s.lng != null)
.map((s) => ({ id: s.id, lat: s.lat as number, lng: s.lng as number, label: s.name_th, code: s.code }));
const typeCounts = items.reduce<Record<string, number>>((acc, s) => {
acc[s.station_type] = (acc[s.station_type] ?? 0) + 1;
return acc;
}, {});
return (
<main className="page">
<VisitTracker path="/stops" />
<div className="container">
<p className="breadcrumb">
<Link href="/">หน้าแรก</Link> / <span>ป้ายหยุดรถ</span>
</p>
</div>
<section className="page-hero">
<div className="page-hero__blob page-hero__blob--a" />
<div className="page-hero__blob page-hero__blob--b" />
<div className="page-hero__blob page-hero__blob--c" />
<div className="page-hero__inner">
<span className="page-hero__badge"><Icon name="map-pin" size={13} className="icon" /> STOP DIRECTORY</span>
<h1 className="page-hero__title">
จุดจอด<span className="page-hero__title-grad">ทั่วประเทศ</span>
</h1>
<p className="page-hero__subtitle">
ค้นหาป้าย / สถานีขนส่ง พร้อมแผนที่และเส้นทางที่ผ่าน
</p>
<div className="page-hero__stats">
<span className="page-hero__stat"><b>{items.length}</b> จุดจอด</span>
<span className="page-hero__stat"><b>{points.length}</b> มีพิกัด</span>
<span className="page-hero__stat"><b>{Object.keys(typeCounts).length}</b> ประเภท</span>
</div>
</div>
</section>
<div className="container">
{points.length > 0 && !q && (
<div className="map-wrap map-wrap--soft">
<LazyMapView points={points} />
</div>
)}
{/* ค้นหาป้ายทางหลวง: รหัส 5 หลัก + ชื่อสถานที่ + ป้ายใกล้ฉัน */}
<StopSearch />
<div className="toolbar">
<form className="toolbar__search" action="/stops" method="get" role="search">
<Icon name="search" size={16} className="icon" />
<input name="q" placeholder="ค้นหาชื่อป้าย หรือจังหวัด…" defaultValue={q} />
{q && (
<Link className="toolbar__clear" href="/stops" aria-label="ล้างคำค้นหา">✕</Link>
)}
<button type="submit" className="toolbar__submit">ค้นหา</button>
</form>
<div className="toolbar__chips">
{Object.entries(typeCounts).map(([t, n]) => (
<span key={t} className={`chip-soft chip-soft--${TYPE_TONE[t] ?? "sky"}`}>
<Icon name={TYPE_ICON[t] ?? "map-pin"} size={13} className="icon" /> {TYPE_LABEL[t] ?? t} · {n}
</span>
))}
</div>
</div>
{items.length === 0 ? (
<p className="muted">ไม่พบป้ายที่ตรงกับ “{q}”</p>
) : (
<div className="tile-grid">
{items.map((s, i) => {
const tone = TYPE_TONE[s.station_type] ?? TONES[i % TONES.length];
const icon = TYPE_ICON[s.station_type] ?? "map-pin";
const place = [s.city_th, s.province_th].filter(Boolean).join(" · ");
const stopHref = s.code ? `/stops/${encodeURIComponent(s.code)}` : null;
const body = (
<>
<div className={`tile__badge tile__badge--${tone}`}>
<Icon name={icon} size={26} />
</div>
<div className="tile__body">
<p className="tile__title">{s.name_th}</p>
<p className="tile__meta">{place || "—"}</p>
<div className="tile__chips">
<span className={`chip-soft chip-soft--${tone}`}>
{TYPE_LABEL[s.station_type] ?? s.station_type}
</span>
{s.lat != null && s.lng != null && (
<span className="chip-soft chip-soft--mint"><Icon name="map-pin" size={13} className="icon" /> บนแผนที่</span>
)}
</div>
</div>
<span className="tile__arrow" aria-hidden>→</span>
</>
);
return stopHref ? (
<Link key={s.id} href={stopHref} className={`tile tile--${tone}`}>
{body}
</Link>
) : (
<div key={s.id} className={`tile tile--${tone} tile--disabled`}>
{body}
</div>
);
})}
</div>
)}
</div>
</main>
>>>>>>> 1526c5b6d06989ba2d865f6df4d339d680dbd3f8
);
}
+323
View File
@@ -0,0 +1,323 @@
"use client";
import Link from "next/link";
import { useMemo, useState } from "react";
import { Icon } from "@/components/Icons";
import { HERO_MAP, PARTNERS } from "@/lib/images";
import { useLang } from "@/components/LangProvider";
import type { RouteGroup, RouteListItem, Province, StopListItem } from "@/lib/api";
const ZONE_TONES: Record<string, "sky" | "purple" | "pink" | "mint"> = {
bangkok: "sky",
interprovincial: "purple",
in_province: "pink",
municipal: "mint",
};
const ZONE_TAG_KEY: Record<string, string> = {
bangkok: "zone.bangkok",
interprovincial: "zone.interprov",
in_province: "zone.inprov",
municipal: "zone.municipal",
};
const ZONE_DESC_KEY: Record<string, string> = {
bangkok: "zone.bangkokDesc",
interprovincial: "zone.interprovDesc",
in_province: "zone.inprovDesc",
municipal: "zone.municipalDesc",
};
const ZONE_ORDER = ["municipal", "bangkok", "interprovincial", "in_province"];
const LEGEND_KEYS = [
{ tone: "sky", key: "legend.bangkok" },
{ tone: "purple", key: "legend.interprov" },
{ tone: "pink", key: "legend.inprov" },
{ tone: "mint", key: "legend.municipal" },
{ tone: "gray", key: "legend.empty" },
];
const CHIP_CYCLE = ["purple", "sky", "pink", "mint"] as const;
const DEFAULT_PROVINCE_NAME = "อ่างทอง";
function nextTrip(times: string[]): string | null {
const now = new Date();
const cur = now.getHours() * 60 + now.getMinutes();
for (const t of [...times].sort()) {
const [h, m] = t.split(":").map(Number);
if (h * 60 + m >= cur) return t;
}
return null;
}
type Props = {
groups: RouteGroup[];
routes: RouteListItem[];
timesByRoute: Record<string, string[]>;
provinces: Province[];
stops: StopListItem[];
routeStations: Record<string, number[]>;
initialProvinceId?: number;
initialStationCode?: string;
};
export default function HomeClient({
groups,
routes,
timesByRoute,
provinces,
stops,
routeStations,
initialProvinceId,
initialStationCode,
}: Props) {
const { t } = useLang();
const defaultProvince =
provinces.find((p) => p.name_th === DEFAULT_PROVINCE_NAME) ?? provinces[0];
const [provinceId, setProvinceId] = useState<number | undefined>(
initialProvinceId ?? defaultProvince?.id,
);
const [stationCode, setStationCode] = useState<string>(initialStationCode ?? "");
const provinceName = useMemo(
() => provinces.find((p) => p.id === provinceId)?.name_th ?? "",
[provinces, provinceId],
);
const stationsInProvince = useMemo(
() =>
stops.filter(
(s) => (s.province_th || DEFAULT_PROVINCE_NAME) === (provinceName || DEFAULT_PROVINCE_NAME),
),
[stops, provinceName],
);
const selectedRoutes = useMemo(() => {
if (stationCode) {
const sid = stops.find((s) => s.code === stationCode)?.id;
if (sid == null) return routes;
return routes.filter((r) => (routeStations[r.route_id] ?? []).includes(sid));
}
if (provinceId != null) {
return routes.filter((r) => (r.province_ids ?? []).includes(provinceId));
}
return routes;
}, [routes, stops, routeStations, provinceId, stationCode]);
const byCode = useMemo(() => {
const m = new Map<string, RouteListItem[]>();
for (const r of selectedRoutes) {
const l = m.get(r.route_group_code) ?? [];
l.push(r);
m.set(r.route_group_code, l);
}
return m;
}, [selectedRoutes]);
const orderedGroups = useMemo(
() =>
[...groups].sort((a, b) => {
const ai = ZONE_ORDER.indexOf(a.code);
const bi = ZONE_ORDER.indexOf(b.code);
return (ai === -1 ? 99 : ai) - (bi === -1 ? 99 : bi);
}),
[groups],
);
const marqueePartners = useMemo(() => [...PARTNERS, ...PARTNERS], []);
const share = async () => {
const params = new URLSearchParams();
if (stationCode) params.set("s", stationCode);
else if (provinceId != null) params.set("p", String(provinceId));
const url = `${location.origin}/${params.size ? "?" + params.toString() : ""}`;
try {
await navigator.clipboard.writeText(url);
alert(`${t("share.label")}: ${url}`);
} catch {
prompt(t("share.label"), url);
}
};
const heroProvince = t("home.provincePrefix")
? `${t("home.provincePrefix")}${provinceName}`
: provinceName;
return (
<>
<section className="hero">
<img className="hero__map" src={HERO_MAP} alt="" aria-hidden="true" />
<div className="hero__blob one" aria-hidden />
<div className="hero__blob two" aria-hidden />
<div className="hero__blob three" aria-hidden />
<div className="container hero__inner">
<span className="hero__badge">{t("home.welcome")}</span>
<h1>
{t("home.title1")}
<br />
<span className="hero__grad">{heroProvince}</span>
</h1>
<div className="route-selector">
<div className="select-field">
<label htmlFor="province-select">
<Icon name="map-pin" size={15} /> {t("home.chooseProvince")}
</label>
<div className="select-box">
<Icon name="map-pin" size={20} className="select-box__icon" />
<select
id="province-select"
value={provinceId ?? ""}
onChange={(e) => {
setProvinceId(Number(e.target.value) || undefined);
setStationCode("");
}}
>
{provinces.map((p) => (
<option key={p.id} value={p.id}>
{p.name_th}
</option>
))}
</select>
<Icon name="arrow-right" size={18} className="select-box__chevron" />
</div>
</div>
<span className="select-arrow" aria-hidden>
<Icon name="arrow-right" size={18} />
</span>
<div className="select-field">
<label htmlFor="station-select">
<Icon name="bus" size={15} /> {t("home.chooseStation")}
</label>
<div className="select-box">
<Icon name="bus" size={20} className="select-box__icon" />
<select
id="station-select"
value={stationCode}
onChange={(e) => setStationCode(e.target.value)}
>
{stationsInProvince.map((s) => (
<option key={s.id} value={s.code}>
{s.name_th}
</option>
))}
</select>
<Icon name="arrow-right" size={18} className="select-box__chevron" />
</div>
</div>
</div>
<p className="select-hint" aria-live="polite">
{stationsInProvince.length > 0
? t("home.stationCount", { n: stationsInProvince.length })
: t("home.stationEmpty")}
</p>
</div>
</section>
{/* ผู้สนับสนุน & พาร์ทเนอร์ (marquee) */}
<section className="sponsor-section" aria-label={t("footer.sponsors")}>
<div className="sponsor-section__head">
<h4>{t("footer.sponsors")}</h4>
<p>{t("footer.sponsorsLead")}</p>
</div>
<div className="marquee">
<div className="marquee__track">
{marqueePartners.map((p, i) => (
<span key={`${p.id}-${i}`} className="marquee__tile" aria-label={p.label}>
<img src={p.src} alt={p.label} decoding="async" loading="lazy" />
</span>
))}
</div>
</div>
</section>
<main className="main">
<div className="container">
{/* Legend */}
<section className="legend" aria-label={t("legend.title")}>
<h2 className="legend__title">{t("legend.title")}</h2>
<ul className="legend__list">
{LEGEND_KEYS.map((l) => (
<li key={l.tone}>
<span className={`legend__sw legend__sw--${l.tone}`} aria-hidden />
{t(l.key)}
</li>
))}
</ul>
</section>
{orderedGroups.map((g) => {
const items = byCode.get(g.code) ?? [];
const tone = ZONE_TONES[g.code] ?? "purple";
return (
<section key={g.id} className="zone">
<div className="zone__head">
<span className={`zone__tag ${tone}`}>
{t(ZONE_TAG_KEY[g.code] ?? "") || g.label_th}
</span>
<p className="zone__desc">
{t(ZONE_DESC_KEY[g.code] ?? "")} · {items.length}
</p>
</div>
<div className="grid">
{items.length === 0 ? (
<div className="card card--empty">
<div className="card__head gray">
<p className="card__num">N/A</p>
</div>
<div className="card__body">
<p className="card__name">{t("zone.municipalNA")}</p>
<span className="chip gray">
<Icon name="hourglass" size={12} className="icon" /> {t("card.noSchedule")}
</span>
</div>
</div>
) : (
items.map((r, i) => {
const times = timesByRoute[r.route_id] ?? [];
const next = nextTrip(times);
const chipTone = CHIP_CYCLE[i % CHIP_CYCLE.length];
return (
<Link
key={r.route_id}
href={`/routes/${encodeURIComponent(r.route_id)}`}
className="card"
>
<div className={`card__head ${tone}`}>
<p className="card__num">{r.route_id}</p>
</div>
<div className="card__body">
<p className="card__name">{r.name_th}</p>
{next ? (
<span className={`chip ${chipTone}`}>
<Icon name="clock" size={12} className="icon" /> {t("card.nextTrip")} {next}
</span>
) : times.length > 0 ? (
<span className={`chip ${chipTone}`}>
<Icon name="check" size={12} className="icon" /> {t("card.schedule")}
</span>
) : (
<span className="chip gray">
<Icon name="hourglass" size={12} className="icon" /> {t("card.noSchedule")}
</span>
)}
</div>
</Link>
);
})
)}
</div>
</section>
);
})}
{/* ปุ่มแชร์ลิงก์สั้น */}
<div className="share-row">
<button type="button" className="share-btn" onClick={share}>
<Icon name="arrow-right" size={16} /> {t("share.label")}
</button>
</div>
</div>
</main>
</>
);
}
+142
View File
@@ -0,0 +1,142 @@
/**
* Lucide (MIT) icon set — inline SVG, mirroring the design repo's sprite
* (`web-at-transit-mock/ui/index.html` `<symbol>` defs + a few additions).
* Replaces the previous emoji "icons" (✨ ✅ 📞 📍 🕒 💬 🚌 🚏 …).
*/
import type { ReactNode, SVGProps } from "react";
export type IconName =
| "bus"
| "bus-front"
| "map-pin"
| "map"
| "phone"
| "message-circle"
| "clock"
| "search"
| "globe"
| "arrow-right"
| "check"
| "hourglass"
| "camera"
| "store";
const PATHS: Record<IconName, ReactNode> = {
bus: (
<>
<path d="M8 6v6" />
<path d="M15 6v6" />
<path d="M2 12h19.6" />
<path d="M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3" />
<circle cx="7" cy="18" r="2" />
<path d="M9 18h5" />
<circle cx="16" cy="18" r="2" />
</>
),
"bus-front": (
<>
<path d="M4 6 2 7" />
<path d="M10 6h4" />
<path d="m22 7-2-1" />
<rect width="16" height="16" x="4" y="3" rx="2" />
<path d="M4 11h16" />
<path d="M8 15h.01" />
<path d="M16 15h.01" />
<path d="M6 19v2" />
<path d="M18 21v-2" />
</>
),
"map-pin": (
<>
<path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" />
<circle cx="12" cy="10" r="3" />
</>
),
map: (
<>
<path d="M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" />
<path d="M15 5.764v15" />
<path d="M9 3.236v15" />
</>
),
phone: (
<path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" />
),
"message-circle": (
<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" />
),
clock: (
<>
<circle cx="12" cy="12" r="10" />
<path d="M12 6v6l4 2" />
</>
),
search: (
<>
<path d="m21 21-4.34-4.34" />
<circle cx="11" cy="11" r="8" />
</>
),
globe: (
<>
<circle cx="12" cy="12" r="10" />
<path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" />
<path d="M2 12h20" />
</>
),
"arrow-right": (
<>
<path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</>
),
check: <path d="M20 6 9 17l-5-5" />,
hourglass: (
<>
<path d="M5 22h14" />
<path d="M5 2h14" />
<path d="M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22" />
<path d="M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2" />
</>
),
camera: (
<>
<path d="M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z" />
<circle cx="12" cy="13" r="3" />
</>
),
store: (
<>
<path d="m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7" />
<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" />
<path d="M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4" />
<path d="M2 7h20" />
<path d="M22 7v3a2 2 0 0 1-2 2 2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7" />
</>
),
};
type Props = SVGProps<SVGSVGElement> & {
name: IconName;
size?: number;
};
export function Icon({ name, size = 16, className, ...rest }: Props) {
return (
<svg
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
className={className}
aria-hidden="true"
{...rest}
>
{PATHS[name]}
</svg>
);
}
+56
View File
@@ -0,0 +1,56 @@
"use client";
import { createContext, useContext, useEffect, useState, type ReactNode } from "react";
import { t, type Lang } from "@/lib/i18n";
type Ctx = {
lang: Lang;
setLang: (l: Lang) => void;
toggle: () => void;
t: (key: string, vars?: Record<string, string | number>) => string;
};
const LangCtx = createContext<Ctx>({
lang: "th",
setLang: () => {},
toggle: () => {},
t: (k) => k,
});
export function LangProvider({ children, initial }: { children: ReactNode; initial: Lang }) {
const [lang, setLangState] = useState<Lang>(initial);
const setLang = (l: Lang) => {
setLangState(l);
try {
localStorage.setItem("lang", l);
} catch {}
document.cookie = `lang=${l}; path=/; max-age=31536000; SameSite=Lax`;
document.documentElement.lang = l === "th" ? "th" : "en";
};
const toggle = () => setLang(lang === "th" ? "en" : "th");
useEffect(() => {
let saved: Lang | null = null;
try {
const v = localStorage.getItem("lang");
if (v === "th" || v === "en") saved = v;
} catch {}
if (saved && saved !== lang) {
setLangState(saved);
document.documentElement.lang = saved === "th" ? "th" : "en";
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
return (
<LangCtx.Provider
value={{ lang, setLang, toggle, t: (k, v) => t(k, lang, v) }}
>
{children}
</LangCtx.Provider>
);
}
export const useLang = () => useContext(LangCtx);
+41
View File
@@ -0,0 +1,41 @@
"use client";
import { useEffect, useState } from "react";
/** นาฬิกาสด ณ ป้าย + คำนวณเที่ยวถัดไปอัตโนมัติ (จาก design: live-clock-card) */
export function LiveClock({ times }: { times: string[] }) {
const [now, setNow] = useState("--:--");
const [next, setNext] = useState<string | null>(null);
useEffect(() => {
const tick = () => {
const d = new Date();
setNow(`${String(d.getHours()).padStart(2, "0")}:${String(d.getMinutes()).padStart(2, "0")}`);
const cur = d.getHours() * 60 + d.getMinutes();
const n =
[...times]
.sort()
.find((t) => {
const [h, m] = t.split(":").map(Number);
return h * 60 + m >= cur;
}) ?? null;
setNext(n);
};
tick();
const id = setInterval(tick, 30_000);
return () => clearInterval(id);
}, [times]);
return (
<div className="live-clock-card">
<div>
<p className="live-clock-title">เวลาปัจจุบัน ณ ป้ายนี้</p>
<p className="live-clock-time">{now}</p>
</div>
<p className="live-clock-note">
<span className="live-dot" aria-hidden />
{next ? `เที่ยวถัดไป ${next}` : "กำลังคำนวณเที่ยวถัดไปอัตโนมัติ"}
</p>
</div>
);
}
+41
View File
@@ -0,0 +1,41 @@
"use client";
import { useRouter } from "next/navigation";
import { Icon } from "@/components/Icons";
type Props = {
routes: { route_id: string; name_th: string }[];
current: string;
/** คืน URL ปลายทางเมื่อเลือกสาย (default: /routes/:id) */
to?: (routeId: string) => string;
};
/** เลือกสายรถ — เปลี่ยนสายโดยไม่ต้องกลับหน้ารายการ (จาก design: route-select) */
export function RouteSelect({ routes, current, to }: Props) {
const router = useRouter();
return (
<div className="route-select-wrap">
<label htmlFor="route-select" className="route-select-wrap__label">
<Icon name="bus" size={14} className="icon" /> เลือกสายรถ
</label>
<div className="select-box select-box--toolbar">
<Icon name="bus" size={18} className="select-box__icon" />
<select
id="route-select"
value={current}
onChange={(e) => {
const v = e.target.value;
router.push(to ? to(v) : `/routes/${encodeURIComponent(v)}`);
}}
>
{routes.map((r) => (
<option key={r.route_id} value={r.route_id}>
{r.route_id} · {r.name_th}
</option>
))}
</select>
<Icon name="arrow-right" size={18} className="select-box__chevron" />
</div>
</div>
);
}
+177
View File
@@ -0,0 +1,177 @@
"use client";
import { useMemo, useState } from "react";
import { allBusStops, findBusStopByCode, nearestBusStops, type BusStop } from "@/lib/busstops";
import { Icon } from "@/components/Icons";
import { useLang } from "@/components/LangProvider";
type Mode = "code" | "place";
function BusStopCard({ stop, distM }: { stop: BusStop; distM?: number }) {
const { lang } = useLang();
return (
<div className="busstop-result">
<div className="busstop-result__head">
<span className="busstop-result__km">{stop.kilometer}</span>
<span className="busstop-result__name">{stop.route_name}</span>
{distM != null && (
<span className="busstop-result__dist">
{distM < 1000 ? `${Math.round(distM)} m` : `${(distM / 1000).toFixed(1)} km`}
</span>
)}
</div>
<p className="busstop-result__meta">
{stop.position} · {stop.type}
</p>
{(stop["buses-line"] ?? []).length > 0 && (
<div className="busstop-result__chips">
{(stop["buses-line"] ?? []).map((r) => (
<span key={r} className="chip-soft chip-soft--purple">{lang === "en" ? "Route" : "สาย"} {r}</span>
))}
</div>
)}
</div>
);
}
export function StopSearch() {
const { t, lang } = useLang();
const [mode, setMode] = useState<Mode>("code");
const [code, setCode] = useState("");
const [query, setQuery] = useState("");
const [nearby, setNearby] = useState<{ stop: BusStop; distM: number }[] | null>(null);
const [geoErr, setGeoErr] = useState(false);
const pad = (d: string) => {
if (code.length >= 5) return;
setCode(code + d);
setNearby(null);
};
const backspace = () => setCode(code.slice(0, -1));
const clearAll = () => {
setCode("");
setQuery("");
setNearby(null);
setGeoErr(false);
};
const codeResult = code.length === 5 ? findBusStopByCode(code) : undefined;
const placeResults = useMemo(() => {
const q = query.trim();
if (q.length < 2) return [];
return allBusStops()
.filter(
(b) =>
b.route_name.includes(q) || b.type.includes(q) || b.position.includes(q),
)
.slice(0, 20);
}, [query]);
const nearMe = () => {
if (typeof navigator === "undefined" || !navigator.geolocation) {
setGeoErr(true);
return;
}
navigator.geolocation.getCurrentPosition(
(pos) => setNearby(nearestBusStops(pos.coords.latitude, pos.coords.longitude, 8)),
() => setGeoErr(true),
{ timeout: 10000 },
);
};
const N = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
return (
<div className="stop-search">
<div className="stop-search__tabs" role="tablist" aria-label="รูปแบบการค้นหา">
<button
type="button"
className={`stop-search__tab ${mode === "code" ? "on" : ""}`}
onClick={() => setMode("code")}
>
<Icon name="map-pin" size={14} className="icon" /> {t("stops.modeCode")}
</button>
<button
type="button"
className={`stop-search__tab ${mode === "place" ? "on" : ""}`}
onClick={() => setMode("place")}
>
<Icon name="search" size={14} className="icon" /> {t("stops.modePlace")}
</button>
</div>
{mode === "code" ? (
<div className="stop-search__panel">
<div className="code-boxes" aria-label={t("stops.codePh")}>
{[0, 1, 2, 3, 4].map((i) => (
<span key={i} className={`code-cell ${i < code.length ? "filled" : ""}`}>
{code[i] ?? ""}
</span>
))}
</div>
<div className="numpad">
{N.map((n) => (
<button key={n} type="button" onClick={() => pad(String(n))}>
{n}
</button>
))}
<button type="button" onClick={backspace} aria-label={t("stops.padDelete")}>
<Icon name="arrow-right" size={16} className="icon" style={{ transform: "rotate(180deg)" }} />
</button>
</div>
<div className="stop-search__actions">
<button type="button" className="mu-btn ghost" onClick={clearAll}>
{t("stops.reset")}
</button>
<button type="button" className="mu-btn ghost" onClick={nearMe}>
<Icon name="map-pin" size={14} className="icon" /> {t("map.useMyLocation")}
</button>
</div>
</div>
) : (
<div className="stop-search__panel">
<div className="stop-search__field">
<Icon name="search" size={16} className="icon" />
<input
type="search"
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder={t("stops.searchPh")}
/>
</div>
{placeResults.length > 0 && (
<ul className="stop-search__suggest">
{placeResults.map((b, i) => (
<li key={`${b.kilometer}-${i}`}>
<button type="button" onClick={() => setCode(b.kilometer.replace("+", ""))}>
<span className="km">{b.kilometer}</span>
<span className="name">{b.route_name}</span>
<span className="meta">{b.position}</span>
</button>
</li>
))}
</ul>
)}
</div>
)}
{geoErr && (
<p className="stop-search__err">
{lang === "en" ? "Cannot access your location." : "ไม่สามารถเข้าถึงตำแหน่งของคุณได้"}
</p>
)}
{codeResult && <BusStopCard stop={codeResult} />}
{nearby && nearby.length > 0 && (
<div className="stop-search__nearby">
<h3>{t("map.nearestTitle")}</h3>
{nearby.map((n, i) => (
<BusStopCard key={`${n.stop.kilometer}-${i}`} stop={n.stop} distM={n.distM} />
))}
</div>
)}
</div>
);
}
+25
View File
@@ -0,0 +1,25 @@
{
"date": "2026-09-14",
"th": {
"title": "ความรู้สึกที่รวบรวมข้อมูลต่างๆ",
"tag": "ความรู้สึก",
"body": [
"สวัสดีครับ นี่เป็นบทความแรกของหมวดบ่นไปเรื่อย การเราไปขอข้อมูลช่องทางติดต่อ ติดตามข่าวสาร ถ่ายรูปรถประจำทางเส้นทางๆเหมือนต่อจิ๊กซอทีละชิ้น ยิ่งถ้าเป็นลุงๆป้าๆรถสองแถวต้องตามรอยขนมปังแบบนิทานฝรั่งเลย",
"ก็หวังว่าเว็บนี้จะทำให้การเดินทางด้วยรถประจำทางในจังหวัดอ่างทองง่ายขึ้นไม่มากก็น้อยนะครับ",
"การพี่ๆน้องๆคนทั่วไป เข้าเว็ปมาแล้วเข้ากลุ่มไลน์ กลุ่มเฟช เพจ หรือโทรถามเวลาเดินรถก็ถือว่าได้ทำตามความตั้งใจครบแล้วล่ะ ตารางเวลาเราอยากทำเป็นตัวอย่างเฉยๆ อย่าไปเชื่อมากเราก็ไม่มีเวลาแก้ให้ถูกทุกวันและทุกสาย เพราะบางสายก็ปรับเวลาทุกวัน",
"เราเลือกรูปนี้เพราะเป็นจุดเริ่มต้นเลยแค่จะขึ้นรถมินิบัส สายใน ไปกรุงเทพ ทำไมเราต้องรู้นั่น รู้นี่จัง ต้องรู้ว่ารถส่วนใหญ่ไปไม่ถึงอ่างทอง ต้องรู้ว่ารถที่ออกจากอ่างทองมีแค่เช้ามืดแต่เอาจริงๆรถคันที่เห็นรูปน่าจะเป็นคันสุดท้ายที่ขับถึงอ่างทอง บางคนถามว่าทำไมเลือกสายนี้ คือมันได้ดูวิว ตลาดป่าโมก ตลาดเจ้าพรหม วัดภูเขาทอง ถ้าเลือกได้ก็อยากนั่งสายในก่อน",
"ส่วนการติดต่อสอบถามหน่วยงานราชการ ก็ขอข้อมูลไปหลายแห่ง มียกเว้นที่เดียวเห็นจะมีแค่แขวงทางหลวงจังหวัดอ่างทอง ที่ให้ข้อมูลศาลารอรถต้องขอขอบคุณ ณ ที่นี้"
]
},
"en": {
"title": "What it felt like gathering all this data",
"tag": "Feelings",
"body": [
"Hi there — this is the first post in the Bored Ramblings series. Asking around for contact details, following the news, photographing buses route by route felt like putting together a jigsaw puzzle, one piece at a time. And with the older songthaew drivers, it was like following a trail of breadcrumbs straight out of a fairy tale.",
"I hope this site makes getting around Ang Thong by bus at least a little easier.",
"If people — anyone at all — come to the site and then join the LINE group, the Facebook group, the page, or simply call to ask about departure times, then I'd say the whole thing has done what it set out to do. The timetables are meant as a rough guide only, so please don't take them too literally. I don't have time to fix them every day for every route, and some lines change their times daily.",
"I picked this photo because it's where it all began — just to catch a minibus on the local route into Bangkok. Why does one need to know this, and that? You need to know that most buses don't actually reach Ang Thong; you need to know the only buses leaving Ang Thong head out at dawn — and honestly, the bus in the photo was probably the last one that made it to Ang Thong that day. Some people ask why I picked this route. Because of the view: Pa Mok market, Chao Phrom market, Wat Phu Khao Thong. If I had the choice, I'd take the local line every time.",
"As for contacting government agencies, I sent requests to quite a few of them. And going by what people who've studied this told me, most of them won't tell you anything if you're just an ordinary citizen — not from an oversight body, an organisation, or a foundation. You have to write a formal letter citing regulations, authority and duties, backed up with the Official Information Act. I didn't cite the law in as much detail as the lawyers suggested. There was one exception: the Ang Thong Highway District gave me information about the bus shelters without asking for any references to regulations or the Official Information Act. My thanks to them here."
]
}
}
+257
View File
@@ -0,0 +1,257 @@
{
"date": "2026-09-10",
"map": {
"origin": {
"coords": [
14.59489,
100.45161
],
"label": "บขส.อ่างทอง"
},
"groups": [
{
"id": "existing",
"label": "รถประจำทางผ่านอยู่แล้ว",
"routes": [
{
"id": "line15",
"geo_id": "15",
"line_color": "#7cb342",
"line_name": "สาย 15 (กรุงเทพ-อ่างทอง สายใน)",
"dest": {
"name": "BTS หมอชิต · MRT จตุจักร",
"coords": [
13.803471537697645,
100.55428211112948
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "line902",
"geo_id": "902",
"line_color": "#1f5fbf",
"line_name": "สาย 902 (กรุงเทพ-อ่างทอง สายเอเซีย)",
"dest": {
"name": "BTS หมอชิต · MRT จตุจักร",
"coords": [
13.803471537697645,
100.55428211112948
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "line952",
"geo_id": "952",
"line_color": "#7a4cc0",
"line_name": "สาย 952 (กรุงเทพ-วิเศษชัยชาญ)",
"dest": {
"name": "MRT คลองบางไผ่",
"coords": [
13.89239670552972, 100.40816596702227
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "line952",
"geo_id": "952",
"line_color": "#7a4cc0",
"line_name": "สาย 952 (กรุงเทพ-วิเศษชัยชาญ)",
"dest": {
"name": "MRT ตลาดบางใหญ่",
"coords": [
13.880976188776955, 100.40915071255077
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
}
]
},
{
"id": "improve",
"label": "ปรับปรุงจากเส้นทางเดิม",
"routes": [
{
"id": "line101",
"geo_id": "101",
"line_color": "#a51f2e",
"line_name": "สาย 101 (อ่างทอง-ป่าโมก-อยุธยา)",
"dest": {
"name": "สถานีรถไฟ/รถไฟฟ้าชานเมืองอยุธยา",
"coords": [
14.356766025721091,
100.58296985329517
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "line952b",
"geo_id": "952",
"line_color": "#FF8F94",
"line_name": "สาย 952 (ขยายถึงสถานีรถไฟฟ้าชานเมืองชุมทางตลิ่งชัน)",
"dest": {
"name": "สถานีรถไฟฟ้าชานเมืองชุมทางตลิ่งชัน",
"coords": [
13.78935132220992, 100.43941463521845
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
}
]
},
{
"id": "new",
"label": "เปิดเส้นทางใหม่",
"routes": [
{
"id": "banchang",
"geo_id": "dream-banchang",
"line_color": "#a51f2e",
"line_name": "สถานีรถไฟฟ้าชานเมืองชุมทางบ้านภาชี (สายสีแดงเข้ม)",
"dest": {
"name": "ชุมทางบ้านภาชี",
"coords": [
14.450689476023536,
100.72094907399251
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "ayutthaya-hsr",
"geo_id": "dream-ayutthaya-hsr",
"line_color": "#a51f2e",
"line_name": "สถานีรถไฟความเร็วสูงอยุธยา",
"dest": {
"name": "สถานีรถไฟความเร็วสูงอยุธยา",
"coords": [
14.356766025721091,
100.58296985329517
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "pakkret",
"geo_id": "dream-pakkret",
"line_color": "#e0509b",
"line_name": "MRT แยกปากเกร็ด (รางเดี่ยวสีชมพู)",
"dest": {
"name": "MRT แยกปากเกร็ด",
"coords": [
13.906656941460735,
100.50553319459016
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "muangthong",
"geo_id": "dream-muangthong",
"line_color": "#e0509b",
"line_name": "MRT ทะเลสาบเมืองทองธานี (รางเดี่ยวสีชมพู)",
"dest": {
"name": "MRT ทะเลสาบเมืองทองธานี",
"coords": [
13.918274061982352,
100.54526798554069
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "Watcharapol",
"geo_id": "dream-Watcharapol",
"line_color": "#e0509b",
"line_name": "MRT วัชรพล (รางเดี่ยวสีชมพู)",
"dest": {
"name": "MRT วัชรพล",
"coords": [
13.8496,
100.64198
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
}
]
}
]
},
"th": {
"title": "อยากให้มีรถประจำทางเชื่อมต่อสถานีรถไฟฟ้า",
"tag": "ความฝัน",
"body": [
"เราเป็นคนชอบนั่งรถไฟฟ้า เราก็ฝันอยากให้จังหวัดอ่างทองมีเส้นทางที่วิ่งตรงจาก บขส.อ่างทอง ผ่านสถานีขนส่งประจำอำเภอยิงตรงจอดหน้าหรือใต้สถานีรถไฟฟ้าสายต่างๆไม่ต้องเปลี่ยนรถหลายรอบ",
"เอาจริงๆเราก็รู้แหละว่าไม่น่าเป็นไปได้จากหลายสาเหตุ เช่น ใครจะมาประกอบธุรกิจมันหมดยุครถประจำทางแล้ว ทุกบ้านมีมอไซ 2-3 คัน รถยนต์อีก 1-2 คัน ใครจะขึ้นเวลาใครถามก็บอกดีๆแต่จะเหลือคนขึ้นรถประจำทางจริงๆเท่าไร ขนาดเราเองก็ไม่ได้ขึ้นรถประจำทางนานมากแล้ว ระบบราชการ ระเบียบใช้คำว่าอะไรดีแปลกๆมั้งแบบว่าหห้ามออกใบอนุญาตทับเส้นทางกัน คือสมมติ เขาวิ่งแค่เช้าเย็นแล้วเส้นทางเราทับเขา แต่เราวิ่งสายกับบ่าย เขาก็ประท้วงได้ แบบ??? หะ",
"แบ่งเส้นทางออกเป็นสองกลุ่มคือ 1.รถประจำทางผ่านอยู่แล้ว 2.ปรับปรุงจากเส้นทางเดิม 3.เปิดเส้นทางใหม่",
"1.รถประจำทางผ่านอยู่แล้ว ได้แก่ รถไฟฟ้าสายสีเขียวอ่อน และสายสีน้ำเงิน โดยสายที่ผ่านได้แก่ 15 กรุงเทพ-ป่าโมก-อ่างทอง(สายใน) และ 902 กรุงเทพ-อ่างทอง(สายเอเซีย) ผ่าน BTS หมอชิตและ MRT จตุจักร และรถไฟฟ้าสายสีม่วง ได้แก่ 952 · กรุงเทพ-วิเศษชัยชาญ ผ่าน MRT คลองบางไผ่ กับ ตลาดบางใหญ่",
"2.ปรับปรุงจากเส้นทางเดิม เส้นทางเดิมห่างจากสถานีรถไฟฟ้าเกือบ 1 กิโลเมตร อยากให้กรมการขนส่งและผู้ประกอบการเห็นพ้องกันขยายเส้นทางไปถึงหน้าสถานีรถไฟฟ้า ได้ สายสีแดงเข้ม(สถานีในอนาคต) 101 อ่างทอง-อยุธยา ปัจจุบันต้องจอดก่อนสามแยกเข้าเจ้าพรหม เดิน 300-400 เมตร นั่งเรือข้ามฟาก เดินอีก 100+ เมตร ถึงสถานีรถไฟอยุธยาซึ่งสถานีใหม่เยื้องๆไปหน่อยนึงแค่ข้ามสะพานเลี้ยวซ้ายไปเกือบๆครึ่งโลจะถึงแล้วไม่รู้จะมีอุปสรรคหรือลุงๆคนขับจะอยากขับอ้อมไป-กลับอีกหรือเปล่า หรือเอาเข้าจริงพอสถานีก่อสร้างเสร็จคนอ่างทองจะไปจริงๆหรือเปล่า หรือจะแบ่งเป็นสายย่อยก็ได้ส่วนใหญ่ลุงก็ขับแบบเดิมแต่มี ช่วง (อ่างทอง-สถานีรถไฟฟ้าชานเมืองอยุธยา) ต่างห่างแบบ มินิบัสซักคัน ตั้งเป้าว่าจะไปให้ถึงสถานีก่อนรถไฟฟ้าออกซัก 10-15 นาที เพราะเราเชื่อว่ารถไฟฟ้าชานเมืองไม่ได้ออกถี่ๆเท่ากับรถไฟฟ้าสีเขียว สีน้ำเงินระยะทางมันไกล และสายสีแดงอ่อนสถานีรถไฟฟ้าชุมทางตลิ่งชัน ปัจจุบันยังไม่น่าสนใจแต่ถ้ารถไฟฟ้าชานเมืองก่อสร้างเต็มระบบ สถานีนี้สามารถไปนครปฐม สถานีกลางกรุงเทพอภิวัฒน์ และโรงพยาบาลศิริราชได้ด้วยรถไฟฟ้าไม่ต้องผ่ารถติด สาย 952 กรุงเทพ-วิเศษชัยชาญ เคยไป3-4 ครั้งถนนแอบงงๆ แต่ก็อยากให้ขยายเส้นทางอยู่ดี",
"3.เปิดเส้นทางใหม่ เอาจริงๆข้อนี้ก็ยากเพราะข้าราชการจะยอมเปิดเส้นทางใหม่มั้ย ถ้าเปิดเส้นทางใหม่แล้วใครจะมาประมูลใบอนุญาตและกลุ่มผู้โดยสารขาประจำจะมีเพียงพอมั้ยก็ไม่รู้ อยากเสนอให้พิจารณา ได้แก่ ",
"รถไฟฟ้าสายสีแดงเข้ม อ่างทอง-ป่าโมก-สถานีชุมทางบ้านภาชี ทั้งๆที่มีสถานีรถไฟชานเมืองอยู่แล้ว แม้ว่าจะอ้อมกว่าเล็กน้อยจะเสนอ เพราะว่าการขึ้นสถานีต้นทางประกันว่ามีที่นั่งแน่นอนและหนีความวุ่นวาย สถานีรถไฟฟ้าอยุธยาต้องวุ่นวายทั้งคนรอรถไฟความเร็วสูง รถไฟฟ้าชานเมือง นักท่องเที่ยว ",
"รถไฟฟ้าความเร็วสูง อ่างทอง-ป่าโมก-สถานีรถไฟฟ้าความเร็วสูงอยุธยา ทั้งๆที่ตั้งอยู่ที่เดียวกันนั่นแหละ แต่เสนอเพราะอยากให้เดินทางเร็วสอดคล้องกับเที่ยวรถไฟความเร็วสูงคนที่จะไป อีสานและกรุงเทพ ",
"รถไฟฟ้ารางเดี่ยวสีชมพู อ่างทอง-ป่าโมก-MRT แยกปากเกร็ด หรือ ทะเลสาบเมืองทองธานี หรือวัชรพล เชื่อมต่อรถไฟฟ้ารางเดี่ยว ส่งคนชอบดูงานอีเว้นชอบสามารถพาไปส่วนต่างๆของนนทบุรีได้และต่อไปรถไฟฟ้าสายสีอื่นๆได้ "
]
},
"en": {
"title": "I wish there were buses connecting to the rail lines",
"tag": "A dream",
"body": [
"I'm a rail person at heart, and I keep dreaming that Ang Thong would have routes running straight from the Ang Thong Bus Terminal, through the district bus stations, and stopping right at — or under — the various rail stations, without having to change buses several times.",
"Honestly, I know it's unlikely for a lot of reasons. Who's going to build a business on it when the era of the bus is over? Every household has two or three motorbikes and another one or two cars. Who's going to ride? Ask anyone and they'll be polite about it, but how many people will actually still take the bus? Even I haven't taken one in ages. Then there's the bureaucracy — some odd rule about not granting a licence that overlaps another operator's route. Say they only run mornings and evenings and our route overlaps theirs: even if we run in the afternoon, they can still file an objection. Like… what?",
"I'd split the routes into two groups: 1) buses that already pass through, 2) improvements to existing routes, 3) brand-new routes.",
"1. Buses that already pass through: the Light Green and Blue lines. The routes that qualify are 15 (Bangkok–Pa Mok–Ang Thong, local line) and 902 (Bangkok–Ang Thong, Asia line), which pass Mo Chit BTS and Chatuchak MRT. And the Purple Line: 952, Bangkok–Wiset Chai Chan, passing Khlong Bang Phai MRT and Bang Yai market.",
"2. Improving existing routes: the old routes stop nearly a kilometre from the rail stations. I'd like the Department of Land Transport and the operators to agree on extending them right up to the station forecourt. Take the Dark Red Line (a future station): route 101, Ang Thong–Ayutthaya, currently has to stop before the junction into Chao Phrom — walk 300–400 metres, take a ferry across, walk another 100-plus metres, and you reach Ayutthaya railway station, whose new building sits slightly off to one side; cross the bridge, turn left, and it's almost another half a kilometre. I don't know whether there'll be obstacles, or whether the drivers will want to make the detour out and back. Or, honestly, whether people from Ang Thong will actually go once the station is finished. Or it could be split into a sub-route — most of the drivers would keep running as they do now, but with a stretch (Ang Thong–Ayutthaya suburban rail station) served separately, maybe by a minibus. The aim would be to arrive at the station 10–15 minutes before the train leaves, because I don't believe the suburban rail runs as frequently as the Green or Blue lines — the distance is much longer. And the Light Red Line's Taling Chan station isn't very appealing right now, but once the suburban rail system is fully built, that station can reach Nakhon Pathom, Krung Thep Aphiwat Central Terminal and Siriraj Hospital by rail, without getting stuck in traffic. As for route 952, Bangkok–Wiset Chai Chan, I've taken it three or four times and the roads still confuse me — but I'd still like to see its route extended.",
"3. Brand-new routes: honestly, this part is hard, because will the officials even allow a new route? And if they do, who'll bid for the licence, and will there be enough regular passengers? I don't know. But I'd like the following to be considered:",
"The Dark Red Line: Ang Thong–Pa Mok–Ban Phachi Junction. Even though it's a bit of a detour, I'd propose it because starting at the origin station guarantees you a seat and lets you skip the crowds. Ayutthaya's rail station is chaotic — people waiting for the high-speed train, the suburban rail, and tourists all at once.",
"The High-Speed Rail: Ang Thong–Pa Mok–Ayutthaya High-Speed Rail Station. It's at the same place, yes, but I propose it because it makes for fast travel that lines up with the high-speed train's own departures — for people heading to Isan and to Bangkok.",
"The Pink monorail: Ang Thong–Pa Mok–Pak Kret MRT, or Muang Thong Thani lakeside, or Watcharaphol. Connecting to the monorail lets you reach different parts of Nonthaburi and then transfer to other rail lines."
]
}
}
+147
View File
@@ -0,0 +1,147 @@
{
"date": "2026-09-10",
"map": {
"origin": {
"coords": [
14.59489,
100.45161
],
"label": "บขส.อ่างทอง"
},
"groups": [
{
"id": "existing",
"label": "รถประจำทางที่ยังวิ่งอยู่",
"routes": [
{
"id": "line902",
"geo_id": "902",
"line_color": "#1f5fbf",
"line_name": "สาย 902 (กรุงเทพ-อ่างทอง สายเอเซีย)",
"dest": {
"name": "BTS หมอชิต · MRT จตุจักร",
"coords": [
13.81168,
100.55034
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "line15",
"geo_id": "15",
"line_color": "#7cb342",
"line_name": "สาย 15 (กรุงเทพ-อ่างทอง สายใน)",
"dest": {
"name": "BTS หมอชิต · MRT จตุจักร",
"coords": [
13.8127,
100.55043
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "line952",
"geo_id": "952",
"line_color": "#7a4cc0",
"line_name": "สาย 952 (กรุงเทพ-วิเศษชัยชาญ)",
"dest": {
"name": "ท่ารถตู้สายใต้เก่า (ปิ่นเกล้า)",
"coords": [
13.78646,
100.46817
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
}
]
},
{
"id": "improve",
"label": "อยากให้ขยายและปรับปรุงเส้นทาง",
"routes": [
{
"id": "line101",
"geo_id": "101",
"line_color": "#a51f2e",
"line_name": "สาย 101 (อ่างทอง-ป่าโมก-อยุธยา)",
"dest": {
"name": "สถานีรถไฟ/รถไฟฟ้าชานเมืองอยุธยา",
"coords": [
14.35942,
100.57726
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "line324",
"geo_id": "324",
"line_color": "#d6388f",
"line_name": "สาย 324 (อ่างทอง-วัดไชโย-วัดพิกุลทอง)",
"dest": {
"name": "วัดพิกุลทอง",
"coords": [
14.78146,
100.40278
]
},
"via": [
{
"name": "วัดไชโย",
"coords": [
14.71748,
100.43706
]
}
],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
}
]
}
],
"note": ""
},
"th": {
"title": "ศักยภาพของเส้นทาง",
"tag": "ความหวัง",
"body": [
"เราเดินทาง ถามทั้งผู้โดยสาร คนขับ และนายท่า แม้จะเหลือไม่กี่สายที่มีโอกาศหรือมีประสิทธิภาพ เราอยากเสนอเผื่อนายท่า หรือขนส่งจังหวัดอ่านจะนำพิจารราปรับปรุงเส้นทาง",
"สาย 902 กรุงเทพ-อ่างทอง สายเอเซีย เป็นสายสุดท้ายแล้วที่แข็งแรง หวังว่าขนส่งอ่างทองจะไม่แตะต้องเขยายเส้นทางนะ ในฐานะเป็นสายที่ผมต้องขึ้นประจำอยากขอเสนอ ว่าอยากให้นำรถมินิบัสเข้าระบบ GPS แบบ VIABUS เวลาจะขึ้นที่ตลาดนัดกินซ่า จะได้กะเวลาวิ่งออกจากฟิวเจอร์ถูก มีคนประจำเปิดรับอีเมลล์กับโทรศัทพ์ สอบถามเวลาเดินรถเอาจริงๆสายพี่เวลาค่อนข้างนิ่งแหละแต่หลัง 5 โมงเย็นก็อดหวั่นใจไม่ได้ไม่งั้นต้องพักโรงแรมแถวนั้น หรือจะเช่าสถานที่ไปทำจุดรอรถข้างๆ Hotpotman มีเก้าอี้พัดลมไอน้ำขับรถอ้อมเข้ามารับคน เราก็พูดไปงั้นตามสโลแกนแค่เข้าระบบ GPS ก็บุญหัวแล้ว หรือจะทำระบบ GPS ด้วยกันก็ได้ 555",
"สาย 15 และสาย 952 เราก็แปลกใจนะทำไมรถมินิบัสเข้ากรุงเทพถึงทรุดทั้งๆที่ควรเป็นสายหลัก โอเคมันอาจจะไม่ได้เร็วที่สุดแต่มันได้ชมบรรยากาศตลาดอ่างทอง ตลาดป่าโมก ตลาดเจ้าพรหมนะ ส่วน วิเศษชัยชาญ-สายใต้เก่า ก็เป็นทางที่เหมาะกับคนที่อยากไปด้านปิ่นเกล้า ตลิ่งชัน สนามหลวง อยากให้กลับมาซักครึ่งนึงก็ยังดีแบบ 1-2 ชั่วโมงต่อคัน",
"สาย 101 อ่างทอง-ป่าโมก-อยุธยา จริงๆพี่เป็นสายที่น่าจะส้มหล่น เพราะรถไฟสุพรรณบุรี-ชุมทางภาชีตัดผ่านละแวก 7-11 วัดจุฬา นั่นแหละ จะมีสถานีรถไฟฟ้าชานเมือง สถานีรถไฟความเร็วสูง รายละเอียดเป็นอย่างไรไม่รู้ อยากขอให้ขยายเส้นทางไปจอดหน้าสถานีรถไฟฟ้าเลย แบบซื้อ REEV minibus แล้วทำรถเร็ว หรือรถด่วน แบบแวะน้อยๆแล้วจอดสุดสายเลย",
"สาย 324 อ่างทอง-วัดไชโย-วัดพิกุลทอง เอาจริงๆเลยวัดไชโย เราก็ไม่รู้หรอก แต่ช่วงอ่างทองจนถึงวัดไชโย มีแหล่งพักผ่อนหลายที่แต่โอเคบางที่ก็ปล่อยรกร้างแล้วก็อยากให้ฟื้นฟู ก็จะมี ขุมทรัพย์ความรู้จังหวัดอ่างทอง (AKAP) สวนสุขภาพและสวนน้ำเฉลิมพระเกียรติเทศบาลเมืองอ่างทอง(แต่ก็แอบเดินเหนื่อยอยู่) สนามกีฬาจังหวัดอ่างทอง ท่าเรือข้ามฟากอยุธยา หาดพ่อพระราม หาดเจ้าพระยา วัดไชโย อยากให้ปรับปรุงจนเป็นเส้นทางเพื่อการพักผ่อน"
]
},
"en": {
"title": "The potential of these routes",
"tag": "A hope",
"body": [
"We travelled around and asked passengers, drivers and terminal operators alike. Only a few routes are left with any real chance — or any efficiency. We'd like to put these suggestions out there, in case a terminal operator or the provincial transport office reads them and takes them into account when improving the routes.",
"Route 902, Bangkok–Ang Thong, the Asia line, is the last one still standing strong. I hope the Ang Thong transport office won't touch it or extend it. As someone who has to ride it regularly, I'd like to suggest putting the minibuses on a GPS system like VIABUS. Then when I'm waiting at the Kinsa flea market I could work out exactly when the bus leaves Future Park. And have a staff member who answers email and phone calls, so you can ask about departure times. Honestly, this route's times are pretty steady — but after 5 p.m. I can't help feeling uneasy, or else I'd have to stay at a hotel around there. Or rent a spot and set up a waiting area beside Hotpotman, with chairs and a mist fan, and have the bus loop in to pick people up. But I'm just saying that — the slogan really is 'just get on GPS and I'll be grateful'. Or we could build a GPS system together. Ha ha.",
"Routes 15 and 952. I'm puzzled too, why the minibuses into Bangkok have fallen apart when they ought to be the backbone. OK, they may not be the fastest, but you do get the scenery of Ang Thong market, Pa Mok market and Chao Phrom market. As for the Wiset Chai Chan–old Southern Terminal line, it suits people heading for the Pinklao, Taling Chan and Sanam Luang side. I'd like to see it come back to even half of what it was — a vehicle every one to two hours would still be something.",
"Route 101, Ang Thong–Pa Mok–Ayutthaya. This one really could be a windfall, because the Suphan Buri–Ban Phachi railway runs right past the 7-Eleven at Wat Chula. There'll be a suburban rail station and a high-speed rail station there — I don't know the details. I'd like to ask them to extend the route so it stops right in front of the rail station — buy a REEV minibus and run it fast, or as an express with few stops that runs all the way to the end of the line.",
"Route 324, Ang Thong–Wat Chaiyo–Wat Phikul Thong. Honestly, Wat Chaiyo itself — I don't really know it. But between Ang Thong and Wat Chaiyo there are plenty of places to relax; some have been left to go to seed, and I'd like to see them restored. There's the Ang Thong knowledge park (AKAP), the Chalerm Phrakiat health and water park run by Ang Thong Municipality (though it is a bit of a tiring walk), the Ang Thong provincial stadium, the Ayutthaya ferry pier, Pho Phra Ram beach, Chao Phraya beach and Wat Chaiyo. I'd like to see it all improved until it becomes a route for leisure."
]
}
}
+107
View File
@@ -0,0 +1,107 @@
{
"date": "2026-10-05",
"map": {
"origin": {
"coords": [
14.59489,
100.45161
],
"label": "บขส.อ่างทอง"
},
"groups": [
{
"id": "new",
"label": "แนวทาง 1 — เปิดเส้นทางใหม่ แสวงหา-โพธิ์ทอง-กรุงเทพ",
"routes": [
{
"id": "sawangha-bangkok",
"geo_id": "dream-sawangha-bangkok",
"line_color": "#1f5fbf",
"line_name": "แสวงหา-โพธิ์ทอง-กรุงเทพ (เส้นทางใหม่)",
"dest": {
"name": "สถานีเดินรถโดยสารขนาดเล็ก (จตุจักร)",
"coords": [
13.81369,
100.54983
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
}
]
},
{
"id": "feeder",
"label": "แนวทาง 2 — แยก 1011 เป็น 2 ช่วง",
"routes": [
{
"id": "angthong-phothong-sawangha",
"geo_id": "dream-angthong-phothong-sawangha",
"line_color": "#d6388f",
"line_name": "อ่างทอง-โพธิ์ทอง-แสวงหา (รถเชื่อมต่ออำเภอ)",
"dest": {
"name": "ตลาดแสวงหา",
"coords": [
14.75281,
100.32551
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "sawangha-srinuathong",
"geo_id": "dream-sawangha-srinuathong",
"line_color": "#7a4cc0",
"line_name": "แสวงหา-สีบัวทอง (ช่วงท้องถิ่น)",
"dest": {
"name": "วัดสีบัวทอง",
"coords": [
14.79257,
100.22767
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
}
]
}
],
"note": ""
},
"th": {
"title": "แก้ปัญหาไม่มีรถประจำทาง แสวงหาและโพธิ์ทอง",
"tag": "วิธีเดินทาง",
"body": [
"สวัสดีครับ หลายเดือนก่อนเห็นเพจสสกับรถมินิบัสสาย 902 ออกมาถามความคิดเห็นว่าควรขยายเส้นทางไปสุดสายที่อำเภอแสวงหามั้ย ก่อนอื่นก็ต้องชมชาวโพธิ์ทองและแสวงหาที่เรียกร้องสิทธิครับ อำเภออื่นๆรถประจำทางก็ไม่มีเหมือนกันยังไม่เคยได้ยินเป็นเรื่องเป็นราวขนาดนี้เลย เราคงจะไม่ชี้ใครผิด สส หน่วยงานราชการคงมีแนวทางแก้ปัญหาในแบบของเขา",
"แต่ในมุมมองเรา ไม่เห็นด้วยมากที่จะให้ขยายเส้นทางไปถึงอำเภอแสวงหา คนขับรถต้องขับไป-กลับ รวม 50-60 กิโล เส้นทางไหนที่พอจะแข็งแรงอยู่แล้วอย่าไปทำลายมันเลย ตอนผมเก็บข้อมูลก็แปลกใจนึกว่าเส้นทางเข้ากรุงเทพทุกสาย แต่อยากที่รู้ อ่างทอง-กรุงเทพ สายใน ก็เหลือไม่กี่คัน กรุงเทพ-วิเศษชัยชาญที่ไปลงสายใต้เก่าก็มีแค่ 2 คัน เพราะฉะนั้นอะไรที่ดีอยู่แล้วก็อย่าไปแตะมัน",
"ถ้าพี่ๆน้องๆ คนโพธิ์ทอง แสวงหา อ่านก็อย่าพึ่งหงุดหงิดว่าไม่เข้าใจความเดือดร้อน เราพอเข้าใจว่าการไม่มีรถประจำทางเดินทางมันเป็นยังไง",
"เท่าที่อ่านเม้นและเคยถามก็มีทั้งคนที่อยากมาธุระในตัวเมือง และคนที่อยากไปกลับกรุงเทพแต่คนกลุ่มหลังมากกว่า เราเสนอ 2 แนวทางแล้วกัน คือ",
"1.เปิดเส้นทางใหม่ แสวงหา-โพธิ์ทอง-กรุงเทพ ไปเลยตอนนี้ก็มีการตัดถนนเลี่ยงเมืองใหม่ที่สามแยกป่างิ้วจะกลายเป็นสี่แยกแล้ว ก็ให้ก่อสร้างสถานีขนส่งแสวงหา และโพธิ์ทอง แล้วเลี้ยวซ้ายออกไปสายเอเซียเลย จบๆดี",
"2.หั่นรถเมล์ 1011 อ่างทอง-แสวงหา-สีบัวทอง ให้เป็นรถเชื่อมต่ออำเภอ อ่างทอง-โพธิ์ทอง-แสวงหา ส่วนแสวงหา-สีบัวทองให้เป็นหน้าที่ อปท เพื่อส่งคนไปขึ้นรถมินิบัส อ่างทอง-กรุงเทพ ทั้ง 2 สาย แบบนี้ข้อดีคือคนที่จะมาทำงานหรือทำธุระตัวเมืองจะได้ประโยชน์ด้วยแต่ข้อเสียคือคนที่จะไปกรุงเทพก็ต้องเสียเวลาเปลี่ยนรถ รอมินิบัสออกตามรอบ แต่แนวคิดแบบนี้จะเหมือน กรมการขนส่งหรือเปล่าที่จงใจตัดเส้นทางรถเมล์ในกรุงเทพให้สั้นลง",
"ซึ่งก็ไม่รู้ขนส่งจังหวัดอ่างทองจะเลือกแนวทางไหน ทั้ง 3 แนวทางก็มีปัญหาในแบบของมันเอง"
]
},
"en": {
"title": "Solving the no-bus problem in Sawaeng Ha and Pho Thong",
"tag": "How to travel",
"body": [
"Hello. A few months ago I saw the page run by the MP and the route 902 minibus operators asking for opinions on whether the route should be extended all the way to Sawaeng Ha district. First of all, credit to the people of Pho Thong and Sawaeng Ha for standing up for their rights. Other districts have no buses either, and I've never heard it raised as a serious issue the way this has been. I won't point fingers at anyone — the MP and the agencies probably have their own ways of tackling it.",
"But from where I sit, I'm very much against extending the route all the way to Sawaeng Ha. The driver would have to run 50–60 kilometres there and back. Whatever route is still holding up, don't go wrecking it. While I was gathering data I was surprised — I'd assumed every route ran into Bangkok. But as far as I know, the Ang Thong–Bangkok local line is down to just a few vehicles, and the Bangkok–Wiset Chai Chan route that ends at the old Southern Bus Terminal has only two. So whatever is still working, leave it alone.",
"If any of you in Pho Thong or Sawaeng Ha are reading this, please don't get annoyed thinking I don't understand your hardship. I do have some idea of what it's like to travel with no bus service.",
"From the comments I read and the people I asked, there are those who want to come into town on business and those who want to get to Bangkok and back — and the latter group is bigger. So let me propose two approaches.",
"1. Open a brand-new route: Sawaeng Ha–Pho Thong–Bangkok, direct. There's already a new bypass road being cut at the Pa Ngio junction, which is about to become a crossroads. So build bus terminals in Sawaeng Ha and Pho Thong, then turn left straight onto the Asia Highway. Done and dusted.",
"2. Chop route 1011 (Ang Thong–Sawaeng Ha–Si Bua Thong) down into a district feeder: Ang Thong–Pho Thong–Sawaeng Ha, and hand the Sawaeng Ha–Si Bua Thong stretch to the local administration to carry people to the Ang Thong–Bangkok minibuses — both of them. The upside is that people who work or run errands in town benefit too. The downside is that anyone heading to Bangkok loses time changing vehicles and waiting for the minibus to leave on schedule. Though this idea is a bit like what the Department of Land Transport does when it deliberately shortens bus routes in Bangkok, isn't it?",
"I don't know which way the Ang Thong provincial transport office will go. All three approaches have problems of their own."
]
}
}
+105
View File
@@ -0,0 +1,105 @@
{
"date": "2026-10-05",
"map": {
"origin": {
"coords": [
14.59489,
100.45161
],
"label": "บขส.อ่างทอง"
},
"groups": [
{
"id": "minimum",
"label": "ขั้นต่ำที่สุด — รถเชื่อมต่ออำเภอเข้าสู่ตัวเมือง",
"routes": [
{
"id": "samko-wisad-angthong",
"geo_id": "dream-samko-wisad-angthong",
"line_color": "#1f5fbf",
"line_name": "สามโก้-วิเศษ-อ่างทอง (รถเชื่อมต่ออำเภอ)",
"dest": {
"name": "สามโก้",
"coords": [
14.60619,
100.24724
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "sawangha-phothong-angthong",
"geo_id": "dream-sawangha-phothong-angthong",
"line_color": "#7a4cc0",
"line_name": "แสวงหา-โพธิ์ทอง-อ่างทอง (รถเชื่อมต่ออำเภอ)",
"dest": {
"name": "แสวงหา",
"coords": [
14.75291,
100.32676
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
},
{
"id": "chaiyo-angthong-pamok",
"geo_id": "dream-chaiyo-angthong-pamok",
"line_color": "#e0509b",
"line_name": "ไชโย-อ่างทอง-ป่าโมก (รถเชื่อมต่ออำเภอ)",
"dest": {
"name": "ป่าโมก",
"coords": [
14.49442,
100.44622
]
},
"via": [],
"distance_km": null,
"duration_min": null,
"fare_thb": null,
"note": ""
}
]
}
],
"note": ""
},
"th": {
"title": "เส้นทางรถประจำทางจากตัวอำเภอเข้าตัวจังหวัด",
"tag": "ความฝัน",
"body": [
"เราเกิดและเติบโตมาที่อ่างทอง ก็เห็นความเปลี่ยนแปลงแม้ว่าจะไม่ทันช่วงที่การขนส่งสาธารณะรุ่งเรือง ลุงๆป้าๆบอกว่าคนที่บขส คึกคักมากรถออกทุก 10 นาที มีรถอ่างทองไปพระพุทธบาท โผงเผง วัดสระแก้ว วัดเอกราช วัดมหานาม วัดพิกุลทอง และอื่นๆอีก แต่เท่าที่เราจำได้มีเมล์แดง เมล์ฟ้า เมล์เนื้อ แล้วมีรถตู้ผี 555 ไปถึงอนุเสาวรีย์ แล้วก็มาจัดระเบียบ และก็เริ่มทรุดลงมาเพราะคนมีรถมอไซ รถยนต์ จนมาช่วงโควิค ที่บางคนกลัวติดโรค ถึงขั้นซื้อรถใหม่",
"เราพอเข้าใจสถานการณ์ปัจจุบันถ้าจะให้กลับมาทั้งหมดไม่มีวันเป้นไปได้แล้ว เวลาฟังนักวิชาการ นักข่าว นักเคลื่อนไหวบอกว่า ภาครัฐต้องมาดูแล มันก็ขำนะพอรถประจำทางวิ่งกันได้เอกชนก็ทำกันเอง แต่พอวิ่งมีแต่เจ๊งกลับโยนใหห้ภาครัฐทำ",
"แต่ก็นั่นแหละมันอยู่ในกฎหมาย ว่าองค์กรปกครองส่วนท้องถิ่นมีหน้าที่จัดหาบริการขนส่งสาธารณะ เราก็ไม่แม่นกฎหมายแต่มันก็จะมีแนวคิดประมาณว่า ถ้าโครงการขาดทุนสะสมทุกวันต้องเอาหลวงถมทุกวันหนวยงานตรวจสอบอาจไม่ชอบ และฟ้องเรียกเงินคืนก็ได้ บางครั้งรัฐไม่เสียประโยชน์อาจไม่เท่ากับประชาชนเสียประโยชน์",
"มาถึงข้อเสนอเรา เราว่าขั้นต่ำที่สุดอยากให้กู้รถประจำทางเชื่อมต่อำเภอเข้าสู่ตัวเมือง ได้แก่",
"1. สามโก้-วิเศษ-อ่างทอง",
"2. แสวงหา-โพธิ์ทอง-อ่างทอง",
"3. ไชโย-อ่างทอง-ป่าโมก",
"ขยับขึ้นมาอีกนิดเป็นขั้นต่ำคือ มีรถรอบเมืองอ่างทองรอบเล็ก รถรอบเมืองอ่างทองถนนเลี่ยงเมือง รอบเมืองป่าโมก รอบเมืองวิเศษชัยชาญ",
"ถ้าคิดตามหลักการออกแบบขนส่งสาธารณะว่า ประตูถึงประตู จริงๆเราขาดเส้นเลือดฝอยรถสองแถวที่ผ่านหน้าบ้านไปสถานีขนส่งอำเภอ แต่ก็ช่างเถอะขับมอไซ ขับรถยนต์ หรือเรียกวินมาส่งที่สถานีขนส่งเอา"
]
},
"en": {
"title": "Bus routes from the districts into the provincial town",
"tag": "A dream",
"body": [
"I was born and raised in Ang Thong, so I've watched it change — though I missed the days when public transport was booming. The older folk tell me the bus terminal used to be packed, with buses leaving every 10 minutes: Ang Thong to Phra Phutthabat, Phong Pheng, Wat Sa Kaeo, Wat Ekarat, Wat Maha Nam, Wat Phikul Thong and more. From what I can recall there were the red buses, the blue buses, the 'meat' buses, and those phantom vans, haha, that ran all the way to the Victory Monument. Then came the reorganisation, and it began to slide because people had motorbikes and cars. Then COVID arrived, and some people were so afraid of catching something they went out and bought a new car.",
"I understand today's situation well enough — getting it all back is never going to happen. When I hear academics, journalists and activists say the state has to step in, it's a bit funny. When the buses could run, the private operators did it themselves. But once the routes started losing money, it gets dumped on the state to run.",
"But that's the thing — the law does say local administrative organisations have a duty to provide public transport. I'm no expert on the law, but the thinking seems to be this: if a project racks up losses every single day, you have to keep pouring public money in every single day, the auditors may not like it, and they can even sue to claw the money back. Sometimes what the state loses isn't the same as what the public loses.",
"Now for my proposal. At the very minimum, I'd like to see buses revived to connect the districts to the provincial town:",
"1. Sam Ko–Wiset Chai Chan–Ang Thong",
"2. Sawaeng Ha–Pho Thong–Ang Thong",
"3. Chaiyo–Ang Thong–Pa Mok",
"One step up from that — still at the minimum level — a small town loop around Ang Thong, a loop around Ang Thong via the bypass, a loop around Pa Mok, and a loop around Wiset Chai Chan.",
"If you go by the principle of public transport design — door to door — what we're really missing are the capillaries: songthaews running past people's front doors to the district bus stations. But never mind. Ride a motorbike, drive a car, or call a Win rider to drop you at the terminal."
]
}
}
+19
View File
@@ -0,0 +1,19 @@
{
"date": "2026-10-05",
"th": {
"title": "สถานีขนส่งผู้โดยสารที่ไกลออกไป",
"tag": "ความกังวล",
"body": [
"เราเดินทางเข้ากรุงเทพบ่อยและได้เห็นว่าขนาดเมืองหลวง รัฐบาลยังขยับศูนย์กลางการเดินทางให้ไกลออกไป จากหมอชิตเก่า ไปหมดชิตใหม่บอกว่าจะเป็นสถานีชั่วคราวแต่เพราะปัญหาการเมืองนี่ก็ใช้มาชั่วโคตรน่าจะได้แล้ว มีข่าวจะย้ายกลับหมอชิตเก่าและขยายพื้นที่ก็ล่มตลอด สายใต้เก่า ที่เก่าจริงๆคนแถวนั้นก็บอกว่าอยู่แถวๆ MRT ไฟฉาย ปัจจุบันที่ใกล้เมืองมาก แล้วขยับไปสายใต้เก่า และขยับอีกไปสายใต้ใหม่ปัจจุบัน หรือถ้าต่างจังหวัดก็มี สถานีขนส่งผู้โดยสารจังหวัดขอนแก่น แห่งที่ 3 สถานีขนส่งผู้โดยสารจังหวัดนครนายก สถานีขนส่งผู้โดยสารจังหวัดปราจีนบุรี อยู่นอกเมือง ขนาดคนขอนแก่นฟ้องศาลปกครองยังแพ้เพราะศาลบอกว่าผลกระทบแค่คนบางกลุ่ม เราไม่ชอบเหตุผลที่ว่า ที่ดินในเมืองแพงขยายไม่ได้ รองรับการขยายตัวของเมือง รถประจำทางรุมกันอยู่จุดเดียวทำให้รถติดต้องโยนขนส่งสาธารณะไปไกลๆ ให้คนเดินทางลำบากขึ้นแล้วบอกว่าคนไทยไม่ชอบขนส่งสาธารณะ",
"ที่ยกตัวอย่างกรุงเทพและจังหวัดอื่นๆเพื่อหวังว่าสถานีขนส่งอ่างทองย้ายจากตลาดปลาริมแม่น้ำมาข้างวงเวียนปัจจุบันจะไม่ต้องย้ายไปถนนเลี่ยงเมืองเก่าหรือเส้นตัดใหม่ซ้ำรอยจังหวัดอื่นๆ"
]
},
"en": {
"title": "Bus terminals that keep moving further out",
"tag": "A worry",
"body": [
"I travel into Bangkok often, and I've seen how even the capital keeps pushing its transport hubs further out — from the old Mo Chit to the new Mo Chit, which was announced as a temporary station but, thanks to politics, has now been in use for what feels like forever. There have been reports about moving back to the old Mo Chit and expanding it, and those have collapsed every time. The old Southern Bus Terminal — the genuinely old one — people around there say it was near MRT Fai Chai, which is much closer to the city. Then it moved out to the old Southern Terminal, and then further out again to the current new one. Or take the provinces: Khon Kaen Bus Terminal 3, Nakhon Nayok Bus Terminal, Prachin Buri Bus Terminal — all outside the city. People in Khon Kaen even took it to the Administrative Court and lost, because the court said only some groups were affected. I don't like the reasoning: that land in the city is too expensive to expand, that it's about accommodating the city's growth, that buses bunching up in one spot cause traffic jams, so public transport has to be thrown far out — making it harder for travellers — and then people turn around and say Thais just don't like public transport.",
"I bring up Bangkok and the other provinces in the hope that the Ang Thong bus terminal — which moved from the fish market by the river to beside the roundabout where it is now — won't have to move yet again to the old bypass or some newly cut road, repeating what happened elsewhere."
]
}
}
+21
View File
@@ -0,0 +1,21 @@
{
"date": "2026-10-05",
"th": {
"title": "กฎหมาย 4 หมวดรถประจำทาง กับทางออกของอ่างทอง",
"tag": "ความฝัน",
"body": [
"ตามกฎหมายควบคุมการขนส่งทางบกแบ่งรถประจำทางออกเป็น 4 หมวด ได้แก่ 1.รถประจำทางในเขตเทศบาล 2.รถจากต่างจังหวัดเข้ากรุงเทพ 3.รถจากจังหวัดหนึ่งถึงอีกจังหวัดหนึ่ง 4.รถภายในจังหวัด",
"กรมการขนส่งใช้ระบบให้นิติบุคคล พวก บริษัท ห้างหุ้นส่วน หรือสหกรณ์ใครสนใจก็เข้าไปของใบอนุญาต ซึ่งหลักการนี้ก็ใช้มาตั้งแต่ ปี 2520 กว่าๆ ถึงจะออกกฎระเบียบรองๆตามสภาพบ้านเมืองแต่ปัจจุบันเราก็เห็นสภาพกันอยู่ว่ามันแย่แค่ไหน",
"อยากเสนอให้ องค์กรปกครองส่วนท้องถิ่นเข้ามาเดินรถ หมวด1 และหมวด4 ไม่ว่าจะดำเนินการเอง จ้างเหมาเอกชนหรือทำข้อตกลงสำรองจ่ายเฉพาะส่วนต่างที่เอกชน เราก็อาจจะเห็นบางจังหวัดเริ่มทำบ้างแล้ว แต่สำหรับอ่างทองจะเอาเงินจากไหนมาจัดบริการแบบนี้ ส่วนรถหมวด 2 และ 3 ถึงเราจะอยากให้อุดหนุนแต่มันก็เลยคำว่า บริการพื้นฐานไปแล้วก็คงได้แต่ส่งกำลังใจให้มีกำไรและจัดบริการดีๆ"
]
},
"en": {
"title": "The 4 bus categories — and a way forward for Ang Thong",
"tag": "A dream",
"body": [
"Under the law governing land transport, buses are divided into 4 categories: (1) buses within a municipality, (2) buses from the provinces into Bangkok, (3) buses from one province to another, and (4) buses within a province.",
"The Department of Land Transport works on a juristic-person system — companies, partnerships and cooperatives. Anyone interested applies for a licence. This principle has been in place since around 1977; the rules have been adjusted bit by bit to match the times, but today we can all see for ourselves just how bad things have become.",
"I'd like to propose that local administrative organisations step in to run the category 1 and category 4 routes — whether by operating them themselves, contracting out to the private sector, or agreeing to subsidise only the shortfall, with the private operator covering the rest. A few provinces have started doing this already. But where would Ang Thong get the money to fund a service like this? As for categories 2 and 3, even if we'd like to subsidise them, they're already beyond what counts as a basic service — so all we can do is send our encouragement for them to stay profitable and keep running a good service."
]
}
}
+86
View File
@@ -0,0 +1,86 @@
{
"101": {
"vehicle_title": "รถสองแถวประจำเส้นทาง",
"vehicle_desc": "ประมาณ 30 ที่นั่ง · ให้บริการตลอดเส้นทางอ่างทอง–ป่าโมก–อยุธยา",
"line_note": "ติดตามข่าวสาย 101 · รถออกก่อนเวลาบ่อยครั้ง · รถขาดช่วง",
"qr": "/images/qrcode/101.png"
},
"1011": {
"vehicle_title": "รถเมล์ประจำเส้นทาง",
"vehicle_desc": "รถเมล์ ประมาณ 30 ที่นั่ง รถมีเที่ยว เช้า เที่บง เย็น",
"line_note": "",
"qr": ""
},
"15": {
"vehicle_title": "รถมินิบัส 20 ที่นั่ง",
"vehicle_desc": "ปัจจุบันส่วนใหญ่วิ่งแค่ป่าโมก หมอชิตใหม่ เหลือแค่รถ เบอร์ 20 ที่กลับถึงอ่างทอง บขส.อ่างทองมีรถออกแค่เช้ามืดถึงโมงเช้า",
"line_note": "",
"qr": "/images/qrcode/15.JPG"
},
"2194": {
"vehicle_title": "รถสองแถวประจำเส้นทาง",
"vehicle_desc": "รถสองแถวเช้ามืดและเย็น ผ่านอ่างทองแค่สามแยกข้ามสะพานโผงเผงและวัดถนน",
"line_note": "",
"qr": ""
},
"2231": {
"vehicle_title": "รถสองแถวประจำเส้นทาง",
"vehicle_desc": "มีเที่ยวเดียว เช้า-เย็น",
"line_note": "",
"qr": ""
},
"324": {
"vehicle_title": "รถสองแถวประจำเส้นทาง",
"vehicle_desc": "รถมีเที่ยว เช้า อย่างเดียว วิ่งสุดสายแค่วัดไชโย",
"line_note": "",
"qr": ""
},
"464": {
"vehicle_title": "",
"vehicle_desc": "",
"line_note": "",
"qr": "/images/qrcode/464.jpeg"
},
"641": {
"vehicle_title": "",
"vehicle_desc": "",
"line_note": "",
"qr": ""
},
"8": {
"vehicle_title": "",
"vehicle_desc": "",
"line_note": "",
"qr": ""
},
"902": {
"vehicle_title": "",
"vehicle_desc": "",
"line_note": "",
"qr": "/images/qrcode/902.png"
},
"951": {
"vehicle_title": "",
"vehicle_desc": "",
"line_note": "",
"qr": ""
},
"952": {
"vehicle_title": "",
"vehicle_desc": "",
"line_note": "",
"qr": ""
},
"954": {
"vehicle_title": "",
"vehicle_desc": "",
"line_note": "",
"qr": ""
},
"999": {
"vehicle_title": "",
"vehicle_desc": "",
"line_note": "",
"qr": ""
}
}
@@ -0,0 +1,8 @@
{
"route_id": "101",
"vehicle_image": "car.jpeg",
"qr_image": "101.png",
"vehicle_title": "รถสองแถวประจำเส้นทาง",
"vehicle_desc": "ประมาณ 30 ที่นั่ง · ให้บริการตลอดเส้นทางอ่างทอง–ป่าโมก–อยุธยา",
"line_note": "ติดตามข่าวสาย 101 · รถออกก่อนเวลาบ่อยครั้ง · รถขาดช่วง"
}
@@ -0,0 +1,8 @@
{
"route_id": "1011",
"vehicle_image": "car.jpeg",
"qr_image": "",
"vehicle_title": "รถเมล์ประจำเส้นทาง",
"vehicle_desc": "รถเมล์ ประมาณ 30 ที่นั่ง รถมีเที่ยว เช้า เที่บง เย็น",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "15",
"vehicle_image": "car.jpg",
"qr_image": "15.JPG",
"vehicle_title": "รถมินิบัส 20 ที่นั่ง",
"vehicle_desc": "ปัจจุบันส่วนใหญ่วิ่งแค่ป่าโมก หมอชิตใหม่ เหลือแค่รถ เบอร์ 20 ที่กลับถึงอ่างทอง บขส.อ่างทองมีรถออกแค่เช้ามืดถึงโมงเช้า",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "2194",
"vehicle_image": "car.jpg",
"qr_image": "",
"vehicle_title": "รถสองแถวประจำเส้นทาง",
"vehicle_desc": "รถสองแถวเช้ามืดและเย็น ผ่านอ่างทองแค่สามแยกข้ามสะพานโผงเผงและวัดถนน",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "2231",
"vehicle_image": "car.jpg",
"qr_image": "",
"vehicle_title": "รถสองแถวประจำเส้นทาง",
"vehicle_desc": "มีเที่ยวเดียว เช้า-เย็น",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "324",
"vehicle_image": "car.jpg",
"qr_image": "",
"vehicle_title": "รถสองแถวประจำเส้นทาง",
"vehicle_desc": "รถมีเที่ยว เช้า อย่างเดียว วิ่งสุดสายแค่วัดไชโย",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "464",
"vehicle_image": "car.jpeg",
"qr_image": "464.jpeg",
"vehicle_title": "",
"vehicle_desc": "",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "641",
"vehicle_image": "car.jpeg",
"qr_image": "",
"vehicle_title": "",
"vehicle_desc": "",
"line_note": ""
}
+8
View File
@@ -0,0 +1,8 @@
{
"route_id": "8",
"vehicle_image": "",
"qr_image": "",
"vehicle_title": "",
"vehicle_desc": "",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "902",
"vehicle_image": "car.jpg",
"qr_image": "902.png",
"vehicle_title": "",
"vehicle_desc": "",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "951",
"vehicle_image": "car.jpg",
"qr_image": "",
"vehicle_title": "",
"vehicle_desc": "",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "952",
"vehicle_image": "car.jpg",
"qr_image": "",
"vehicle_title": "",
"vehicle_desc": "",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "954",
"vehicle_image": "",
"qr_image": "",
"vehicle_title": "",
"vehicle_desc": "",
"line_note": ""
}
@@ -0,0 +1,8 @@
{
"route_id": "999",
"vehicle_image": "",
"qr_image": "",
"vehicle_title": "",
"vehicle_desc": "",
"line_note": ""
}
+269
View File
@@ -0,0 +1,269 @@
{
"brand.subtitle": "Ang Thong Provincial Bus Terminal",
"nav.home": "Home",
"nav.stops": "Bus Stops",
"nav.routes": "Route Details",
"nav.credits": "Credits",
"nav.about": "About",
"nav.blog": "Blog",
"about.title": "About Us",
"about.brand": "When will the bus come?",
"about.lead": "Our story — read through the blocks below.",
"blog.title": "Blog",
"blog.subtitle": "News & travel know-how",
"blog.lead": "Route news, timetable updates and useful tips — switch between grid and list view.",
"blog.viewGrid": "Grid",
"blog.viewList": "List",
"blog.count": "All posts",
"blog.items": "posts",
"blog.minRead": "min read",
"blog.readMore": "Read more",
"blog.backList": "Back to all posts",
"blog.empty": "No posts yet — add files under ui/partials/blog-data/",
"blog.notFound": "Post not found",
"blog.noGeo": "Route geometry not available yet",
"blog.mapPick": "Tap a route on the map, or a row above, to see details",
"blog.mapNoOrigin": "Origin coordinates not found — check station_code under \"map\"",
"blog.mapNoRoutes": "No routes yet — add them under \"map\" → \"routes\"",
"blog.mapNoCoord": "No coordinates yet",
"blog.mapDest": "Destination",
"blog.mapVia": "Via",
"blog.mapNote": "Note",
"blog.km": "km",
"blog.min": "min",
"blog.thb": "THB",
"legend.title": "Card colours by route group",
"legend.bangkok": "Bangkok routes — blue card",
"legend.interprov": "Inter-provincial routes — purple card",
"legend.inprov": "In-province routes — pink card",
"legend.municipal": "Municipal routes — light yellow card",
"legend.empty": "No data yet — grey card showing N/A instead of a route number",
"legend.note": "Ang Thong has no group 1 (municipal) services yet, so the card is grey and shows N/A in place of the route number",
"zone.municipal": "Municipal routes",
"zone.municipalDesc": "Routes inside municipal areas",
"zone.municipalNA": "No municipal routes in Ang Thong yet",
"card.noData": "No data yet",
"route.mapDesc": "Real geometry from our GIS data · stops along the route",
"map.origin": "Origin",
"map.destination": "Destination",
"map.offline": "Offline — route only",
"map.empty": "No route geometry for this service yet",
"map.legendRoute": "Route",
"map.legendStop": "Bus stop",
"map.legendTerminal": "Bus terminal",
"map.subStop": "Boarding point (sub-stop)",
"map.viewBoardingPoints": "See boarding points for this route",
"map.legendSubStop": "Boarding point (sub-stop)",
"map.route": "Route",
"map.noStationPin": "stop coordinates not in the system yet — showing serving routes",
"map.captionRoute": "Route length {km} km · {n} stops along the route",
"map.captionStop": "Routes serving this stop: {r} · {n} stops along the route",
"map.stations": "terminals along route",
"map.stationPinned": "stop location pinned on the map",
"map.thisStop": "the stop you are viewing",
"map.legendHere": "This stop",
"map.noRoutesHere": "No routes recorded for this stop yet",
"map.servedBy": "Routes served",
"map.openInMaps": "Open in Google Maps",
"map.viewStopPage": "View this stop",
"map.km": "km",
"map.offRoute": "off route",
"map.alongRoute": "Stops along the route (km from origin)",
"map.useMyLocation": "Stops near me",
"map.locating": "Finding your location…",
"map.geoDenied": "Location permission denied — allow it in your browser and try again",
"map.noGeo": "This browser does not support geolocation",
"map.nearestTitle": "Stops closest to you",
"map.youAreHere": "Your location",
"cta.check": "Check Schedules",
"footer.menu": "Menu",
"footer.popular": "Most Viewed Routes",
"footer.popstops": "Popular Stops",
"footer.contact": "Contact",
"footer.about": "Every bus stop in Ang Thong and nearby provinces — locations and routes served.",
"footer.sponsors": "Sponsors & Partners",
"footer.sponsorsLead": "Support us at no extra cost: shop online or book bus and flight tickets through our affiliate links — you pay nothing more.",
"home.welcome": "Welcome",
"home.title1": "Ang Thong Provincial",
"home.provincePrefix": "",
"home.lead": "Browse routes, find stops, and preview a route right from this page",
"home.chooseProvince": "Select Province",
"home.chooseStation": "Select Terminal",
"share.label": "Share short link",
"share.copied": "Link copied",
"share.short": "Short link",
"share.line": "Share on LINE",
"home.stationEmpty": "— No terminals in this province —",
"home.stationEmptyHint": "No bus terminal in",
"home.stationCount": "<b>{n}</b> terminals in",
"zone.bangkok": "To Bangkok",
"zone.bangkokDesc": "Routes to Bangkok",
"zone.interprov": "Inter-province",
"zone.interprovDesc": "Routes to nearby provinces",
"zone.inprov": "Within Ang Thong",
"zone.inprovDesc": "Routes inside Ang Thong",
"card.schedule": "Schedule",
"card.nextTrip": "Next trip",
"card.noSchedule": "No schedule",
"stops.title": "Find bus stops quickly and easily",
"stops.subtitle": "All major terminals, local stops, van stations and private stops — mobile and desktop friendly",
"stops.kpi.total": "Total stops",
"stops.kpi.coverage": "Coverage",
"stops.kpi.types": "Main types",
"stops.kpi.routes": "Popular departures",
"stops.searchPh": "Search a place, e.g. Ang Thong terminal",
"stops.filterProvince": "Filter by province",
"stops.allProvinces": "All provinces",
"stops.allTypes": "All types",
"stops.mapTitle": "Stop network map",
"stops.onMap": "On map",
"stops.kpi.places": "Key places",
"stops.kpi.buses": "Busiest bus line",
"stops.unitPoints": "stops",
"stops.unitPlaces": "places",
"stops.unitTypes": "types",
"stops.unitRoutes": "highways",
"stops.highway": "Highway",
"stops.busPrefix": "Route",
"stops.viewSchedule": "View schedule for route {n}",
"stops.viewRoute": "View route {n}",
"stops.subStop": "Boarding point (sub-stop)",
"stops.noOffset": "No travel time from the first stop yet",
"stops.noBusLine": "No bus line listed",
"stops.modeCode": "Search by stop code",
"stops.modePlace": "Search by place name",
"stops.codePh": "3+000",
"stops.codeHint": "Type 4 digits and the + sign is added automatically (e.g. 3000 → 3+000)",
"stops.codeHintBox": "Type digits in the boxes — empty boxes are filled with 0 automatically. For 4-digit codes such as 8+591, enter 08+591",
"stops.codeFull": "Stop code:",
"stops.placePh": "Ang Thong Hospital",
"stops.placeHint": "Type a place name such as a hospital or land office, then pick a match",
"stops.padDelete": "Del",
"stops.reset": "Clear",
"stops.section": "Section",
"stops.showing": "Showing {a} of {b} stops",
"stops.showAll": "Show all stops",
"stops.noResult": "No stops match your search",
"stops.loading": "Loading stop data…",
"type.terminal": "Passenger terminal",
"type.station": "Major stop",
"type.pickup": "Pickup point",
"type.market": "Market / community",
"type.landmark": "Landmark",
"route.badge": "Inter-province route",
"route.kpiProvince": "provinces",
"route.kpiStops": "stops",
"route.kpiTrips": "trips",
"route.overview": "Route overview",
"route.contact": "Contact operator",
"route.call": "Call us",
"route.openLink": "Open link",
"route.zoomQr": "Enlarge QR to scan",
"route.copyLink": "Copy link",
"route.copied": "Copied",
"common.close": "Close",
"route.link.facebook": "Facebook",
"route.link.line": "LINE Official",
"route.link.www": "Website",
"route.vehicle": "Route vehicle",
"route.mapTitle": "Route map",
"route.photos": "Buses on this network",
"route.stopsTitle": "Stops along the route",
"route.scheduleTitle": "Schedule",
"route.selectRoute": "Select route",
"route.selectStation": "Select station",
"route.origin": "Origin",
"route.transfer": "Intermediate stop",
"route.intermediate": "Intermediate stop",
"route.pass": "Passing",
"route.destination": "Destination",
"route.direction": "All directions",
"route.empty": "No schedule data yet",
"route.noSchedule": "— No trips yet —",
"route.seeOther": "Other routes",
"stop.code": "Code:",
"stop.nearby": "Nearby",
"stop.routes": "Routes through this stop",
"stop.searchRoute": "Search route or destination",
"stop.showing": "Showing {a} of {b} routes",
"stop.mapInfo": "Map & stop info",
"stop.nextArrival": "Next arrival",
"stop.subGeneric": "A stop in {city} · see every route that passes here on one page",
"stop.thisStop": "this stop",
"stop.statRoutes": "Routes",
"stop.statTrips": "Departures/day",
"stop.statHours": "Service hours",
"stop.statType": "Type",
"stop.nRoutes": "{n} routes",
"stop.tripsPerDay": "{n} trips/day",
"stop.tripsPerDay1": "{n} trip/day",
"stop.nRoutes1": "{n} route",
"stop.noRoutes": "No routes recorded for this stop yet",
"stop.noTimes": "No departure times for this stop yet",
"stop.tomorrow": "Tomorrow",
"stop.nextAt": "Next",
"stop.notFound": "Stop not found",
"stop.notFoundSub": "No stop with code “{code}” — check the code or go back to the stop list",
"stop.nearbySub": "Places of interest and stops to wait for your bus",
"stop.otherStopsTitle": "Other boarding points · route {n} ({m} stops)",
"stop.otherMore": "(+{n} stops)",
"stop.otherStopsAll": "All other boarding points ({m} stops)",
"stop.noCoord": "No coordinates yet",
"stop.open": "Open",
"stop.close": "Close",
"stop.nowAtStop": "Current time at this stop",
"stop.autoNext": "Next departure is calculated automatically",
"common.backHome": "← Back to home",
"common.backStops": "← Back to stops",
"common.search": "Search",
"common.details": "Details",
"common.bus": "Bus",
"common.phone": "Call:",
"common.noWebsite": "No website listed",
"type.van": "Van station",
"type.local": "Local stop",
"type.busstop": "Bus shelter / stop",
"type.startlocalpoint": "Local route origin",
"type.other": "Other boarding points",
"type.marketOpt": "Market / private stop",
"route.mapTitleN": "Route {n} map",
"stop.viewScheduleN": "View schedule of route {n}",
"stop.openRoute": "Open route details",
"credits.title": "Credits & Sources",
"credits.icons": "Icons — Lucide",
"credits.fonts": "Fonts — Google Fonts",
"credits.map": "Maps",
"credits.photos": "Bus photo credits",
"credits.photosNote": "For all routes not listed here, our thanks go out to everyone as well.",
"common.back": "Back",
"check.scheduleAll": "Departure times at every stop",
"check.title": "Departure Schedule",
"check.lead": "Pick a route to see every stop’s departures on one page",
"check.kpiStops": "Main stops",
"check.kpiProvince": "Provinces",
"check.kpiTrips": "Trips per day",
"check.kpiNext": "Next departure",
"check.direction": "Direction",
"check.atStop": "Departures at",
"check.dayWeekday": "Weekday timetable (Mon–Fri)",
"check.dayHoliday": "Weekend/holiday timetable",
"check.dayMixed": "This direction mixes weekday and holiday times — not split by day yet",
"check.dayUnknown": "Timetable day not specified (showing all days)",
"check.dayOfWeek": "today is",
"time.estimated": "~ Estimated from the origin (not an operator timetable)",
"time.derived": "~ Computed timetable (from {base} {n} min) — may change with real traffic conditions",
"check.now": "Current time",
"check.updatedAgo": "Last updated {ago}",
"check.agoToday": "today",
"check.agoYesterday": "yesterday",
"check.agoDays": "{n} days ago",
"check.agoWeeks": "{n} weeks ago",
"check.agoMonths": "{n} months ago",
"check.agoYears": "{y} years ago",
"check.agoYearsMonths": "{y} years {m} months ago",
"check.nextAt": "Next departure",
"check.noMoreToday": "No departures left today",
"check.stopsCount": "stops",
"check.toStopDetail": "View stop detail",
"common.routes": "routes"
}
+269
View File
@@ -0,0 +1,269 @@
{
"brand.subtitle": "สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง",
"nav.home": "หน้าแรก",
"nav.stops": "ป้ายหยุดรถ",
"nav.routes": "รายละเอียดสายรถ",
"nav.credits": "เครดิต",
"nav.about": "เกี่ยวกับเรา",
"nav.blog": "บ่นไปเรื่อย",
"about.title": "เกี่ยวกับเรา",
"about.brand": "เมื่อไหร่รถจะมา",
"about.lead": "เรื่องราวและที่มาของเว็บนี้ — อ่านเรียงตามบล็อกด้านล่างได้เลย",
"blog.title": "บ่นไปเรื่อย",
"blog.subtitle": "หาอะไรอ่านรอรถ",
"blog.lead": "ความรู้สึกผมตั้งแต่รวบรวมข้อมูล ปัญหาที่เจอ บ่นไปเรื่อย",
"blog.viewGrid": "ตาราง",
"blog.viewList": "รายการ",
"blog.count": "บ่นไปเรื่อยทั้งหมด",
"blog.items": "เรื่อง",
"blog.minRead": "นาที",
"blog.readMore": "อ่านต่อ",
"blog.backList": "กลับไปรายการบ่นไปเรื่อย",
"blog.empty": "ยังไม่มีเรื่องบ่น — เพิ่มไฟล์ใน ui/partials/blog-data/ ได้เลย",
"blog.notFound": "ไม่พบเรื่องบ่นนี้",
"blog.noGeo": "ยังไม่มีข้อมูลเส้นทางสายนี้",
"blog.mapPick": "กดเส้นทางบนแผนที่ หรือแตะรายการด้านบน เพื่อดูรายละเอียด",
"blog.mapNoOrigin": "ไม่พบพิกัดต้นทาง — ตรวจ station_code ในคีย์ \"map\"",
"blog.mapNoRoutes": "ยังไม่มีเส้นทางในโครง — เพิ่มในคีย์ \"map\" → \"routes\"",
"blog.mapNoCoord": "ยังไม่ใส่พิกัด",
"blog.mapDest": "ปลายทาง",
"blog.mapVia": "ผ่าน",
"blog.mapNote": "หมายเหตุ",
"blog.km": "กม.",
"blog.min": "นาที",
"blog.thb": "บาท",
"legend.title": "คำอธิบายสีการ์ดตามหมวดเส้นทาง",
"legend.bangkok": "หมวดเส้นทางเข้ากรุงเทพฯ — การ์ดสีน้ำเงิน",
"legend.interprov": "หมวดเส้นทางระหว่างจังหวัด — การ์ดสีม่วง",
"legend.inprov": "หมวดเส้นทางภายในจังหวัด — การ์ดสีชมพู",
"legend.municipal": "หมวดเส้นทางภายในเทศบาล — การ์ดสีเหลืองอ่อน",
"legend.empty": "ยังไม่มีข้อมูล — การ์ดสีเทา แสดง N/A แทนเลขสาย",
"legend.note": "อ่างทองยังไม่มีรถหมวด 1 (เส้นทางภายในเทศบาล) จึงแสดงการ์ดสีเทาและใช้ N/A แทนตัวเลขสายเส้นทาง",
"zone.municipal": "หมวดเส้นทางภายในเทศบาล",
"zone.municipalDesc": "เส้นทางภายในเขตเทศบาล",
"zone.municipalNA": "ยังไม่มีเส้นทางหมวดเทศบาลในอ่างทอง",
"card.noData": "ยังไม่มีข้อมูล",
"route.mapDesc": "เส้นทางจริงจากข้อมูล GIS · ป้ายหยุดรถตามเส้นทาง",
"map.origin": "ต้นทาง",
"map.destination": "ปลายทาง",
"map.offline": "ออฟไลน์ — แสดงเฉพาะเส้นทาง",
"map.empty": "ยังไม่มีข้อมูลเส้นทางสายนี้ในระบบ",
"map.legendRoute": "เส้นทาง",
"map.legendStop": "ป้ายหยุดรถ",
"map.legendTerminal": "สถานีขนส่ง",
"map.subStop": "จุดขึ้นรถ (จุดย่อย)",
"map.viewBoardingPoints": "ดูจุดขึ้นรถของสายนี้",
"map.legendSubStop": "จุดขึ้นรถ (จุดย่อย)",
"map.route": "สาย",
"map.noStationPin": "พิกัดป้ายนี้ยังไม่มีในระบบ — แสดงเส้นทางที่ผ่าน",
"map.captionRoute": "ความยาวเส้นทาง {km} กม. · ป้ายตามเส้นทาง {n} แห่ง",
"map.captionStop": "เส้นทางที่ผ่านป้ายนี้ {r} · ป้ายตามเส้นทาง {n} แห่ง",
"map.stations": "สถานีขนส่งตามเส้นทาง",
"map.stationPinned": "ปักหมุดตำแหน่งป้ายแล้ว",
"map.thisStop": "ป้ายที่กำลังดูอยู่",
"map.legendHere": "ป้ายที่กำลังดู",
"map.noRoutesHere": "ยังไม่มีข้อมูลสายรถที่ผ่านป้ายนี้ในระบบ",
"map.servedBy": "สายที่ผ่าน",
"map.openInMaps": "เปิดใน Google Maps",
"map.viewStopPage": "ดูรายละเอียดป้ายนี้",
"map.km": "กม.",
"map.offRoute": "นอกเส้นทาง",
"map.alongRoute": "จุดจอดตามเส้นทาง (กม. จากต้นทาง)",
"map.useMyLocation": "ป้ายใกล้ฉัน",
"map.locating": "กำลังหาตำแหน่งของคุณ…",
"map.geoDenied": "ไม่ได้รับอนุญาตให้เข้าถึงตำแหน่ง — เปิดสิทธิ์ตำแหน่งในเบราว์เซอร์แล้วลองใหม่",
"map.noGeo": "เบราว์เซอร์นี้ไม่รองรับการระบุตำแหน่ง",
"map.nearestTitle": "ป้ายที่ใกล้คุณที่สุด",
"map.youAreHere": "ตำแหน่งของคุณ",
"cta.check": "เช็กเวลาเดินรถ",
"footer.menu": "เมนู",
"footer.popular": "สายที่เปิดดูบ่อย",
"footer.popstops": "ป้ายยอดนิยม",
"footer.contact": "ติดต่อ",
"footer.about": "รวมป้ายขึ้น-ลงรถทุกจุดในจังหวัดอ่างทองและจังหวัดใกล้เคียง พร้อมตำแหน่งและสายรถที่ผ่าน",
"footer.sponsors": "ผู้สนับสนุน & พาร์ทเนอร์",
"footer.sponsorsLead": "ร่วมเป็นผู้สนับสนุนเราได้ เมื่อซื้อของออนไลน์ หรือซื้อตั๋วรถทัวร์ เครื่องบิน ออนไลน์กดเลือกสินค้า หรือบริการผ่านลิงค์นายหน้าของเราไม่มีค่าใช้จ่ายเพิ่ม",
"home.welcome": "ยินดีต้อนรับ",
"home.title1": "สถานีขนส่งผู้โดยสารภายใน",
"home.provincePrefix": "จังหวัด",
"home.lead": "ดูสายรถ, ค้นหาป้าย และเปิดตัวอย่างเส้นทางได้ทันทีจากหน้าแรก",
"home.chooseProvince": "เลือกจังหวัด",
"home.chooseStation": "เลือกสถานีขนส่งผู้โดยสาร",
"share.label": "แชร์ลิงก์สั้น",
"share.copied": "คัดลอกลิงก์แล้ว",
"share.short": "ลิงก์สั้น",
"share.line": "แชร์ผ่าน LINE",
"home.stationEmpty": "— ยังไม่มีสถานีขนส่งในจังหวัดนี้ —",
"home.stationEmptyHint": "ยังไม่มีสถานีขนส่งผู้โดยสารในจังหวัด",
"home.stationCount": "มี <b>{n}</b> สถานีขนส่งในจังหวัด",
"zone.bangkok": "หมวดเส้นทางเข้ากรุงเทพฯ",
"zone.bangkokDesc": "เส้นทางเชื่อมต่อกรุงเทพมหานคร",
"zone.interprov": "หมวดเส้นทางระหว่างจังหวัด",
"zone.interprovDesc": "เส้นทางเชื่อมต่อจังหวัดใกล้เคียง",
"zone.inprov": "หมวดเส้นทางภายในจังหวัด",
"zone.inprovDesc": "เส้นทางภายในจังหวัดอ่างทอง",
"card.schedule": "ดูตาราง",
"card.nextTrip": "เที่ยวถัดไป",
"card.noSchedule": "ยังไม่มีตาราง",
"stops.title": "ค้นหาป้ายหยุดรถแบบรวดเร็ว",
"stops.subtitle": "รวมสถานีขนส่งหลัก จุดจอดท้องถิ่น สถานีรถตู้ และจุดเอกชน — ใช้งานได้ทั้งบนมือถือและเดสก์ท็อป",
"stops.kpi.total": "จำนวนจุดทั้งหมด",
"stops.kpi.coverage": "ครอบคลุม",
"stops.kpi.types": "ประเภทหลัก",
"stops.kpi.routes": "เที่ยวใช้งานบ่อย",
"stops.searchPh": "ค้นหาชื่อสถานที่ เช่น บขส.อ่างทอง",
"stops.filterProvince": "กรองตามจังหวัด",
"stops.allProvinces": "ทุกจังหวัด",
"stops.allTypes": "ทุกประเภท",
"stops.mapTitle": "แผนที่ย่อของเครือข่ายป้าย",
"stops.onMap": "บนแผนที่",
"stops.kpi.places": "สถานที่สำคัญ",
"stops.kpi.buses": "สายที่ผ่านมากสุด",
"stops.unitPoints": "จุด",
"stops.unitPlaces": "แห่ง",
"stops.unitTypes": "ประเภท",
"stops.unitRoutes": "สายทางหลวง",
"stops.highway": "ทางหลวง",
"stops.busPrefix": "สาย",
"stops.viewSchedule": "ดูตารางเวลาสาย {n}",
"stops.viewRoute": "ดูรายละเอียดสาย {n}",
"stops.subStop": "จุดขึ้นรถ (จุดย่อย)",
"stops.noOffset": "ยังไม่ระบุเวลาเดินทางจากจุดแรก",
"stops.noBusLine": "ยังไม่ระบุสายรถ",
"stops.modeCode": "ค้นหาด้วยรหัสป้าย",
"stops.modePlace": "ค้นหาด้วยชื่อสถานที่",
"stops.codePh": "3+000",
"stops.codeHint": "พิมพ์ตัวเลข 4 หลัก ระบบจะเติมเครื่องหมาย + ให้อัตโนมัติ (เช่น 3000 → 3+000)",
"stops.codeHintBox": "พิมพ์ตัวเลขในช่อง ระบบจะเติม 0 ให้อัตโนมัติเมื่อเว้นว่าง และถ้าเจอรหัส 4 หลัก เช่น 8+591 ให้กรอก 08+591",
"stops.codeFull": "รหัสป้าย:",
"stops.placePh": "โรงพยาบาลอ่างทอง",
"stops.placeHint": "พิมพ์ชื่อสถานที่สำคัญ เช่น โรงพยาบาล สำนักงานที่ดิน แล้วเลือกรายการที่ตรงกัน",
"stops.padDelete": "ลบ",
"stops.reset": "ล้างค่า",
"stops.section": "ตอน",
"stops.showing": "แสดง {a} จาก {b} ป้าย",
"stops.showAll": "แสดงป้ายทั้งหมด",
"stops.noResult": "ไม่พบป้ายหยุดรถที่ตรงกับเงื่อนไข",
"stops.loading": "กำลังโหลดข้อมูลป้าย…",
"type.terminal": "สถานีขนส่งผู้โดยสาร",
"type.station": "ป้ายหลัก",
"type.pickup": "จุดรับส่ง",
"type.market": "ตลาด/ชุมชน",
"type.landmark": "จุดสังเกต",
"route.badge": "สายระหว่างจังหวัด",
"route.kpiProvince": "จังหวัด",
"route.kpiStops": "จุดจอด",
"route.kpiTrips": "รอบเวลา",
"route.overview": "ภาพรวมของสาย",
"route.contact": "ติดต่อผู้ประกอบการ",
"route.call": "โทรสอบถาม",
"route.openLink": "เปิดลิงก์",
"route.zoomQr": "ขยาย QR ให้ใหญ่ (กดเพื่อสแกน)",
"route.copyLink": "คัดลอกลิงก์",
"route.copied": "คัดลอกแล้ว",
"common.close": "ปิด",
"route.link.facebook": "Facebook",
"route.link.line": "LINE Official",
"route.link.www": "เว็บไซต์",
"route.vehicle": "รถประจำสาย",
"route.mapTitle": "เส้นทางเดินรถ",
"route.photos": "รูปรถประจำเส้นทางในเครือข่าย",
"route.stopsTitle": "จุดจอดสำคัญบนเส้นทาง",
"route.scheduleTitle": "ตารางเวลา",
"route.selectRoute": "เลือกสายรถ",
"route.selectStation": "เลือกสถานี",
"route.origin": "ต้นทาง",
"route.transfer": "กลางทาง",
"route.intermediate": "จุดจอดกลางทาง",
"route.pass": "ผ่านทาง",
"route.destination": "ปลายทาง",
"route.direction": "ทุกทิศทาง",
"route.empty": "ยังไม่มีข้อมูลตารางเวลา",
"route.noSchedule": "— ยังไม่มีรอบ —",
"route.seeOther": "เลือกสายรถอื่น",
"stop.code": "รหัส:",
"stop.nearby": "ใกล้เคียงป้าย",
"stop.routes": "สายรถที่ผ่านจุดนี้",
"stop.searchRoute": "ค้นหาสายรถหรือปลายทาง",
"stop.showing": "แสดง {a} จาก {b} สาย",
"stop.mapInfo": "แผนที่และข้อมูลป้าย",
"stop.nextArrival": "เที่ยวถัดไป",
"stop.subGeneric": "จุดจอดใน{city} · ดูเวลารถทุกสายที่ผ่านป้ายนี้ได้ในหน้าเดียว",
"stop.thisStop": "ป้ายนี้",
"stop.statRoutes": "จำนวนสายรถ",
"stop.statTrips": "เที่ยวต่อวัน",
"stop.statHours": "เวลาบริการ",
"stop.statType": "ประเภท",
"stop.nRoutes": "{n} สาย",
"stop.tripsPerDay": "{n} รอบ/วัน",
"stop.tripsPerDay1": "{n} รอบ/วัน",
"stop.nRoutes1": "{n} สาย",
"stop.noRoutes": "ยังไม่มีสายรถที่บันทึกว่าผ่านป้ายนี้",
"stop.noTimes": "ยังไม่มีข้อมูลเวลาเดินรถที่ป้ายนี้",
"stop.tomorrow": "พรุ่งนี้",
"stop.nextAt": "ถัดไป",
"stop.notFound": "ไม่พบป้ายนี้",
"stop.notFoundSub": "ไม่พบรหัสป้าย “{code}” ในระบบ — ตรวจรหัสหรือกลับไปหน้ารายการป้าย",
"stop.nearbySub": "สถานที่น่าสนใจและจุดแวะระหว่างรอรถ",
"stop.otherStopsTitle": "จุดขึ้นรถประจำทางอื่นๆ · สาย {n} ({m} จุด)",
"stop.otherMore": "(+{n} จุด)",
"stop.otherStopsAll": "จุดขึ้นรถประจำทางอื่นๆ ทั้งหมด ({m} จุด)",
"stop.noCoord": "ยังไม่มีพิกัด",
"stop.open": "เปิด",
"stop.close": "ปิด",
"stop.nowAtStop": "เวลาปัจจุบัน ณ ป้ายนี้",
"stop.autoNext": "กำลังคำนวณเที่ยวถัดไปอัตโนมัติ",
"common.backHome": "← กลับหน้าแรก",
"common.backStops": "← กลับไปยังรายการป้าย",
"common.search": "ค้นหา",
"common.details": "ดูรายละเอียด",
"common.bus": "รถบัส",
"common.phone": "โทร:",
"common.noWebsite": "ยังไม่ระบุเว็บไซต์",
"type.van": "สถานีรถตู้",
"type.local": "จุดจอดท้องถิ่น",
"type.busstop": "ศาลารอรถ หรือป้ายหยุดรถ",
"type.startlocalpoint": "ต้นทางรถสายท้องถิ่น",
"type.other": "จุดขึ้นรถประจำทางอื่นๆ",
"type.marketOpt": "ตลาด/จุดเอกชน",
"route.mapTitleN": "เส้นทางเดินรถสาย {n}",
"stop.viewScheduleN": "ดูตารางเวลาสายรถ {n}",
"stop.openRoute": "เปิดหน้ารายละเอียดสายรถนี้",
"credits.title": "เครดิตและแหล่งที่มา",
"credits.icons": "ไอคอน — Lucide",
"credits.fonts": "ฟอนต์ — Google Fonts",
"credits.map": "แผนที่",
"credits.photos": "ขอขอบคุณภาพรถประจำทาง",
"credits.photosNote": "และสายอื่น ๆ ที่ไม่ได้ระบุ ขอขอบคุณมา ณ ที่นี้",
"common.back": "ย้อนกลับ",
"check.scheduleAll": "ตารางเวลาเดินรถทุกจุดจอด",
"check.title": "ตารางเวลาเดินรถ",
"check.lead": "เลือกสายรถ แล้วดูรอบรถทุกจุดจอดในหน้าเดียว",
"check.kpiStops": "จุดจอดหลัก",
"check.kpiProvince": "จังหวัดที่ผ่าน",
"check.kpiTrips": "รอบต่อวัน",
"check.kpiNext": "รอบถัดไป",
"check.direction": "ทิศทาง",
"check.atStop": "ตารางเดินรถ ณ",
"time.derived": "~ ตารางจากการคำนวณ (จาก {base} {n} นาที) — อาจเปลี่ยนแปลงตามการจราจรจริง",
"check.dayWeekday": "ตารางวันทำงาน (จ–ศ)",
"check.dayHoliday": "ตารางวันหยุด (ส–อา/นักขัตฤกษ์)",
"check.dayMixed": "ทิศนี้มีทั้งตารางวันทำงานและวันหยุดในตัวเดียวกัน — ยังไม่แยกตามวัน",
"check.dayUnknown": "ยังไม่ระบุวันของตาราง (แสดงทุกวัน)",
"check.dayOfWeek": "วันนี้",
"time.estimated": "~ เวลาคำนวณจากต้นทาง (ประมาณ — ไม่ใช่ตารางของผู้ประกอบการ)",
"check.now": "เวลาปัจจุบัน",
"check.updatedAgo": "อัปเดตล่าสุด {ago}",
"check.agoToday": "วันนี้",
"check.agoYesterday": "เมื่อวาน",
"check.agoDays": "{n} วันที่แล้ว",
"check.agoWeeks": "{n} สัปดาห์ที่แล้ว",
"check.agoMonths": "{n} เดือนที่แล้ว",
"check.agoYears": "{y} ปีที่แล้ว",
"check.agoYearsMonths": "{y} ปี {m} เดือนที่แล้ว",
"check.nextAt": "เที่ยวถัดไป",
"check.noMoreToday": "ไม่มีรถเหลือในวันนี้แล้ว",
"check.stopsCount": "จุดจอด",
"check.toStopDetail": "ไปหน้ารายละเอียดจุดจอด",
"common.routes": "เส้นทาง"
}
File diff suppressed because it is too large. Load diff
+57
View File
@@ -0,0 +1,57 @@
{
"8": {
"13": 197.42,
"6": 0.01
},
"15": {
"1": 0.02,
"2": 14.32,
"6": 109.52
},
"101": {
"3": 39.76,
"1": 0.02,
"2": 14.39
},
"324": {
"1": 29.52,
"8": 9.76
},
"464": {
"9": 0.0,
"10": 103.15,
"1": 44.95
},
"641": {
"1": 0.0,
"7": 43.53
},
"902": {
"1": 0.0,
"6": 100.28,
"15": 77
},
"951": {
"9": 0.0,
"20": 42.25
},
"952": {
"12": 129.46
},
"954": {
"8": 0.0
},
"1011": {
"1": 36.02,
"8": 0.36
},
"2194": {
"8": 1.11,
"4": 40.84
},
"2231": {
"1": 0.0,
"8": 20.13
}
}
+47
View File
@@ -0,0 +1,47 @@
import busstops from "@/data/network/busstop_list.json";
export type BusStop = {
route_code: string;
section_code: string;
route_name: string;
kilometer: string; // e.g. "36+020"
position: string;
type: string;
latitude: number;
longitude: number;
"buses-line": number[];
};
/** "36+020" → "36020" (รหัสป้าย 5 หลักตาม design) */
export function pad5(km: string): string {
return km.replace("+", "");
}
export function allBusStops(): BusStop[] {
return busstops as BusStop[];
}
/** ค้นป้ายทางหลวงด้วยรหัส 5 หลัก */
export function findBusStopByCode(code: string): BusStop | undefined {
return (busstops as BusStop[]).find((b) => pad5(b.kilometer) === code);
}
/** ระยะทางแบบ haversine (เมตร) */
export function haversineM(lat1: number, lng1: number, lat2: number, lng2: number): number {
const R = 6371000;
const toRad = (d: number) => (d * Math.PI) / 180;
const dLat = toRad(lat2 - lat1);
const dLng = toRad(lng2 - lng1);
const a =
Math.sin(dLat / 2) ** 2 +
Math.cos(toRad(lat1)) * Math.cos(toRad(lat2)) * Math.sin(dLng / 2) ** 2;
return 2 * R * Math.asin(Math.sqrt(a));
}
/** ป้ายทางหลวงที่ใกล้จุดพิกัดมากสุด N อัน (เรียงตามระยะ) */
export function nearestBusStops(lat: number, lng: number, limit = 8): { stop: BusStop; distM: number }[] {
return (busstops as BusStop[])
.map((stop) => ({ stop, distM: haversineM(lat, lng, stop.latitude, stop.longitude) }))
.sort((a, b) => a.distM - b.distM)
.slice(0, limit);
}
+15
View File
@@ -0,0 +1,15 @@
import captions from "@/data/captions-index.json";
export type RouteCaption = {
vehicle_title: string;
vehicle_desc: string;
line_note: string;
qr: string; // e.g. "/images/qrcode/101.png" ("" ถ้าไม่มี)
};
/** caption รถ/QR จาก design (resource/data/captions + .image/qrcode) */
export function captionFor(routeId: string): RouteCaption | undefined {
const c = (captions as Record<string, RouteCaption>)[String(routeId)];
if (!c) return undefined;
return c.vehicle_title || c.vehicle_desc || c.line_note || c.qr ? c : undefined;
}
+26
View File
@@ -0,0 +1,26 @@
import fs from "node:fs";
import path from "node:path";
/** Real route polylines from the design repo (`resource/data/geojson-web`). */
const DIR = path.join(process.cwd(), "public", "data", "geojson-web");
/** Read `<routeId>.geojson` and return a Leaflet [lat,lng] path, or null. */
export function routePath(routeId: string): [number, number][] | null {
try {
const gj = JSON.parse(fs.readFileSync(path.join(DIR, `${routeId}.geojson`), "utf8"));
const out: [number, number][] = [];
const push = (lng: number, lat: number) => out.push([lat, lng]);
for (const feat of gj.features ?? []) {
const g = feat?.geometry;
if (!g) continue;
if (g.type === "LineString") {
for (const [lng, lat] of g.coordinates) push(lng, lat);
} else if (g.type === "MultiLineString") {
for (const line of g.coordinates) for (const [lng, lat] of line) push(lng, lat);
}
}
return out.length > 0 ? out : null;
} catch {
return null;
}
}
+31
View File
@@ -0,0 +1,31 @@
import th from "@/data/locales/th.json";
import en from "@/data/locales/en.json";
export type Lang = "th" | "en";
const DICTS: Record<Lang, Record<string, string>> = {
th: th as Record<string, string>,
en: en as Record<string, string>,
};
/** แปลข้อความตามคีย์ (จาก design locales/th.json + en.json) */
export function t(
key: string,
lang: Lang,
vars?: Record<string, string | number>,
): string {
let s = DICTS[lang]?.[key] ?? DICTS.th[key] ?? key;
if (vars) {
for (const [k, v] of Object.entries(vars)) {
s = s.replace(new RegExp(`\\{${k}\\}`, "g"), String(v));
}
}
return s;
}
/** อ่าน lang จากคุกกี้ (server-side) */
export function langFromCookie(cookieHeader: string | null | undefined): Lang {
if (!cookieHeader) return "th";
const m = cookieHeader.match(/(?:^|;\s*)lang=(th|en)\b/);
return m ? (m[1] as Lang) : "th";
}
+66
View File
@@ -0,0 +1,66 @@
/**
* Static design assets from `web-at-transit-mock/.image`
* (copied to `frontend/public/images`).
*
* Every image resolves offline — no backend `/files` proxy needed for
* brand/route/stop/partner visuals. Backend-uploaded images remain the
* fallback only where the design has no matching asset.
*/
const IMG = "/images";
/** Route vehicle/hero photos keyed by `route_id` (subset that exists in design). */
const ROUTE_PHOTOS: Record<string, { hero?: string; car?: string }> = {
"101": { hero: `${IMG}/routes/101/hero.jpeg`, car: `${IMG}/routes/101/car.jpeg` },
"1011": { hero: `${IMG}/routes/1011/hero.jpeg`, car: `${IMG}/routes/1011/car.jpeg` },
"15": { hero: `${IMG}/routes/15/hero.jpg`, car: `${IMG}/routes/15/car.jpg` },
"2194": { car: `${IMG}/routes/2194/car.jpg` },
"2231": { car: `${IMG}/routes/2231/car.jpg` },
"324": { hero: `${IMG}/routes/324/hero.jpg`, car: `${IMG}/routes/324/car.jpg` },
"464": { car: `${IMG}/routes/464/car.jpeg` },
"641": { car: `${IMG}/routes/641/car.jpeg` },
"902": { hero: `${IMG}/routes/902/hero.jpg`, car: `${IMG}/routes/902/car.jpg` },
"951": { car: `${IMG}/routes/951/car.jpg` },
"952": { hero: `${IMG}/routes/952/hero.webp`, car: `${IMG}/routes/952/car.webp` },
};
/** Stop photos keyed by code (pad5 kilometer markers in the design). */
const STOP_PHOTOS: Record<string, string> = {
"36020": `${IMG}/stops/36020.jpg`,
"39321": `${IMG}/stops/39321.jpg`,
"42110": `${IMG}/stops/42110.jpg`,
"42250": `${IMG}/stops/42250.jpg`,
"54950": `${IMG}/stops/54950.jpg`,
};
export const LOGO = `${IMG}/icons/minibus-512x512.png`;
export const HERO_MAP = `${IMG}/network/overview-map.png`;
/** Partner / sponsor logos (footer + home marquee), from `.image/partners`. */
export const PARTNERS: { id: string; label: string; src: string }[] = [
{ id: "7-11", label: "7-Eleven", src: `${IMG}/partners/7-11.png` },
{ id: "shopee", label: "Shopee", src: `${IMG}/partners/shopee.png` },
{ id: "lazada", label: "Lazada", src: `${IMG}/partners/lazada.png` },
{ id: "airasia-move", label: "airasia MOVE", src: `${IMG}/partners/airasia-move.png` },
{ id: "busonlineticket", label: "busonlineticket", src: `${IMG}/partners/busonlineticket.png` },
{ id: "trip", label: "Trip.com", src: `${IMG}/partners/trip.jpg` },
{ id: "truck2hand", label: "truck2hand", src: `${IMG}/partners/truck2hand.png` },
{ id: "tcl999-angthong", label: "ทีซีแอล 999 อ่างทอง", src: `${IMG}/partners/tcl999-angthong.jpg` },
{ id: "bus-pingraow", label: "รถบัสปิ่นเกล้า", src: `${IMG}/partners/bus-pingraow.jpg` },
];
/** Resolve a route photo URL (hero preferred, car as fallback). Returns null if none. */
export function routePhoto(
routeId: string,
kind: "hero" | "car" = "car",
): string | null {
const p = ROUTE_PHOTOS[String(routeId)];
if (!p) return null;
if (kind === "hero") return p.hero ?? p.car ?? null;
return p.car ?? p.hero ?? null;
}
/** Resolve a stop photo URL by code. Returns null if the design has no asset. */
export function stopPhoto(code: string): string | null {
return STOP_PHOTOS[String(code)] ?? null;
}
+8
View File
@@ -0,0 +1,8 @@
import km from "@/data/network/stop-km.json";
/** ระยะทาง (กม.) ของจุดจอดจากต้นทาง (design: stop-km.json route_id → station_id → km) */
export function kmFor(routeId: string, stationId: number): number | null {
const m = (km as Record<string, Record<string, number>>)[String(routeId)];
const v = m?.[String(stationId)];
return typeof v === "number" ? v : null;
}