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-angthong-phothong-sawangha"},"geometry":{"type":"MultiLineString","coordinates":[[[100.45192,14.59496],[100.45198,14.59474],[100.45203,14.59455],[100.45206,14.59439],[100.45207,14.59424],[100.45208,14.59411],[100.45207,14.594],[100.45205,14.59391],[100.45202,14.59383],[100.45199,14.59377],[100.45194,14.59372],[100.45189,14.59369],[100.45183,14.59366],[100.45176,14.59364],[100.45169,14.59364],[100.45161,14.59363],[100.45152,14.59364],[100.45143,14.59365],[100.45134,14.59366],[100.45124,14.59368],[100.45113,14.59369],[100.45102,14.5937],[100.45091,14.59372],[100.45079,14.59373],[100.45067,14.59373],[100.45054,14.59373],[100.4504,14.59373],[100.45026,14.59373],[100.45011,14.59371],[100.44995,14.5937],[100.44978,14.59368],[100.4496,14.59366],[100.44941,14.59363],[100.4492,14.5936],[100.44898,14.59356],[100.44874,14.59352],[100.4485,14.59348],[100.44825,14.59344],[100.44799,14.59339],[100.44773,14.59334],[100.44747,14.5933],[100.44721,14.59326],[100.44696,14.59321],[100.44673,14.59318],[100.4465,14.59315],[100.44629,14.59312],[100.4461,14.5931],[100.44593,14.5931],[100.44577,14.5931],[100.44562,14.59312],[100.44548,14.59316],[100.44536,14.59321],[100.44524,14.5933],[100.44512,14.5934],[100.44501,14.59354],[100.44489,14.59371],[100.44478,14.59391],[100.44466,14.59415],[100.44454,14.59442],[100.4444,14.59472],[100.44426,14.59504],[100.4441,14.59538],[100.44392,14.59572],[100.44372,14.59608],[100.44349,14.59643],[100.44324,14.59677],[100.44296,14.5971],[100.44264,14.59742],[100.44229,14.59771],[100.4419,14.59798],[100.44147,14.59822],[100.44101,14.59845],[100.44051,14.59866],[100.43997,14.59886],[100.4394,14.59905],[100.43879,14.59924],[100.43814,14.59942],[100.43746,14.59961],[100.43675,14.5998],[100.436,14.6],[100.43522,14.60021],[100.43442,14.60043],[100.43359,14.60065],[100.43277,14.60089],[100.43194,14.60112],[100.43112,14.60136],[100.43032,14.60159],[100.42954,14.60183],[100.4288,14.60206],[100.4281,14.60229],[100.42745,14.60251],[100.42686,14.60272],[100.42632,14.60292],[100.42584,14.60312],[100.4254,14.60331],[100.42501,14.6035],[100.42465,14.60368],[100.42434,14.60386],[100.42406,14.60404],[100.42381,14.60422],[100.42358,14.6044],[100.42338,14.60458],[100.4232,14.60476],[100.42304,14.60495],[100.42289,14.60515],[100.42274,14.60538],[100.4226,14.60564],[100.42245,14.60594],[100.4223,14.60628],[100.42214,14.60668],[100.42197,14.60713],[100.42178,14.60766],[100.42157,14.60826],[100.42133,14.60894],[100.42107,14.60971],[100.42078,14.61055],[100.42047,14.61145],[100.42015,14.61242],[100.41981,14.61344],[100.41946,14.6145],[100.4191,14.6156],[100.41873,14.61672],[100.41837,14.61787],[100.41801,14.61902],[100.41765,14.62018],[100.4173,14.62134],[100.41695,14.62249],[100.41661,14.62363],[100.41628,14.62476],[100.41595,14.62588],[100.41562,14.62698],[100.41529,14.62806],[100.41497,14.62912],[100.41465,14.63015],[100.41434,14.63115],[100.41402,14.63212],[100.4137,14.63305],[100.41339,14.63395],[100.41308,14.63483],[100.41278,14.63568],[100.41249,14.6365],[100.41221,14.6373],[100.41195,14.63808],[100.41171,14.63884],[100.41149,14.63959],[100.41129,14.64033],[100.41112,14.64106],[100.41097,14.64178],[100.41086,14.64249],[100.41077,14.6432],[100.41071,14.64391],[100.41068,14.6446],[100.41067,14.64529],[100.41067,14.64598],[100.4107,14.64666],[100.41075,14.64734],[100.41082,14.64801],[100.4109,14.64867],[100.411,14.64933],[100.41111,14.64999],[100.41122,14.65064],[100.41134,14.65127],[100.41146,14.6519],[100.41158,14.65251],[100.41169,14.65311],[100.41179,14.65368],[100.41187,14.65424],[100.41193,14.65477],[100.41196,14.65528],[100.41197,14.65576],[100.41195,14.65622],[100.41189,14.65665],[100.41181,14.65707],[100.41169,14.65748],[100.41154,14.65788],[100.41136,14.65827],[100.41115,14.65867],[100.41091,14.65908],[100.41063,14.6595],[100.41033,14.65993],[100.40999,14.66039],[100.40962,14.66088],[100.40923,14.66139],[100.40881,14.66192],[100.40837,14.66247],[100.40792,14.66304],[100.40745,14.66362],[100.40697,14.66422],[100.40649,14.66482],[100.406,14.66543],[100.40552,14.66604],[100.40503,14.66665],[100.40456,14.66725],[100.4041,14.66786],[100.40365,14.66845],[100.40321,14.66904],[100.40278,14.66961],[100.40236,14.67016],[100.40196,14.6707],[100.40157,14.67121],[100.4012,14.67171],[100.40084,14.67217],[100.40051,14.67261],[100.40018,14.67301],[100.39988,14.67339],[100.39958,14.67374],[100.39928,14.67407],[100.39898,14.67439],[100.39867,14.6747],[100.39835,14.67501],[100.398,14.67533],[100.39762,14.67565],[100.3972,14.67599],[100.39675,14.67635],[100.39625,14.67673],[100.39569,14.67715],[100.3951,14.67759],[100.39446,14.67806],[100.39379,14.67855],[100.3931,14.67906],[100.39238,14.67959],[100.39165,14.68014],[100.39092,14.6807],[100.39018,14.68127],[100.38945,14.68186],[100.38873,14.68245],[100.38802,14.68305],[100.38733,14.68364],[100.38666,14.68424],[100.386,14.68484],[100.38535,14.68543],[100.38472,14.68602],[100.38409,14.68659],Line truncated