{
  "agency": {
    "country": "MY",
    "id": "ktmb-national",
    "name": "Keretapi Tanah Melayu (KTMB)",
    "operating_note": "Malaysia's national railway: the KTM Komuter commuter lines and the intercity shuttle services across Peninsular Malaysia. Carried as a national feed with no single subdivision; counted as one feed record."
  },
  "categories": {
    "completeness": {
      "details": {
        "accessibility": {
          "measures": "presence_not_usability",
          "score": 0.0,
          "stops_marked_accessible_pct": 0.0,
          "stops_marked_not_accessible_pct": 0.0,
          "stops_stated_pct": 0.0,
          "trips_stated_pct": 0.0
        },
        "accessibility_measures": "presence_not_usability",
        "cemv": {
          "declared": false,
          "supported": false
        },
        "components": {
          "contact": 7.5,
          "fares": 0.0,
          "headsigns": 0.0,
          "stop_names": 8.4,
          "wheelchair_stops": 0.0,
          "wheelchair_trips": 0.0
        },
        "fare_free": false,
        "fares": {
          "applied": false,
          "has_leg_rules": false,
          "has_products": false,
          "has_transfer_rules": false,
          "model": "none",
          "product_count": 0
        },
        "flex": {
          "booking_reachable": false,
          "booking_rule_count": 0,
          "has_booking_rules": false,
          "has_flex": false
        },
        "has_fares": false,
        "headsign_pct": 0.0,
        "mixed_case_stop_name_pct": 56.0,
        "pathways": {
          "has_entrances": false,
          "has_levels": false,
          "has_pathways": false,
          "has_stations": false,
          "has_step_free": false,
          "pathway_count": 0
        },
        "stops": 191,
        "translations": {
          "feed_lang": null,
          "has_translations": false,
          "languages": [],
          "translated_tables": [],
          "translation_count": 0
        },
        "trips": 304,
        "wheelchair_accessible_pct": 0.0,
        "wheelchair_boarding_pct": 0.0,
        "wheelchair_marked_accessible_pct": 0.0,
        "wheelchair_marked_not_accessible_pct": 0.0
      },
      "findings": [
        {
          "code": "scorecard_wheelchair_boarding_unknown",
          "count": 191,
          "effort": "A column in stops.txt; your scheduling software likely has it.",
          "fix": "Set wheelchair_boarding to 1 (accessible) or 2 (not accessible) for every stop. A field survey can start with the busiest stops.",
          "owner": "Likely your team",
          "points": 25.0,
          "severity": "WARNING",
          "what": "191 of 191 stops don't say whether a wheelchair user can board there.",
          "why": "Riders who use wheelchairs can't plan a trip when accessibility is marked 'unknown'; apps show no information at all."
        },
        {
          "code": "scorecard_wheelchair_accessible_unknown",
          "count": 304,
          "effort": "A default or per-trip field in your export.",
          "fix": "Set wheelchair_accessible on every trip. If every vehicle is accessible, this may be one default; otherwise use the value for each trip.",
          "owner": "Likely your export tool",
          "points": 15.0,
          "severity": "WARNING",
          "what": "304 of 304 trips don't say whether the vehicle is wheelchair accessible.",
          "why": "Even with accessible stops, riders need to know the transit vehicle itself can take them."
        },
        {
          "code": "scorecard_no_fare_data",
          "count": 1,
          "effort": "A small file for most flat-fare systems.",
          "fix": "Add fare_attributes.txt (or Fares v2 files) with your fare structure. If your service is fare-free, ask to have it marked fare-free instead.",
          "owner": "",
          "points": 15.0,
          "severity": "WARNING",
          "what": "The feed contains no fare information.",
          "why": "Riders see 'fare unknown' in trip planners and can't budget their trip; visitors are most affected."
        },
        {
          "code": "scorecard_stop_names_all_caps",
          "count": 84,
          "effort": "Often a bulk fix in your scheduling software.",
          "fix": "Rename stops to mixed case where the language has letter case (for example, 'Central Station').",
          "owner": "Likely your export tool",
          "points": 6.6,
          "severity": "INFO",
          "what": "About 84 stop names are written in ALL CAPS.",
          "why": "Mixed-case names are easier to read in apps and are read more naturally by screen readers."
        },
        {
          "code": "scorecard_missing_headsigns",
          "count": 304,
          "effort": "Usually a bulk edit in your scheduling software.",
          "fix": "Populate trip_headsign to match what the transit vehicle displays.",
          "owner": "Likely your export tool",
          "points": 15.0,
          "severity": "WARNING",
          "what": "304 of 304 trips have no headsign.",
          "why": "Riders at the stop can't tell which direction a transit vehicle is going."
        },
        {
          "code": "scorecard_no_feed_contact",
          "count": 1,
          "effort": "One field.",
          "fix": "Add feed_contact_email to feed_info.txt.",
          "owner": "",
          "points": 7.5,
          "severity": "INFO",
          "what": "feed_info.txt has no technical contact (feed_contact_email or feed_contact_url).",
          "why": "Trip-planning apps and regional data coordinators have nobody to email when they spot a problem with your feed, so problems linger."
        }
      ],
      "name": "completeness",
      "score": 15.9,
      "status": "measured",
      "summary": "0% of stops state wheelchair accessibility (0% marked accessible, 0% marked not accessible). This measures what the feed publishes, not whether a stop is physically usable. Fare data is not published.",
      "weight": 0.25
    },
    "correctness": {
      "details": {
        "distinct_codes": 11,
        "instances_by_severity": {
          "ERROR": 2,
          "INFO": 0,
          "WARNING": 522
        },
        "validator_version": "8.0.1"
      },
      "findings": [
        {
          "code": "foreign_key_violation",
          "count": 2,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'foreign_key_violation' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 12.0,
          "severity": "ERROR",
          "what": "Foreign key violation (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "fast_travel_between_consecutive_stops",
          "count": 171,
          "effort": "A few minutes per flagged trip.",
          "fix": "Check the flagged stop times for transposed minutes.",
          "owner": "",
          "points": 8.0,
          "severity": "WARNING",
          "what": "Some scheduled trips move faster between stops than a transit vehicle can.",
          "why": "Usually a typo'd stop time; riders get arrival times no transit vehicle can meet."
        },
        {
          "code": "fast_travel_between_far_stops",
          "count": 112,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'fast_travel_between_far_stops' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 8.0,
          "severity": "WARNING",
          "what": "Fast travel between far stops (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "unusable_trip",
          "count": 89,
          "effort": "Worth a vendor question if it appears often.",
          "fix": "Check the flagged trips in your scheduling software; remove them or restore their missing stops.",
          "owner": "Likely your export tool",
          "points": 8.0,
          "severity": "WARNING",
          "what": "Some trips serve fewer than two stops.",
          "why": "A trip with one stop can't be ridden; planners ignore it and it may signal an export problem."
        },
        {
          "code": "unused_trip",
          "count": 89,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'unused_trip' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 8.0,
          "severity": "WARNING",
          "what": "Unused trip (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "mixed_case_recommended_field",
          "count": 47,
          "effort": "Often a bulk fix in your scheduling software.",
          "fix": "Use mixed case for stop names and headsigns (e.g. 'Main St & 2nd Ave', not 'MAIN ST & 2ND AVE').",
          "owner": "Likely your export tool",
          "points": 6.0,
          "severity": "WARNING",
          "what": "Some rider-facing names are in ALL CAPS or all lowercase.",
          "why": "ALL-CAPS stop and headsign names are harder to read in apps and are read awkwardly by screen readers."
        },
        {
          "code": "stop_without_stop_time",
          "count": 8,
          "effort": "A review pass in your scheduling software.",
          "fix": "Remove retired stops from the export, or add them back to the trips that should serve them.",
          "owner": "Likely your export tool",
          "points": 6.0,
          "severity": "WARNING",
          "what": "Some stops exist in the feed but no trip ever stops at them.",
          "why": "Riders may walk to a stop where no transit vehicle is scheduled to arrive."
        },
        {
          "code": "route_short_name_too_long",
          "count": 3,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'route_short_name_too_long' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 4.0,
          "severity": "WARNING",
          "what": "Route short name too long (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "expired_calendar",
          "count": 1,
          "effort": "One setting in most export tools.",
          "fix": "Remove past service periods the next time you export the feed.",
          "owner": "Likely your export tool",
          "points": 4.0,
          "severity": "WARNING",
          "what": "Some service calendars in the feed have already ended.",
          "why": "Expired calendars are dead weight and can hide real schedule problems from your staff and vendors."
        },
        {
          "code": "missing_recommended_file",
          "count": 1,
          "effort": "One small file, set once in export settings.",
          "fix": "Add feed_info.txt with publisher name, URL, language, and feed_start_date/feed_end_date.",
          "owner": "Likely your export tool",
          "points": 4.0,
          "severity": "WARNING",
          "what": "A file GTFS asks for (usually feed_info.txt) is missing.",
          "why": "feed_info.txt tells apps who publishes the feed and when it expires; without it nobody is warned before data goes stale."
        },
        {
          "code": "trip_coverage_not_active_for_next7_days",
          "count": 1,
          "effort": "One setting in most export tools.",
          "fix": "Trim past service periods the next time you export.",
          "owner": "Likely your export tool",
          "points": 4.0,
          "severity": "WARNING",
          "what": "Many of the feed's trips don't run at all in the next 7 days.",
          "why": "It usually means old service periods are still in the export, making the feed bigger and harder to check."
        }
      ],
      "name": "correctness",
      "score": 28.0,
      "status": "measured",
      "summary": "The MobilityData validator flagged 11 kinds of issue across 524 instances (2 error, 522 warning, 0 informational).",
      "weight": 0.35
    },
    "freshness": {
      "details": {
        "days_until_expiry": 0,
        "effective_expiry_date": "2026-07-19",
        "feed_end_date": null,
        "feed_start_date": null,
        "feed_version": null,
        "has_feed_info": false,
        "last_service_date": "2026-07-19",
        "seasonal_boundary": false,
        "service_horizon_review_years": 10,
        "service_horizon_status": "within_review_threshold",
        "service_type": "fixed"
      },
      "findings": [
        {
          "code": "scorecard_feed_expired",
          "count": 1,
          "effort": "Usually one export setting; export on a schedule so it never lapses again.",
          "fix": "Re-export the feed with a calendar that reaches further out, and set feed_info feed_end_date past your next service change.",
          "owner": "Likely your export tool",
          "points": 100.0,
          "severity": "ERROR",
          "what": "Service data ended 0 day(s) ago.",
          "why": "When the calendar runs out, trip planners stop showing this agency even though the transit vehicles are still running. Riders are told the service does not exist."
        },
        {
          "code": "scorecard_missing_feed_info_dates",
          "count": 1,
          "effort": "Two fields, set once in export settings.",
          "fix": "Add feed_info.txt with feed_start_date and feed_end_date to your export.",
          "owner": "Likely your export tool",
          "points": 15.0,
          "severity": "WARNING",
          "what": "feed_info.txt is missing its start/end dates (the file itself is absent)",
          "why": "Apps and this scorecard can't warn anyone before the feed goes stale without stated validity dates."
        }
      ],
      "name": "freshness",
      "score": 0.0,
      "status": "measured",
      "summary": "Service data ended 0 day(s) ago. Trip planners have likely already dropped this feed.",
      "weight": 0.2
    },
    "realtime": {
      "name": "realtime",
      "status": "not_yet_measured",
      "summary": "Not scored yet. Nothing here counts against the grade.",
      "weight": 0.2
    }
  },
  "confidence": {
    "feed_age_days": 0,
    "fetch_source": "origin",
    "level": "medium",
    "measured_categories": 3,
    "notes": [
      "Realtime quality was not measured this run. It does not count against the grade.",
      "The feed was downloaded from the agency's own URL."
    ],
    "rt_windows": 0,
    "total_categories": 4
  },
  "conformance": {
    "awarded": false,
    "criteria": [
      {
        "detail": "1 validator error to resolve.",
        "key": "valid",
        "met": false
      },
      {
        "detail": "Service data expired 0 days ago.",
        "key": "current",
        "met": false
      },
      {
        "detail": "States wheelchair access on 0% of stops and 0% of trips; the mark needs 90% of each.",
        "key": "accessible",
        "met": false
      }
    ],
    "status": "not_yet",
    "summary": "This feed is close to the conformance mark. 1 validator error to resolve. Service data expired 0 days ago. States wheelchair access on 0% of stops and 0% of trips; the mark needs 90% of each."
  },
  "feed": {
    "license_note": "CC BY 4.0; published as open data through data.gov.my, the Government of Malaysia's official open data platform. Credit Keretapi Tanah Melayu Berhad (KTMB).",
    "reachable": true,
    "sha256": "5e27971b663b8bc55239add6b213aedd73cd4bb392b9332cf799116f6c9a6138",
    "size_bytes": 33675,
    "static_url": "https://api.data.gov.my/gtfs-static/ktmb"
  },
  "fetch": {
    "final_url": "https://openapi-malaysia-transport.s3.ap-southeast-1.amazonaws.com/ktmb/gtfs_ktmb.zip",
    "max_attempts": 4,
    "reader_archive_profile": "raw-v1",
    "source": "origin",
    "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
  },
  "generated_at": "2026-07-19T00:00:00+00:00",
  "geo": {
    "bbox": [
      100.25713,
      1.38531,
      103.92152,
      6.66221
    ],
    "lat": 3.71045,
    "lon": 101.9474,
    "stop_count": 191
  },
  "mode_profile": {
    "ferry_only": false,
    "graded": false,
    "has_ferry": false,
    "is_multimodal": true,
    "measured": true,
    "modes": [
      {
        "key": "tram",
        "label": "Tram / light rail",
        "route_count": 4,
        "trip_count": 227,
        "trip_share_pct": 74.7
      },
      {
        "key": "rail",
        "label": "Rail",
        "route_count": 5,
        "trip_count": 77,
        "trip_share_pct": 25.3
      }
    ],
    "primary_mode": "tram",
    "primary_mode_label": "Tram / light rail",
    "route_count": 9,
    "trip_count": 304
  },
  "overall": {
    "grade": "F",
    "margin_to_lower_band": 17.2,
    "margin_to_next_band": 42.8,
    "score": 17.2
  },
  "recommendations": [],
  "routability": {
    "boardable_stops": 191,
    "findings": [
      {
        "code": "scorecard_single_stop_trips",
        "count": 89,
        "effort": "Usually an export setting or a stop_times mapping in your software.",
        "fix": "Check your scheduling export: every trip should list each stop it calls at, in order, with times.",
        "owner": "Likely your export tool",
        "points": 0.0,
        "severity": "WARNING",
        "what": "89 of 304 trips list fewer than two stops.",
        "why": "A trip with one stop has no leg a rider can ride; trip planners can't route anyone on it, so the service effectively does not exist."
      },
      {
        "code": "scorecard_orphan_stops",
        "count": 8,
        "effort": "A cleanup pass in your scheduling software.",
        "fix": "Remove stops no route serves, or add the trips that should call at them.",
        "owner": "Likely your export tool",
        "points": 0.0,
        "severity": "INFO",
        "what": "8 of 191 boardable stops are never served by any trip.",
        "why": "Riders see these stops in apps and on the map but can never catch anything there, which erodes trust in the data."
      }
    ],
    "orphan_stops": 8,
    "single_stop_trips": 89,
    "trips_total": 304
  },
  "route_map": {
    "drawn_route_count": 0,
    "has_shapes": false,
    "path": "data/artifacts/ktmb-national/geometry.geojson",
    "route_count": 9,
    "routes": [
      {
        "color": "018000",
        "color_name": "green",
        "has_shape": false,
        "id": "100_47300",
        "label": "Padang Besar Line",
        "long": "KTM Butterworth - Padang Besar",
        "short": "Padang Besar Line",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "1964B7",
        "color_name": "teal",
        "has_shape": false,
        "id": "100_9000",
        "label": "Ipoh Line",
        "long": "KTM Butterworth - Ipoh",
        "short": "Ipoh Line",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "8844AA",
        "color_name": "purple",
        "has_shape": false,
        "id": "ERT",
        "label": "ERT",
        "long": "Intercity Ekspres Rakyat Timuran Tumpat - JB Sentral",
        "short": "ERT",
        "text_color": "FFFFFF",
        "type_label": "Rail"
      },
      {
        "color": "8844AA",
        "color_name": "purple",
        "has_shape": false,
        "id": "ES",
        "label": "ES",
        "long": "Intercity Ekspres Selatan Gemas - JB Sentral",
        "short": "ES",
        "text_color": "FFFFFF",
        "type_label": "Rail"
      },
      {
        "color": "8844AA",
        "color_name": "purple",
        "has_shape": false,
        "id": "ETS",
        "label": "ETS",
        "long": "Electric Train Service Padang Besar - Gemas",
        "short": "ETS",
        "text_color": "FFFFFF",
        "type_label": "Rail"
      },
      {
        "color": "DC2420",
        "color_name": "red",
        "has_shape": false,
        "id": "KA15_KD19",
        "label": "Port Klang Line",
        "long": "KTM Tanjung Malim - Pelabuhan Klang",
        "short": "Port Klang Line",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "3C5A9F",
        "color_name": "teal",
        "has_shape": false,
        "id": "KC05_KB18",
        "label": "Seremban Line",
        "long": "KTM Batu Caves - Pulau Sebang/Tampin",
        "short": "Seremban Line",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "8844AA",
        "color_name": "purple",
        "has_shape": false,
        "id": "SH",
        "label": "SH",
        "long": "Intercity Shuttle Tumpat - Gemas",
        "short": "SH",
        "text_color": "FFFFFF",
        "type_label": "Rail"
      },
      {
        "color": "8844AA",
        "color_name": "purple",
        "has_shape": false,
        "id": "ST",
        "label": "ST",
        "long": "Intercity Shuttle Tebrau JB Sentral - Woodlands",
        "short": "ST",
        "text_color": "FFFFFF",
        "type_label": "Rail"
      }
    ],
    "stop_count": 191,
    "stop_points_capped": false
  },
  "rubric_version": "1.2",
  "schema_version": "1.15",
  "scoring_profile": {
    "id": "gtfs-scorecard-1.2",
    "provenance": "GTFS Scorecard's project-authored weights, deductions, thresholds, grade bands, and fix ranking, informed by the California Transit Data Guidelines and the MobilityData gtfs-validator. It is not a worldwide standard or a compliance determination.",
    "rubric_version": "1.2"
  },
  "snapshot_date": "2026-07-19",
  "top_fixes": [
    {
      "code": "scorecard_feed_expired",
      "count": 1,
      "effort": "Usually one export setting; export on a schedule so it never lapses again.",
      "fix": "Re-export the feed with a calendar that reaches further out, and set feed_info feed_end_date past your next service change.",
      "owner": "Likely your export tool",
      "points": 100.0,
      "rank": 1,
      "severity": "ERROR",
      "what": "Service data ended 0 day(s) ago.",
      "why": "When the calendar runs out, trip planners stop showing this agency even though the transit vehicles are still running. Riders are told the service does not exist."
    },
    {
      "code": "foreign_key_violation",
      "count": 2,
      "effort": "Varies.",
      "fix": "Review the rule documentation for 'foreign_key_violation' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
      "owner": "",
      "points": 12.0,
      "rank": 2,
      "severity": "ERROR",
      "what": "Foreign key violation (flagged by the MobilityData validator).",
      "why": "See the linked rule for what this affects."
    },
    {
      "code": "scorecard_wheelchair_boarding_unknown",
      "count": 191,
      "effort": "A column in stops.txt; your scheduling software likely has it.",
      "fix": "Set wheelchair_boarding to 1 (accessible) or 2 (not accessible) for every stop. A field survey can start with the busiest stops.",
      "owner": "Likely your team",
      "points": 25.0,
      "rank": 3,
      "severity": "WARNING",
      "what": "191 of 191 stops don't say whether a wheelchair user can board there.",
      "why": "Riders who use wheelchairs can't plan a trip when accessibility is marked 'unknown'; apps show no information at all."
    }
  ],
  "validator_version": "8.0.1"
}
