{
  "retrievedOn": "2026-10-05",
  "provider": "內政部國土測繪中心",
  "license": "政府資料開放授權條款－第1版",
  "licenseUrl": "https://data.gov.tw/license",
  "attribution": "交通路線資料：內政部國土測繪中心；高速公路主線經製圖中心線化處理。",
  "datasets": [
    {
      "name": "臺灣鐵路",
      "catalog": "https://data.gov.tw/dataset/73220",
      "download": "https://opdadm.moi.gov.tw/api/v1/no-auth/resource/api/dataset/299841E1-714A-40BA-AF4B-D6527EEA2A41/resource/801DECA5-E75E-40A4-816C-1BD6A1F322C9/download",
      "rawFile": "qa/geometry-research/nlsc-rail.zip",
      "sourceFile": "RAIL_1150409.shp",
      "sourceDate": "2026-04-09",
      "filter": "STATUS=0 (operational); MRT is absent from this source"
    },
    {
      "name": "高速鐵路",
      "catalog": "https://data.gov.tw/dataset/73221",
      "download": "https://www.tgos.tw/tgos/VirtualDir/Product/db6bff0a-58a5-40c1-81fb-ac8312213784/HSRAIL_1130417.zip",
      "rawFile": "qa/geometry-research/nlsc-hsrail.zip",
      "sourceFile": "HSRAIL_1130417.shp",
      "sourceDate": "2024-04-17",
      "filter": "All high-speed rail centerlines; if STATUS exists, require operational status"
    },
    {
      "name": "國道及省道(含快速公路以上等級)道路中線",
      "catalog": "https://data.gov.tw/dataset/73232",
      "download": "https://opdadm.moi.gov.tw/api/v1/no-auth/resource/api/dataset/03D452C9-B893-4C58-A872-A9D73B58F27F/resource/A6E0ECEB-E8D4-4A7D-B47F-AFC48734F69B/download",
      "rawFile": "qa/geometry-research/nlsc-road.zip",
      "sourceFile": "ROAD_國省道(含快速公路)_1150409.shp",
      "sourceDate": "2026-04-09",
      "filter": "ROADCLASS1=HW: national highway mainlines. HU ancillary/service/interchange roads and ordinary provincial roads are excluded."
    }
  ],
  "outputs": [
    {"file": "dist/taiwan-rail.geojson", "featureCount": 2726, "kinds": ["rail", "highspeedrail"], "representation": "Official single railway alignments. TRA and HSR remain separate systems where geographically adjacent."},
    {"file": "dist/taiwan-highways.geojson", "featureCount": 13, "kind": "highway", "representation": "Cartographic single mainline per named national route; distinct elevated and surface route names remain separate."}
  ],
  "displayGeneralization": [
    "At proposal scale, National 1's 五股楊梅高架道路 and 汐止五股高架道路 are represented by the shared 中山高速公路 centerline. Their separate source features remain stored but are not drawn.",
    "The Wanhua–Nangang HSR feature (ref A0000000002) is represented by the shared TRA centerline. All 3,674 original vertices lie within 26.91 m of TRA (median 9.21 m). Other HSR corridors remain visible."
  ],
  "coverageBounds": [119.95, 21.8, 122.05, 25.4],
  "build": "python data-sources/build-nlsc-centerlines.py (Python standard library only; download the three ZIPs to rawFile paths first)",
  "projection": "EPSG:3826 TWD97/GRS80 TM2 zone121 to WGS84 longitude/latitude, rounded to7 decimal places. Five test points agree with proj4 2.12.1 to within5.1e-8 degrees.",
  "highwayDerivation": [
    "Group by official route reference and official route name; never merge differently named or numbered routes.",
    "Join consecutive segment endpoints within0.1m coordinate rounding. Stop at graph branches.",
    "Pair comparable opposing chains only when more than80 percent has a parallel partner within600m and median separation is below100m.",
    "Average positions with nearest parallel segments every20m; simplify within1.5m. Unmatched endpoints preserve the source alignment.",
    "Retain unpaired branches unless over98 percent lies within90m of the same already-paired named route. No junction connections are invented.",
    "This is a cartographic representation for area analysis, not survey or navigation geometry."
  ],
  "validation": "Taipei cross-sections at121.50,121.54,121.56 degrees contain one line per named mainline. National3 reduces from863.09km of separate carriageways to431.67km of centerline. Rail input contains no MRT lines."
}
