Changes between Version 25 and Version 26 of Rules/PublicTransportGtfs
- Timestamp:
- 2020-10-06T18:36:53+02:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Rules/PublicTransportGtfs
v25 v26 158 158 /* {0.tag} without {1.key} or {2.key} (warning level) */ 159 159 160 /* stop_are, stop_position, platform */ 160 /* stop_area, stop_position, platform */ 161 161 *.PtStop[!ref:IFOPT][!gtfs:stop_id][public_transport] { 162 162 throwWarning: tr("`{0}` without `{1}*` or `{2}*`.", "{3.tag}", "{1.tag}", "{2.tag}"); … … 168 168 /* {0.key} without {1.key}, {2.key} or {3.key} (warning level) */ 169 169 170 /* stop_are, stop_position, platform */ 170 /* stop_area, stop_position, platform */ 171 171 *.PtStop[ref:IFOPT ][!gtfs:feed][!network:guid][!operator:guid], 172 172 *.PtStop[gtfs:stop_id][!gtfs:feed][!network:guid][!operator:guid] { … … 194 194 /* {0.tag} without any (warning level) */ 195 195 196 /* platform andstop_position */196 /* stop_position */ 197 197 /* ToDo: Check against parent relation vehicle type */ 198 198 /* ToDo: Extend to check for parent relation value and offer fix */ 199 *[public_transport =~ /^(platform|stop_position)$/][highway!=bus_stop][public_transport].noPtVehicle { 200 throwWarning: tr("`{0}` without serving vehicle type specified.", "{2.tag}"); 201 group: tr("Public Transport GTFS: missing tag"); 202 assertMatch: "relation public_transport=platform"; 203 assertNoMatch: "relation public_transport=platform highway=bus_stop"; 199 /* *[public_transport =~ /^(platform|stop_position)$/][highway!=bus_stop][public_transport].noPtVehicle { */ 200 /* needs check the other way around as access tags are problematic with ways */ 201 node[public_transport=stop_position][highway!=bus_stop].noPtVehicle { 202 throwWarning: tr("`{0}` without serving vehicle type specified.", "{0.tag}"); 203 group: tr("Public Transport GTFS: missing tag"); 204 assertMatch: "node public_transport=stop_position"; 205 assertNoMatch: "node public_transport=stop_position bus=yes"; 206 assertNoMatch: "node public_transport=stop_position highway=bus_stop"; 204 207 } 208 209 /* {0.tag} without any (info level) */ 210 211 /* platform */ 212 /* node[public_transport=platform][highway!=bus_stop].noPtVehicle { 213 throwInfo: tr("`{0}` without serving vehicle type specified.", "{0.tag}"); 214 group: tr("Public Transport GTFS: missing tag"); 215 assertMatch: "node public_transport=platform"; 216 assertNoMatch: "node public_transport=platform bus=yes"; 217 assertNoMatch: "node public_transport=platform highway=bus_stop"; 218 } */ 205 219 206 220 /* {0.tag} and {1.tag} without {2.key} (warning level) */ … … 391 405 /* Permanet links to PTNA GTFS */ 392 406 /* *[JOSM_search("ptna.openstreetmap.de/gtfs")][!JOSM_search("^.*network=([a-zA-Z]+[-]){2,}\\d{4}(-\\d\\d){2}.*$")] { */ 393 *[url =~ /^.*ptna\.openstreetmap\.de\/gtfs.+$/][url !~ /^.*network=([a-zA-Z]+[-]){2,}\d{4}(-\d\d){2}.*$/], 394 *[website =~ /^.*ptna\.openstreetmap\.de\/gtfs.+$/][website !~ /^.*network=([a-zA-Z]+[-]){2,}\d{4}(-\d\d){2}.*$/], 395 *[source =~ /^.*ptna\.openstreetmap\.de\/gtfs.+$/][source !~ /^.*network=([a-zA-Z]+[-]){2,}\d{4}(-\d\d){2}.*$/] { 396 throwWarning: tr("Relative GTFS url in `{0}=*`. Add the `release_date` behind the network valuewith a minus `-` as separator.", "{0.key}");407 *[url =~ /^.*ptna\.openstreetmap\.de\/gtfs.+$/][url !~ /^.*(network=([a-zA-Z]+[-]){2,}|release_date=)\d{4}(-\d\d){2}.*$/], 408 *[website =~ /^.*ptna\.openstreetmap\.de\/gtfs.+$/][website !~ /^.*(network=([a-zA-Z]+[-]){2,}|release_date=)\d{4}(-\d\d){2}.*$/], 409 *[source =~ /^.*ptna\.openstreetmap\.de\/gtfs.+$/][source !~ /^.*(network=([a-zA-Z]+[-]){2,}|release_date=)\d{4}(-\d\d){2}.*$/] { 410 throwWarning: tr("Relative GTFS url in `{0}=*`. Add `{1}` behind the feed or network value.", "{0.key}", "&release_date=*"); 397 411 assertMatch: "node source=\"https://ptna.openstreetmap.de/gtfs/19\""; 398 412 assertNoMatch: "node source=\"https://ptna.openstreetmap.de/gtfs/DE/trips.php?network=DE-BW-VAG-2020-07-28&route_id=10-10-I-j20-1\""; 413 assertNoMatch: "node source=\"https://ptna.openstreetmap.de/gtfs/DE/trips.php?feed=DE-BW-VAG&release_date=2020-07-28&route_id=10-10-I-j20-1\""; 399 414 } 400 415
