feat(ui): sync data from mock + port legend/next-trip/route map

Data:
- sync DB (routes/stations/route_stops/route_provinces/schedules) from
  web-at-transit-mock/resource/data: route 999 -> bangkok group, 1011 name,
  15 stations w/ coordinates, 33 schedules; drop stale stations
- add geojson-web route polylines (frontend/public/data) + lib/geojson.ts;
  route detail now draws the real route path

UI:
- home: legend (คำอธิบายสีการ์ด) + next-trip chip (เที่ยวถัดไป HH:MM /
  ดูตาราง / ยังไม่มีตาราง) computed from schedules
- route detail: drop the debug 'เมตาดาตา' JSON dump + empty ภาพประกอบ
- globals.css: legend styles
This commit is contained in:
phattaranun.a committed 2026-10-10 19:00:54 +07:00
1 parent 37711a0a8a
commit 490e6c7d71
33 files changed
+158 -49

No files matched your search

@@ -0,0 +1 @@
{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"route_id":"dream-sawangha-bangkok"},"geometry":{"type":"MultiLineString","coordinates":[[[100.32465,14.75381],[100.3264,14.74939],[100.3284,14.74419],[100.33075,14.73851],[100.33355,14.73268],[100.3369,14.72701],[100.34089,14.72173],[100.3455,14.71677],[100.35066,14.712],[100.35635,14.70728],[100.36251,14.70246],[100.36906,14.69745],[100.37571,14.69238],[100.38214,14.68743],[100.38802,14.68277],[100.39305,14.67857],[100.39697,14.67497],[100.39994,14.67192],[100.40219,14.66934],[100.40396,14.66714],[100.40547,14.66522],[100.40692,14.66351],[100.40829,14.66196],[100.40953,14.66055],[100.41057,14.65925],[100.41135,14.65801],[100.41184,14.65682],[100.41205,14.65562],[100.41206,14.65439],[100.41189,14.65307],[100.41162,14.65164],[100.41128,14.65006],[100.41092,14.64838],[100.41061,14.64667],[100.41038,14.64497],[100.41029,14.64334],[100.41039,14.64181],[100.41071,14.64019],[100.41128,14.63826],[100.41212,14.6358],[100.41327,14.6326],[100.41473,14.62855],[100.41645,14.624],[100.41836,14.61942],[100.42039,14.61528],[100.42245,14.61205],[100.4245,14.61008],[100.4265,14.60921],[100.42844,14.60916],[100.43031,14.60966],[100.4321,14.61043],[100.4338,14.61124],[100.43543,14.61201],[100.43702,14.61274],[100.43857,14.6134],[100.44013,14.61397],[100.44171,14.61443],[100.44329,14.61483],[100.44485,14.61521],[100.44637,14.6156],[100.44783,14.61605],[100.44922,14.61659],[100.45055,14.61721],[100.45182,14.61789],[100.45306,14.61859],[100.45428,14.61929],[100.45548,14.61997],[100.45669,14.6206],[100.4579,14.62115],[100.45912,14.62162],[100.46036,14.62196],[100.46161,14.62218],[100.46288,14.62231],[100.46415,14.6224],[100.46539,14.62252],[100.4666,14.62272],[100.46776,14.62302],[100.46881,14.6233],[100.4697,14.62341],[100.47037,14.62318],[100.47077,14.62247],[100.47086,14.62118],[100.47072,14.61941],[100.47042,14.61734],[100.47008,14.61514],[100.46977,14.61298],[100.4696,14.61097],[100.4696,14.60909],[100.46985,14.60724],[100.47039,14.60535],[100.47127,14.60334],[100.47252,14.60114],[100.47406,14.59875],[100.47579,14.59621],[100.47761,14.59352],[100.4794,14.59072],[100.48108,14.58782],[100.48267,14.58488],[100.4842,14.58195],[100.4857,14.57908],[100.48719,14.57631],[100.48871,14.57369],[100.49023,14.5712],[100.49171,14.56881],[100.49314,14.56649],[100.49446,14.56422],[100.49567,14.56196],[100.49678,14.55969],[100.4978,14.55739],[100.49876,14.55503],[100.49968,14.55258],[100.50059,14.55004],[100.50147,14.54742],[100.50232,14.54478],[100.50314,14.54214],[100.50391,14.53957],[100.50465,14.53707],[100.50538,14.53463],[100.50613,14.53222],[100.50695,14.5298],[100.50788,14.52734],[100.50894,14.52481],[100.51011,14.52222],[100.51137,14.51962],[100.51268,14.51702],[100.51403,14.51445],[100.51537,14.51194],[100.51673,14.50946],[100.51808,14.50697],[100.51945,14.50444],[100.52083,14.50183],[100.52222,14.49913],[100.5236,14.49637],[100.52492,14.49362],[100.52617,14.49092],[100.52731,14.48835],[100.52831,14.48593],[100.52922,14.48366],[100.53005,14.4815],[100.53086,14.47941],[100.53167,14.47738],[100.53252,14.47536],[100.53341,14.47334],[100.5343,14.4713],[100.53518,14.46921],[100.53603,14.46707],[100.53684,14.46485],[100.53759,14.46254],[100.53828,14.46014],[100.5389,14.45764],[100.53944,14.45503],[100.53992,14.45231],[100.54043,14.4495],[100.5411,14.44664],[100.54204,14.44374],[100.54337,14.44083],[100.54519,14.43793],[100.54753,14.43502],[100.55036,14.43205],[100.55368,14.42899],[100.55748,14.42582],[100.56175,14.42247],[100.56638,14.41889],[100.57127,14.41498],[100.57632,14.41066],[100.58141,14.40586],[100.58643,14.40053],[100.59129,14.3948],[100.59586,14.38886],[100.60005,14.38288],[100.60375,14.37704],[100.60686,14.37147],[100.60941,14.36606],[100.61144,14.36068],[100.61297,14.35518],[100.61406,14.34942],[100.61474,14.34326],[100.61511,14.33663],[100.61527,14.32949],[100.61533,14.32179],[100.61538,14.31347],[100.61549,14.30452],[100.61564,14.29507],[100.61576,14.28528],[100.61578,14.27532],[100.61564,14.26535],[100.6153,14.25555],[100.61478,14.24607],[100.61413,14.2371],[100.61339,14.2288],[100.6126,14.22134],[100.61183,14.21484],[100.61116,14.20917],[100.61071,14.20414],[100.61058,14.19958],[100.61088,14.1953],[100.61168,14.19113],[100.61281,14.18693],[100.61409,14.18258],[100.61532,14.17796],[100.6163,14.17296],[100.61689,14.16749],[100.61716,14.16162],[100.61723,14.15543],[100.61721,14.14905],[100.61723,14.14256],[100.61738,14.13606],[100.61764,14.12954],[100.61795,14.123],[100.61827,14.11642],[100.61855,14.10978],[100.61875,14.1031],[100.61889,14.09639],[100.61904,14.08971],[100.61921,14.0831],[100.61948,14.07661],[100.61984,14.07024],[100.6202,14.06392],[100.62046,14.05751],[100.62047,14.0509],[100.62014,14.04396],[100.61938,14.03663],[100.61836,14.02905],[100.6173,14.02141],[100.61641,14.01389],[100.61591,14.00669],[100.61594,13.99996],[100.61643,13.99374],[100.61722,13.98801],[100.61815,13.98277],[100.61908,13.97801],[100.61986,13.9737],[100.62042,13.969Line truncated