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-muangthong"},"geometry":{"type":"LineString","coordinates":[[100.45127,14.59401],[100.44858,14.59299],[100.4469,14.59218],[100.44609,14.59122],[100.4458,14.59017],[100.44556,14.58927],[100.44521,14.58856],[100.4448,14.58788],[100.44441,14.58716],[100.44414,14.5864],[100.44407,14.5856],[100.44424,14.58468],[100.44462,14.58363],[100.44503,14.58255],[100.44529,14.58153],[100.44551,14.58051],[100.44589,14.57938],[100.44642,14.57806],[100.44693,14.57651],[100.44734,14.57482],[100.44767,14.5732],[100.44785,14.57171],[100.44759,14.57002],[100.44673,14.56793],[100.44553,14.56576],[100.44434,14.56383],[100.44342,14.56201],[100.44296,14.55996],[100.44298,14.55768],[100.44334,14.55538],[100.44379,14.55322],[100.44394,14.55133],[100.44363,14.54982],[100.4432,14.54875],[100.44296,14.5481],[100.44298,14.54749],[100.44327,14.54657],[100.44384,14.54529],[100.44463,14.54371],[100.44546,14.54202],[100.44606,14.54045],[100.44642,14.53898],[100.44675,14.53732],[100.44716,14.53537],[100.44751,14.53333],[100.44769,14.5314],[100.44778,14.52977],[100.4479,14.52854],[100.44848,14.52751],[100.44995,14.52641],[100.45211,14.52527],[100.45441,14.52432],[100.45642,14.52362],[100.45788,14.52305],[100.45866,14.52243],[100.45889,14.52146],[100.45871,14.51994],[100.45811,14.518],[100.45716,14.51585],[100.45613,14.51399],[100.45536,14.51291],[100.45487,14.51219],[100.45455,14.51096],[100.45423,14.50915],[100.4537,14.5074],[100.45283,14.50608],[100.4516,14.50504],[100.4501,14.50412],[100.44874,14.50329],[100.44788,14.5025],[100.44743,14.50165],[100.44723,14.50067],[100.44733,14.49966],[100.44786,14.49885],[100.44857,14.49823],[100.44893,14.49762],[100.44865,14.497],[100.44782,14.49656],[100.44669,14.49637],[100.44575,14.49611],[100.4454,14.49552],[100.44529,14.49483],[100.44497,14.49436],[100.44438,14.49413],[100.44365,14.494],[100.44293,14.49385],[100.44236,14.49354],[100.44201,14.49285],[100.44177,14.49152],[100.44166,14.48949],[100.44195,14.48717],[100.44295,14.4849],[100.4449,14.4825],[100.4479,14.4797],[100.45113,14.47665],[100.45346,14.47369],[100.4547,14.47084],[100.45541,14.46791],[100.45591,14.46501],[100.45626,14.46265],[100.4565,14.46114],[100.45666,14.4602],[100.45676,14.45947],[100.45682,14.45849],[100.45682,14.45683],[100.45662,14.45465],[100.456,14.45234],[100.45481,14.45025],[100.45289,14.44877],[100.45048,14.44794],[100.4482,14.44748],[100.44648,14.44716],[100.44522,14.44691],[100.4443,14.44662],[100.44353,14.44608],[100.44275,14.44513],[100.44196,14.44381],[100.4412,14.44232],[100.44044,14.44074],[100.43959,14.43908],[100.43869,14.43745],[100.43791,14.436],[100.43735,14.43479],[100.43695,14.43362],[100.43667,14.43235],[100.43658,14.43094],[100.43676,14.42945],[100.43724,14.428],[100.43805,14.4268],[100.43901,14.42588],[100.43984,14.42523],[100.44044,14.42471],[100.44093,14.42407],[100.44132,14.42322],[100.44149,14.42225],[100.44134,14.42128],[100.44103,14.4204],[100.44072,14.41967],[100.44039,14.41908],[100.43995,14.4186],[100.43942,14.41819],[100.43887,14.41775],[100.43872,14.41705],[100.43975,14.41571],[100.4423,14.41352],[100.44601,14.41048],[100.45042,14.40679],[100.45488,14.40307],[100.45881,14.39989],[100.462,14.39712],[100.46439,14.39444],[100.46606,14.39176],[100.46716,14.38912],[100.4679,14.38663],[100.46851,14.38445],[100.46923,14.38251],[100.47027,14.3804],[100.47172,14.3779],[100.47323,14.37526],[100.47449,14.37282],[100.4757,14.3708],[100.47711,14.36935],[100.47869,14.36833],[100.4802,14.36746],[100.48152,14.36657],[100.48262,14.36556],[100.48353,14.36447],[100.48442,14.36352],[100.48534,14.36287],[100.48611,14.36248],[100.48659,14.36229],[100.48691,14.36226],[100.48728,14.36235],[100.4878,14.36249],[100.48853,14.36262],[100.48947,14.3627],[100.49056,14.36268],[100.49191,14.36261],[100.49391,14.36262],[100.49659,14.36279],[100.4992,14.36301],[100.50112,14.3632],[100.50256,14.36333],[100.50391,14.36341],[100.50509,14.36344],[100.5059,14.36346],[100.50668,14.36343],[100.50817,14.36333],[100.51042,14.36317],[100.51265,14.36305],[100.51435,14.363],[100.51578,14.36299],[100.51717,14.36303],[100.51827,14.36331],[100.51883,14.36399],[100.51925,14.36482],[100.52014,14.36542],[100.52153,14.36574],[100.52306,14.36602],[100.52456,14.36631],[100.52606,14.36648],[100.52749,14.36646],[100.52855,14.36629],[100.52902,14.36599],[100.5291,14.36538],[100.52906,14.36423],[100.52904,14.36218],[100.52915,14.35885],[100.52937,14.35466],[100.52963,14.35051],[100.52991,14.34686],[100.53027,14.34372],[100.53069,14.34097],[100.53102,14.33823],[100.53115,14.33529],[100.53107,14.33245],[100.53083,14.33002],[100.53056,14.32768],[100.53039,14.32492],[100.53027,14.32168],[100.53001,14.31812],[100.52953,14.31444],[100.52882,14.31084],[100.52795,14.30743],[100.52712,14.30418],[100.52651,14.30102],[100.52622,14.29783],[100.52632,14.29452],[100.52683,14.29118],[100.52772,14.28796],[100.52877,14.28506],[100.52965,14.28265],[100.53025,14.28025],[100.53066,14.2Line truncated