office-national-des-chemins-de-fer — Source Data Validation Report

This report was generated by the Canonical GTFS Schedule validator, version 7.1.0 at 2026-03-23T17:58:19Z,
for the dataset file:///shared/office-national-des-chemins-de-fer_bfa56cc1.zip. No country code was provided.

Use this report alongside our documentation.

Summary

Agencies included


  • Office National des Chemins de Fer

Feed Info


Publisher Name:
Rail Maroc Community
Feed Email:
N/A
Feed Language:
French
Feed Start Date:
2024-01-01
Feed End Date:
2025-12-31

Files included


  1. agency.txt
  2. calendar.txt
  3. feed_info.txt
  4. routes.txt
  5. shapes.txt
  6. stop_times.txt
  7. stops.txt
  8. trips.txt

Counts


  • Agencies: 1
  • Blocks: 0
  • Routes: 9
  • Shapes: 9
  • Stops: 33
  • Trips: 60

Specification Compliance report

83 notices reported (17 errors, 33 warnings, 33 infos)

Notice Code Severity Total
location_with_unexpected_stop_time ERROR 17

location_with_unexpected_stop_time

A location in stops.txt that is not a stop is referenced by some stop_times.stop_id.

Referenced locations (using stop_times.stop_id) must be stops/platforms, i.e. their stops.location_type value must be 0 or empty.

You can see more about this notice here.

csvRowNumber (?) The row number of the faulty record from `stops.txt`. stopId (?) The id of the faulty record from `stops.txt`. stopName (?) The `stops.stop_name` of the faulty record. stopTimeCsvRowNumber (?) The row number of the faulty record from `stop_times.txt`.
2 "TANGER_VILLE" "Tanger-Ville" 2
5 "KENITRA" "Kénitra" 3
7 "RABAT_AGDAL" "Rabat-Agdal" 4
8 "RABAT_VILLE" "Rabat-Ville" 183
9 "SALE" "Salé" 184
10 "SALE_TABRIQUET" "Salé-Tabriquet" 185
11 "CASA_VOYAGEURS" "Casa-Voyageurs" 5
12 "CASA_PORT" "Casa-Port" 176
14 "AIN_SEBAA" "Aïn Sebaâ" 177
15 "MOHAMMEDIA" "Mohammedia" 178
16 "BOUZNIKA" "Bouznika" 179
17 "SKHIRAT" "Skhirat" 180
18 "TEMARA" "Témara" 181
21 "MARRAKECH" "Marrakech" 87
22 "MEKNES" "Meknès" 130
23 "FES" "Fès" 131
34 "SIDI_KACEM" "Sidi Kacem" 161
equal_shape_distance_same_coordinates WARNING 3

equal_shape_distance_same_coordinates

Two consecutive points have equal shape_dist_traveled and the same lat/lon coordinates in shapes.txt.

When sorted by shape.shape_pt_sequence, the values for shape_dist_traveled must increase along a shape. Two consecutive points with equal values for shape_dist_traveled and the same coordinates indicate a duplicative shape point.

You can see more about this notice here.

shapeId (?) The id of the faulty shape. csvRowNumber (?) The row number from `shapes.txt`. shapeDistTraveled (?) Actual distance traveled along the shape from the first shape point to the faulty record. shapePtSequence (?) The faulty record's `shapes.shape_pt_sequence`. prevCsvRowNumber (?) The row number from `shapes.txt` of the previous shape point. prevShapeDistTraveled (?) Actual distance traveled along the shape from the first shape point to the previous shape point. prevShapePtSequence (?) The previous record's `shapes.shape_pt_sequence`.
"AL_ATLAS_CASA_OUJDA" 8876 11367.6 138 8875 11367.6 137
"AL_ATLAS_MKC_FES" 16024 256351.7 1840 16023 256351.7 1839
"AL_ATLAS_CASA_FES" 6957 11367.6 138 6956 11367.6 137
expired_calendar WARNING 3

expired_calendar

Dataset should not contain date ranges for services that have already expired.

This warning takes into account the calendar_dates.txt file as well as the calendar.txt file.

You can see more about this notice here.

csvRowNumber (?) The row of the faulty record. serviceId (?) The service id of the faulty record.
2 "WEEKDAY"
3 "WEEKEND"
4 "DAILY"
feed_expiration_date7_days WARNING 1

feed_expiration_date7_days

Dataset should be valid for at least the next 7 days.

The dataset expiration date defined in feed_info.txt is in seven days or less. At any time, the published GTFS dataset should be valid for at least the next 7 days.

You can see more about this notice here.

csvRowNumber (?) The row number of the faulty record. currentDate (?) Current date (YYYYMMDD format). feedEndDate (?) Feed end date (YYYYMMDD format). suggestedExpirationDate (?) Suggested expiration date (YYYYMMDD format).
2 "20260323" "20251231" "20260330"
missing_feed_contact_email_and_url WARNING 1

missing_feed_contact_email_and_url

Best Practices for feed_info.txt suggest providing at least one of feed_contact_email and feed_contact_url.

You can see more about this notice here.

csvRowNumber (?) The row number of the validated record.
2
same_route_and_agency_url WARNING 9

same_route_and_agency_url

Same routes.route_url and agency.agency_url.

A route should not have the same routes.route_url as a record from agency.txt.

You can see more about this notice here.

routeCsvRowNumber (?) The row number of the faulty record from `routes.txt`. routeId (?) The faulty record's id. agencyName (?) The faulty record's referenced agency name. routeUrl (?) The duplicate URL value agencyCsvRowNumber (?) The row number of the faulty record from `agency.txt`.
2 "AL_BORAQ_TNG_CASA" "Office National des Chemins de Fer" "https://www.oncf.ma" 2
3 "AL_BORAQ_TNG_MKC" "Office National des Chemins de Fer" "https://www.oncf.ma" 2
4 "AL_ATLAS_CASA_MKC" "Office National des Chemins de Fer" "https://www.oncf.ma" 2
5 "AL_ATLAS_CASA_FES" "Office National des Chemins de Fer" "https://www.oncf.ma" 2
6 "AL_ATLAS_CASA_OUJDA" "Office National des Chemins de Fer" "https://www.oncf.ma" 2
7 "AL_ATLAS_TNG_FES" "Office National des Chemins de Fer" "https://www.oncf.ma" 2
8 "TNR_CASA_KENITRA" "Office National des Chemins de Fer" "https://www.oncf.ma" 2
9 "AL_ATLAS_CASA_JADIDA" "Office National des Chemins de Fer" "https://www.oncf.ma" 2
10 "AL_ATLAS_NADOR_CASA" "Office National des Chemins de Fer" "https://www.oncf.ma" 2
stop_too_far_from_shape WARNING 9

stop_too_far_from_shape

Stop too far from trip shape.

Per GTFS Best Practices, route alignments (in shapes.txt) should be within 100 meters of stop locations which a trip serves. This potentially indicates a problem with the location of the stop or the path of the shape.

You can see more about this notice here.

tripCsvRowNumber (?) The row number of the faulty record from `trips.txt`. shapeId (?) The id of the shape that is referred to. tripId (?) The id of the trip that is referred to. stopTimeCsvRowNumber (?) The row number of the faulty record from `stop_times.txt`. stopId (?) The id of the stop that is referred to. stopName (?) The name of the stop that is referred to. match (?) Latitude and longitude pair of the location. geoDistanceToShape (?) Distance from stop to shape.
2 "AL_BORAQ_TNG_CASA" "AB_TNG_CASA_0600" 2 "TANGER_VILLE" "Tanger-Ville" [35.731089,-5.797752000000001] 4933.398969541499
2 "AL_BORAQ_TNG_CASA" "AB_TNG_CASA_0600" 3 "KENITRA" "Kénitra" [34.25992751513827,-6.5707445978819985] 877.108754047687
2 "AL_BORAQ_TNG_CASA" "AB_TNG_CASA_0600" 4 "RABAT_AGDAL" "Rabat-Agdal" [34.006493,-6.850453999999999] 185.23644817252932
2 "AL_BORAQ_TNG_CASA" "AB_TNG_CASA_0600" 5 "CASA_VOYAGEURS" "Casa-Voyageurs" [33.599169999999994,-7.612305000000001] 644.9909246685695
23 "AL_ATLAS_CASA_MKC" "AT_CASA_MKC_0700" 86 "CASA_VOYAGEURS" "Casa-Voyageurs" [33.599169999999994,-7.612305000000001] 644.9909246685695
44 "AL_ATLAS_CASA_FES" "AT_CASA_FES_0700" 128 "CASA_VOYAGEURS" "Casa-Voyageurs" [33.599169999999994,-7.612305000000001] 644.9909246685695
44 "AL_ATLAS_CASA_FES" "AT_CASA_FES_0700" 129 "RABAT_AGDAL" "Rabat-Agdal" [34.006493,-6.850453999999999] 185.23644817252932
44 "AL_ATLAS_CASA_FES" "AT_CASA_FES_0700" 130 "MEKNES" "Meknès" [33.89593907060699,-5.538161859008735] 1229.3800182032473
44 "AL_ATLAS_CASA_FES" "AT_CASA_FES_0700" 131 "FES" "Fès" [34.016376,-5.0437199999999995] 6228.870257173598
trip_coverage_not_active_for_next7_days WARNING 1

trip_coverage_not_active_for_next7_days

Trips data should be valid for at least the next seven days.

This notice is triggered if the date range where a significant number of trips are running ends in less than 7 days.

You can see more about this notice here.

currentDate (?) Current date (YYYYMMDD format). serviceWindowStartDate (?) The start date of the majority service window. serviceWindowEndDate (?) The end date of the majority service window.
"20260323" "20240101" "20251231"
unused_shape WARNING 6

unused_shape

Shape is not used in GTFS file trips.txt.

All records defined by GTFS shapes.txt should be used in trips.txt.

You can see more about this notice here.

shapeId (?) The faulty record's id. csvRowNumber (?) The row number of the faulty record.
"AL_BORAQ_TNG_MKC" 1652
"AL_ATLAS_CASA_OUJDA" 8739
"AL_ATLAS_MKC_FES" 14185
"TNR_CASA_AIRPORT" 17806
"TNR_CASA_SETTAT" 17884
"TNR_KENITRA_CASA" 18439
unused_station INFO 33

unused_station

Unused station.

A stop has location_type STATION (1) but does not appear in any stop's parent_station.

You can see more about this notice here.

csvRowNumber (?) The row number of the faulty record. stopId (?) The id of the faulty stop. stopName (?) The name of the faulty stop.
21 "MARRAKECH" "Marrakech"
5 "KENITRA" "Kénitra"
19 "SETTAT" "Settat"
34 "SIDI_KACEM" "Sidi Kacem"
32 "OUED_ZEM" "Oued Zem"
26 "OUJDA" "Oujda"
9 "SALE" "Salé"
4 "ASILAH" "Asilah"
3 "TANGER_BORAQ" "Tanger Al Boraq"
10 "SALE_TABRIQUET" "Salé-Tabriquet"
29 "EL_JADIDA" "El Jadida"
7 "RABAT_AGDAL" "Rabat-Agdal"
2 "TANGER_VILLE" "Tanger-Ville"
8 "RABAT_VILLE" "Rabat-Ville"
11 "CASA_VOYAGEURS" "Casa-Voyageurs"
12 "CASA_PORT" "Casa-Port"
33 "BENI_MELLAL" "Béni Mellal"
15 "MOHAMMEDIA" "Mohammedia"
18 "TEMARA" "Témara"
24 "TAZA" "Taza"
6 "KENITRA_MEDINA" "Kénitra-Medina"
17 "SKHIRAT" "Skhirat"
23 "FES" "Fès"
25 "TAOURIRT" "Taourirt"
30 "SAFI" "Safi"
13 "CASA_OASIS" "Casa-Oasis"
20 "BEN_GUERIR" "Ben Guerir"
28 "BERKANE" "Berkane"
14 "AIN_SEBAA" "Aïn Sebaâ"
16 "BOUZNIKA" "Bouznika"
22 "MEKNES" "Meknès"
27 "NADOR" "Nador"
31 "KHOURIBGA" "Khouribga"