{
  "agency": {
    "country": "ES",
    "id": "tram-barcelona-tbs",
    "name": "TRAM Barcelona (Trambes\u00f2s)",
    "operating_note": "A distinct published feed from the same platform as the Trambaix record.",
    "subdivision_code": "ES-B",
    "subdivision_name": "Barcelona [Barcelona]"
  },
  "categories": {
    "completeness": {
      "details": {
        "accessibility": {
          "measures": "presence_not_usability",
          "score": 98.9,
          "stops_marked_accessible_pct": 98.3,
          "stops_marked_not_accessible_pct": 0.0,
          "stops_stated_pct": 98.3,
          "trips_stated_pct": 100.0
        },
        "accessibility_measures": "presence_not_usability",
        "cemv": {
          "declared": false,
          "supported": false
        },
        "components": {
          "contact": 15.0,
          "fares": 0.0,
          "headsigns": 7.7,
          "stop_names": 15.0,
          "wheelchair_stops": 24.6,
          "wheelchair_trips": 15.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_applicable_trips": 34725,
        "headsign_loop_exempt_trips": 0,
        "headsign_pct": 51.4,
        "headsign_scored_pct": 51.4,
        "mixed_case_stop_name_pct": 100.0,
        "pathways": {
          "has_entrances": false,
          "has_levels": false,
          "has_pathways": false,
          "has_stations": false,
          "has_step_free": false,
          "pathway_count": 0
        },
        "stops": 58,
        "translations": {
          "feed_lang": "ca",
          "has_translations": false,
          "languages": [],
          "translated_tables": [],
          "translation_count": 0
        },
        "trips": 34725,
        "unmeasured_components": [],
        "wheelchair_accessible_pct": 100.0,
        "wheelchair_boarding_pct": 98.3,
        "wheelchair_marked_accessible_pct": 98.3,
        "wheelchair_marked_not_accessible_pct": 0.0
      },
      "findings": [
        {
          "code": "scorecard_wheelchair_boarding_unknown",
          "count": 1,
          "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": 0.4,
          "severity": "WARNING",
          "what": "1 of 58 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": 1,
          "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": 0.0,
          "severity": "WARNING",
          "what": "1 of 34725 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_missing_headsigns",
          "count": 16872,
          "effort": "Usually one value per route pattern in your scheduling source.",
          "fix": "Add the destination, direction, or 'via' label riders actually see to trip_headsign. Do not copy the route name. If the label changes during the trip, use stop_headsign.",
          "owner": "",
          "points": 7.3,
          "severity": "WARNING",
          "what": "16872 of 34725 trips have no headsign, the text that tells riders where the transit vehicle is going.",
          "why": "When a route has multiple directions or patterns, the route name alone may not tell riders which service is coming."
        }
      ],
      "name": "completeness",
      "score": 77.3,
      "status": "measured",
      "summary": "98% of stops state wheelchair accessibility (98% 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": 10,
        "instances_by_severity": {
          "ERROR": 37,
          "INFO": 0,
          "WARNING": 4
        },
        "validator_version": "8.0.1"
      },
      "findings": [
        {
          "code": "invalid_integer",
          "count": 15,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'invalid_integer' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 18.0,
          "severity": "ERROR",
          "what": "Invalid integer (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "invalid_date",
          "count": 5,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'invalid_date' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 12.0,
          "severity": "ERROR",
          "what": "Invalid date (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "invalid_url",
          "count": 5,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'invalid_url' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 12.0,
          "severity": "ERROR",
          "what": "Invalid url (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "invalid_float",
          "count": 4,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'invalid_float' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 12.0,
          "severity": "ERROR",
          "what": "Invalid float (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "invalid_color",
          "count": 2,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'invalid_color' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 12.0,
          "severity": "ERROR",
          "what": "Invalid color (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "invalid_language_code",
          "count": 2,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'invalid_language_code' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 12.0,
          "severity": "ERROR",
          "what": "Invalid language code (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "invalid_time",
          "count": 2,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'invalid_time' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 12.0,
          "severity": "ERROR",
          "what": "Invalid time (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "invalid_phone_number",
          "count": 1,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'invalid_phone_number' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 12.0,
          "severity": "ERROR",
          "what": "Invalid phone number (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "invalid_timezone",
          "count": 1,
          "effort": "Varies.",
          "fix": "Review the rule documentation for 'invalid_timezone' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
          "owner": "",
          "points": 12.0,
          "severity": "ERROR",
          "what": "Invalid timezone (flagged by the MobilityData validator).",
          "why": "See the linked rule for what this affects."
        },
        {
          "code": "non_ascii_or_non_printable_char",
          "count": 4,
          "effort": "A planned ID change, not a quick text cleanup.",
          "fix": "Only change the flagged IDs if an app needs basic ASCII values. Update each place that uses the ID. Keep all names and headsigns in their original language.",
          "owner": "",
          "points": 4.0,
          "severity": "WARNING",
          "what": "Some internal IDs use characters outside the basic text set.",
          "why": "These IDs are valid UTF-8 data. This warning is only about support in older apps. It does not mean that names in other languages are wrong."
        }
      ],
      "name": "correctness",
      "score": 0.0,
      "status": "measured",
      "summary": "The MobilityData validator flagged 10 kinds of issue across 41 instances (37 error, 4 warning, 0 informational).",
      "weight": 0.35
    },
    "freshness": {
      "details": {
        "days_until_expiry": 122,
        "effective_expiry_date": "2026-12-31",
        "feed_end_date": "2026-12-31",
        "feed_start_date": "2024-05-08",
        "feed_version": "68",
        "has_feed_info": true,
        "last_service_date": "2026-12-31",
        "seasonal_boundary": false,
        "service_horizon_review_years": 10,
        "service_horizon_status": "within_review_threshold",
        "service_type": "fixed"
      },
      "findings": [],
      "name": "freshness",
      "score": 100.0,
      "status": "measured",
      "summary": "Service data covers the next 122 days.",
      "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 official feed URL on file."
    ],
    "rt_windows": 0,
    "total_categories": 4
  },
  "conformance": {
    "awarded": false,
    "criteria": [
      {
        "detail": "9 validator errors to resolve.",
        "key": "valid",
        "met": false
      },
      {
        "detail": "Service data covers the next 122 days.",
        "key": "current",
        "met": true
      },
      {
        "detail": "States wheelchair access on 98% of stops and 100% of trips.",
        "key": "accessible",
        "met": true
      }
    ],
    "status": "not_yet",
    "summary": "One requirement remains for this feed to earn the conformance mark. 9 validator errors to resolve.",
    "version": 2
  },
  "feed": {
    "license_note": "TRAM General Conditions permitting reuse with attribution.",
    "reachable": true,
    "sha256": "f8dd64e6d89aa07a78fd611cc565d8fd9dac1980ee4c0cf2bbdf9022067331ba",
    "size_bytes": 3351979,
    "source_provenance": "official",
    "static_url": "https://opendata.tram.cat/GTFS/zip/TBS.zip"
  },
  "fetch": {
    "final_url": "https://opendata.tram.cat/GTFS/zip/TBS.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-08-31T00:00:00+00:00",
  "geo": {
    "bbox": [
      2.05337,
      41.35667,
      2.23322,
      41.43997
    ],
    "lat": 41.39051,
    "lon": 2.14317,
    "stop_count": 57
  },
  "mode_profile": {
    "ferry_only": false,
    "graded": false,
    "has_ferry": false,
    "is_multimodal": true,
    "measured": true,
    "modes": [
      {
        "key": "tram",
        "label": "Tram / light rail",
        "route_count": 6,
        "trip_count": 34724,
        "trip_share_pct": 100.0
      },
      {
        "key": "other",
        "label": "Other / unclassified",
        "route_count": 1,
        "trip_count": 1,
        "trip_share_pct": 0.0
      }
    ],
    "primary_mode": "tram",
    "primary_mode_label": "Tram / light rail",
    "route_count": 7,
    "trip_count": 34725
  },
  "overall": {
    "grade": "F",
    "margin_to_lower_band": 49.2,
    "margin_to_next_band": 10.8,
    "score": 49.2
  },
  "recommendations": [],
  "routability": {
    "boardable_stops": 58,
    "findings": [
      {
        "code": "scorecard_single_stop_trips",
        "count": 1,
        "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": "1 of 34725 trips list fewer than two stops.",
        "why": "A trip with one stop has no ride in it. Trip planners can't put a rider on that trip at all."
      }
    ],
    "orphan_stops": 0,
    "single_stop_trips": 1,
    "trips_total": 34725
  },
  "route_map": {
    "drawn_route_count": 6,
    "has_shapes": true,
    "path": "data/artifacts/tram-barcelona-tbs/geometry.geojson",
    "route_count": 7,
    "routes": [
      {
        "color": "008272",
        "color_name": "green",
        "has_shape": true,
        "id": "1",
        "label": "T1",
        "long": "Bon Viatge-Francesc Maci\u00e0",
        "short": "T1",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "008272",
        "color_name": "green",
        "has_shape": true,
        "id": "2",
        "label": "T2",
        "long": "Llevant_Les Planes-Francesc Maci\u00e0",
        "short": "T2",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "008272",
        "color_name": "green",
        "has_shape": true,
        "id": "3",
        "label": "T3",
        "long": "Sant Feliu|Consell Comarcal-Francesc Maci\u00e0",
        "short": "T3",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "008272",
        "color_name": "green",
        "has_shape": true,
        "id": "4",
        "label": "T4",
        "long": "Estaci\u00f3 de Sant Adri\u00e0-Verdaguer",
        "short": "T4",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "008272",
        "color_name": "green",
        "has_shape": true,
        "id": "5",
        "label": "T5",
        "long": "Gorg-Ciutadella|Vila Ol\u00edmpica",
        "short": "T5",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "008272",
        "color_name": "green",
        "has_shape": true,
        "id": "6",
        "label": "T6",
        "long": "Estaci\u00f3 de Sant Adri\u00e0-Ciutadella|Vila Ol\u00edmpica",
        "short": "T6",
        "text_color": "FFFFFF",
        "type_label": "Tram / light rail"
      },
      {
        "color": "4A4A4A",
        "color_name": "green",
        "has_shape": false,
        "id": "route_id",
        "label": "route_short_name",
        "long": "route_long_name",
        "short": "route_short_name",
        "text_color": "FFFFFF",
        "type_label": "Transit line"
      }
    ],
    "stop_count": 57,
    "stop_points_capped": false
  },
  "rubric_version": "1.3",
  "schema_version": "1.18",
  "scoring_profile": {
    "id": "gtfs-scorecard-1.3",
    "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.3"
  },
  "snapshot_date": "2026-08-31",
  "top_fixes": [
    {
      "code": "invalid_integer",
      "count": 15,
      "effort": "Varies.",
      "fix": "Review the rule documentation for 'invalid_integer' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
      "owner": "",
      "points": 18.0,
      "rank": 1,
      "severity": "ERROR",
      "what": "Invalid integer (flagged by the MobilityData validator).",
      "why": "See the linked rule for what this affects."
    },
    {
      "code": "invalid_date",
      "count": 5,
      "effort": "Varies.",
      "fix": "Review the rule documentation for 'invalid_date' 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": "Invalid date (flagged by the MobilityData validator).",
      "why": "See the linked rule for what this affects."
    },
    {
      "code": "invalid_url",
      "count": 5,
      "effort": "Varies.",
      "fix": "Review the rule documentation for 'invalid_url' at https://gtfs-validator.mobilitydata.org/rules.html and check the flagged rows in your feed.",
      "owner": "",
      "points": 12.0,
      "rank": 3,
      "severity": "ERROR",
      "what": "Invalid url (flagged by the MobilityData validator).",
      "why": "See the linked rule for what this affects."
    }
  ],
  "validator_version": "8.0.1"
}
