ตารางเวลาคำนวณได้ + หน้ารายละเอียดป้ายขับเคลื่อนด้วยข้อมูล + แผนที่ Leaflet
Schedules — กติกา "จุดนี้ = เวลาจุดอ้างอิง ± n นาที"
- ฟิลด์ derive { from_station_id, offset_min } คำนวณที่ ui/partials/schedules.js (ท่อเดียว) รองรับอ้างจุดข้ามทิศ
- จุดย่อยของ "8 other_stop" ใช้ offsets_min จับคู่ตามลำดับ (เช่น ตลาดสามโก้ = ตลาดท่าช้าง +45 นาที)
- เครื่องมือ resource/tools/derive-times.py + ตาราง resource/data/derive-times.csv (--check / --audit ชี้จุดที่ควรตั้งกฎ)
- แยกตารางเป็นรายสาย: scheduleslist/schedules<route_id>.json และ schedules.json เป็นสารบัญ (โหลดแบบ lazy + cache)
- ตรวจจับวันทำงาน/วันหยุด + schema 3 (weekday/holiday → directions) · ไฟล์ข้อมูลเป็น CRLF ทั้งชุด
- ล้างค่าที่ไม่ใช่ HH:MM ที่ฝังใน times (ทำให้ KPI เพี้ยน) + กันค่าหลอกในตัวสรุปเวลา
UI
- หน้ารายละเอียดป้าย/ตารางเวลา ขับเคลื่อนด้วย JSON (stopDetail.init.js) · จุดขึ้นรถประจำทางอื่นๆ รองรับหลายจุดต่อสาย
- #/stops: แสดง 6 ป้ายแรก + ปุ่ม "แสดงป้ายทั้งหมด" (โหลดรูปเฉพาะที่แสดง) · ชิปสาย → #/routes/<route_id>
- หน้าแรก: ตัดตัวเลือก "ทุกสถานีในจังหวัดนี้" · ตัวกรองจังหวัด/สถานี + ปุ่มแชร์ (share URL)
- การ์ดติดต่อ: ไอคอน/ชื่อ/สีเปลี่ยนตามชนิด URL (Facebook / LINE / เว็บไซต์) + ปุ่มเปิดลิงก์จาก web_url
- รูปรองรับหลายนามสกุล (.jpg → .jpeg → .webp → .png) · ป้าย "ประมาณ" + หมายเหตุสำหรับตารางที่คำนวณ
- หน้าเครดิตเหลือ 3 หมวด · แก้ข้อความหมวดแผนที่ให้ตรงกับข้อมูลจริง
- แผนที่ Leaflet (vendor ในโปรเจกต์ ไม่ใช้ CDN): เส้นทาง + หมุด + ป๊อปอัป · แก้ CSS ที่ทำให้ SVG ยุบ 0x0
เครื่องมือและเอกสาร
- qgis-to-web.py อ่าน .shp ตรง → geojson-web (สร้างใหม่ 10 ไฟล์) + audit-geojson.py ตรวจ 3 ส่วน
- stop-km.py วัดระยะ กม. ตามเส้นจริง → stop-km.json · schedules-editor.html (แก้ทีละไฟล์ · มุมมองตารางแบบ Excel)
- AGENTS.md: กติกา derive · offsets_min · นามสกุลรูป · ชิปสาย · หน้ารายละเอียดป้ายมาจากไหน
This commit is contained in:
1 parent
88311326e6
commit
1cfaeb1526
91 files changed
+7560
-844
No files matched your search
+36
-76
@@ -8,7 +8,7 @@
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.594892813219857,
|
||||
"longitude":100.45160878714961
|
||||
"longitude": 100.45160878714961
|
||||
},
|
||||
{
|
||||
"station_id": 2,
|
||||
@@ -16,9 +16,9 @@
|
||||
"station_name_th": "สถานีขนส่งป่าโมก",
|
||||
"city_th": "ป่าโมก",
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.494620342173755,
|
||||
"longitude":100.44663039105356
|
||||
"station_type": "local_terminal",
|
||||
"latitude": 14.494620342173755,
|
||||
"longitude": 100.44663039105356
|
||||
},
|
||||
{
|
||||
"station_id": 3,
|
||||
@@ -27,8 +27,8 @@
|
||||
"city_th": "พระนครศรีอยุธยา",
|
||||
"province_th": "อยุธยา",
|
||||
"station_type": "local_stop",
|
||||
"latitude": 14.359304063054642,
|
||||
"longitude":100.57729051741023
|
||||
"latitude": 14.359304063054642,
|
||||
"longitude": 100.57729051741023
|
||||
},
|
||||
{
|
||||
"station_id": 4,
|
||||
@@ -37,8 +37,8 @@
|
||||
"city_th": "พระนครศรีอยุธยา",
|
||||
"province_th": "อยุธยา",
|
||||
"station_type": "market",
|
||||
"latitude": 14.358600551289177,
|
||||
"longitude":100.57740172977549
|
||||
"latitude": 14.358600551289177,
|
||||
"longitude": 100.57740172977549
|
||||
},
|
||||
{
|
||||
"station_id": 5,
|
||||
@@ -46,9 +46,9 @@
|
||||
"station_name_th": "ท่ารถตู้ต่างจังหวัด รังสิต",
|
||||
"city_th": "รังสิต",
|
||||
"province_th": "ปทุมธานี",
|
||||
"station_type": "van_terminal",
|
||||
"latitude": 13.989149716177037,
|
||||
"longitude":100.61472107391762
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 13.989149716177037,
|
||||
"longitude": 100.61472107391762
|
||||
},
|
||||
{
|
||||
"station_id": 6,
|
||||
@@ -56,9 +56,9 @@
|
||||
"station_name_th": "สถานีเดินรถโดยสารขนาดเล็ก (จตุจักร) รถตู้/มินิบัส",
|
||||
"city_th": "จตุจักร",
|
||||
"province_th": "กรุงเทพมหานคร",
|
||||
"station_type": "van_terminal",
|
||||
"latitude": 13.811802065338766,
|
||||
"longitude":100.5498111488118
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 13.811802065338766,
|
||||
"longitude": 100.5498111488118
|
||||
},
|
||||
{
|
||||
"station_id": 7,
|
||||
@@ -67,8 +67,8 @@
|
||||
"city_th": "เมืองลพบุรี",
|
||||
"province_th": "ลพบุรี",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.798689894136096,
|
||||
"longitude":100.63316793418102
|
||||
"latitude": 14.798689894136096,
|
||||
"longitude": 100.63316793418102
|
||||
},
|
||||
{
|
||||
"station_id": 8,
|
||||
@@ -85,8 +85,8 @@
|
||||
"city_th": "เมืองสุพรรณบุรี",
|
||||
"province_th": "สุพรรณบุรี",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.473737243267138,
|
||||
"longitude":100.12544591300441
|
||||
"latitude": 14.473737243267138,
|
||||
"longitude": 100.12544591300441
|
||||
},
|
||||
{
|
||||
"station_id": 10,
|
||||
@@ -95,8 +95,8 @@
|
||||
"city_th": "เมืองสระบุรี",
|
||||
"province_th": "สระบุรี",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.523709233795955,
|
||||
"longitude":100.91901540002084
|
||||
"latitude": 14.523709233795955,
|
||||
"longitude": 100.91901540002084
|
||||
},
|
||||
{
|
||||
"station_id": 11,
|
||||
@@ -105,8 +105,8 @@
|
||||
"city_th": "วิเศษชัยชาญ",
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "private_stop",
|
||||
"latitude": 14.59666118926178,
|
||||
"longitude":100.35213848667698
|
||||
"latitude": 14.59666118926178,
|
||||
"longitude": 100.35213848667698
|
||||
},
|
||||
{
|
||||
"station_id": 12,
|
||||
@@ -114,9 +114,9 @@
|
||||
"station_name_th": "สายใต้เก่า ปิ่นเกล้า จุดจอดรถตู้",
|
||||
"city_th": "บางกอกน้อย",
|
||||
"province_th": "กรุงเทพมหานคร",
|
||||
"station_type": "van_terminal",
|
||||
"latitude": 13.786761431062317,
|
||||
"longitude":100.46776017448384
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 13.786761431062317,
|
||||
"longitude": 100.46776017448384
|
||||
},
|
||||
{
|
||||
"station_id": 13,
|
||||
@@ -125,8 +125,8 @@
|
||||
"city_th": "เมืองชัยนาท",
|
||||
"province_th": "ชัยนาท",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 15.197359140046297,
|
||||
"longitude":100.1245558104688
|
||||
"latitude": 15.197359140046297,
|
||||
"longitude": 100.1245558104688
|
||||
},
|
||||
{
|
||||
"station_id": 14,
|
||||
@@ -135,58 +135,18 @@
|
||||
"city_th": "เมืองอ่างทอง",
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.580083239362345,
|
||||
"longitude":100.4841456500421
|
||||
"latitude": 14.580083239362345,
|
||||
"longitude": 100.4841456500421
|
||||
},
|
||||
{
|
||||
"station_id": 15,
|
||||
"station_code": "chaiyo_terminal",
|
||||
"station_name_th": "สถานีขนส่งไชโย",
|
||||
"city_th": "ไชโย",
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal"
|
||||
},
|
||||
{
|
||||
"station_id": 16,
|
||||
"station_code": "pho_thong_terminal",
|
||||
"station_name_th": "สถานีขนส่งโพธิ์ทอง",
|
||||
"city_th": "โพธิ์ทอง",
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal"
|
||||
},
|
||||
{
|
||||
"station_id": 17,
|
||||
"station_code": "sawaeng_ha_terminal",
|
||||
"station_name_th": "สถานีขนส่งแสวงหา",
|
||||
"city_th": "แสวงหา",
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal"
|
||||
},
|
||||
{
|
||||
"station_id": 18,
|
||||
"station_code": "wiset_chai_chan_terminal",
|
||||
"station_name_th": "สถานีขนส่งวิเศษชัยชาญ",
|
||||
"city_th": "วิเศษชัยชาญ",
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal"
|
||||
},
|
||||
{
|
||||
"station_id": 19,
|
||||
"station_code": "samko_terminal",
|
||||
"station_name_th": "สถานีขนส่งสามโก้",
|
||||
"city_th": "สามโก้",
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal"
|
||||
},
|
||||
{
|
||||
"station_id": 20,
|
||||
"station_code": "at_market",
|
||||
"station_name_th": "ตลาดอ่างทอง",
|
||||
"city_th": "เมืองอ่างทอง",
|
||||
"province_th": "อ่างทอง",
|
||||
"station_code": "7-11 kinsa",
|
||||
"station_name_th": "7-11 สาขากินซ่า",
|
||||
"city_th": "รังสิต",
|
||||
"province_th": "ปทุมธานี",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.59372148660796,
|
||||
"longitude":100.45079590645398
|
||||
"latitude": 13.9906952188289,
|
||||
"longitude": 100.61469598208095
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user