Files
web-at-transit/frontend/public/resource/data/stations.json
T
itmeadmin 138a3d15d8 พอร์ต UI จาก web-at-transit-mock เข้า Next.js + data sync เข้า Postgres/SeaweedFS
- 8 หน้า (home/stops/routes/stop/check/blog/about/credits) แปลง partials → React component ตรง mock
- ตรรกะพอร์ตเป็น src/lib/ui/*.ts (mount()) + runtime/PageRuntime
- CSS: base + pages/*.css import ต่อ route (คงลำดับ cascade ของ mock)
- asset/content: public/{image,resource/data,content,locales,vendor}
- แก้ path รูปไทล์พาร์ทเนอร์ (.image → /image) + fallback absolute
- ลบ UI เดิมที่ไม่ตรง mock (expanded/stops details/old components/globals.css)
- script/sync_data_to_postgres.mjs + sync_images_to_storage.mjs (dry-run/--apply, backup)
- docs/UI-PORT.md + DESIGN.md + README
2026-10-23 15:50:00 +07:00

152 lines
5.5 KiB
JSON

{
"stations": [
{
"station_id": 1,
"station_code": "at_main_terminal",
"station_name_th": "บขส.อ่างทอง",
"city_th": "เมืองอ่างทอง",
"province_th": "อ่างทอง",
"station_type": "main_terminal",
"latitude": 14.594892813219857,
"longitude": 100.45160878714961
},
{
"station_id": 2,
"station_code": "pa_mok_terminal",
"station_name_th": "สถานีขนส่งป่าโมก",
"city_th": "ป่าโมก",
"province_th": "อ่างทอง",
"station_type": "local_terminal",
"latitude": 14.494620342173755,
"longitude": 100.44663039105356
},
{
"station_id": 3,
"station_code": "route_101_stop_ayutthaya",
"station_name_th": "ท่ารถสองแถว อยุธยา-ป่าโมก-อ่างทอง",
"city_th": "พระนครศรีอยุธยา",
"province_th": "อยุธยา",
"station_type": "local_stop",
"latitude": 14.359304063054642,
"longitude": 100.57729051741023
},
{
"station_id": 4,
"station_code": "jaoprom_market",
"station_name_th": "ตลาดเจ้าพรหม",
"city_th": "พระนครศรีอยุธยา",
"province_th": "อยุธยา",
"station_type": "market",
"latitude": 14.358600551289177,
"longitude": 100.57740172977549
},
{
"station_id": 5,
"station_code": "rangsit_van_terminal",
"station_name_th": "ท่ารถตู้ต่างจังหวัด รังสิต",
"city_th": "รังสิต",
"province_th": "ปทุมธานี",
"station_type": "main_terminal",
"latitude": 13.989149716177037,
"longitude": 100.61472107391762
},
{
"station_id": 6,
"station_code": "chatuchak_minibus_terminal",
"station_name_th": "สถานีเดินรถโดยสารขนาดเล็ก (จตุจักร) รถตู้/มินิบัส",
"city_th": "จตุจักร",
"province_th": "กรุงเทพมหานคร",
"station_type": "main_terminal",
"latitude": 13.811802065338766,
"longitude": 100.5498111488118
},
{
"station_id": 7,
"station_code": "lopburi_main_terminal",
"station_name_th": "บขส.ลพบุรี",
"city_th": "เมืองลพบุรี",
"province_th": "ลพบุรี",
"station_type": "main_terminal",
"latitude": 14.798689894136096,
"longitude": 100.63316793418102
},
{
"station_id": 8,
"station_code": "other_stop",
"station_name_th": "จุดขึ้นรถประจำทางอื่นๆ",
"city_th": null,
"province_th": null,
"station_type": "local_stop"
},
{
"station_id": 9,
"station_code": "suphan_main_terminal",
"station_name_th": "บขส.สุพรรณบุรี",
"city_th": "เมืองสุพรรณบุรี",
"province_th": "สุพรรณบุรี",
"station_type": "main_terminal",
"latitude": 14.473737243267138,
"longitude": 100.12544591300441
},
{
"station_id": 10,
"station_code": "saraburi_main_terminal",
"station_name_th": "บขส.สระบุรี",
"city_th": "เมืองสระบุรี",
"province_th": "สระบุรี",
"station_type": "main_terminal",
"latitude": 14.523709233795955,
"longitude": 100.91901540002084
},
{
"station_id": 11,
"station_code": "namo_supermarket",
"station_name_th": "นะโมซุปเปอร์มาร์ท",
"city_th": "วิเศษชัยชาญ",
"province_th": "อ่างทอง",
"station_type": "private_stop",
"latitude": 14.59666118926178,
"longitude": 100.35213848667698
},
{
"station_id": 12,
"station_code": "pinklao_van_stop",
"station_name_th": "สายใต้เก่า ปิ่นเกล้า จุดจอดรถตู้",
"city_th": "บางกอกน้อย",
"province_th": "กรุงเทพมหานคร",
"station_type": "main_terminal",
"latitude": 13.786761431062317,
"longitude": 100.46776017448384
},
{
"station_id": 13,
"station_code": "chainat_main_terminal",
"station_name_th": "บขส.ชัยนาท",
"city_th": "เมืองชัยนาท",
"province_th": "ชัยนาท",
"station_type": "main_terminal",
"latitude": 15.197359140046297,
"longitude": 100.1245558104688
},
{
"station_id": 14,
"station_code": "at_999_terminal",
"station_name_th": "บขส.999 อ่างทอง สายเอเชีย-เหนือ (ไม่เข้าเมือง)",
"city_th": "เมืองอ่างทอง",
"province_th": "อ่างทอง",
"station_type": "main_terminal",
"latitude": 14.580083239362345,
"longitude": 100.4841456500421
},
{
"station_id": 15,
"station_code": "7-11 kinsa",
"station_name_th": "7-11 สาขากินซ่า",
"city_th": "รังสิต",
"province_th": "ปทุมธานี",
"station_type": "main_terminal",
"latitude": 13.9906952188289,
"longitude": 100.61469598208095
}
]
}