Changes between Version 25 and Version 26 of Rules/PublicTransportGtfs


Ignore:
Timestamp:
2020-10-06T18:36:53+02:00 (5 years ago)
Author:
skyper
Comment:

PTNA url change

Legend:

Unmodified
Added
Removed
Modified
  • Rules/PublicTransportGtfs

    v25 v26  
    158158/* {0.tag} without {1.key} or {2.key} (warning level) */
    159159
    160 /* stop_are, stop_position, platform */
     160/* stop_area, stop_position, platform */
    161161*.PtStop[!ref:IFOPT][!gtfs:stop_id][public_transport] {
    162162  throwWarning: tr("`{0}` without `{1}*` or `{2}*`.", "{3.tag}", "{1.tag}", "{2.tag}");
     
    168168/* {0.key} without {1.key}, {2.key} or {3.key} (warning level) */
    169169
    170 /* stop_are, stop_position, platform */
     170/* stop_area, stop_position, platform */
    171171*.PtStop[ref:IFOPT   ][!gtfs:feed][!network:guid][!operator:guid],
    172172*.PtStop[gtfs:stop_id][!gtfs:feed][!network:guid][!operator:guid] {
     
    194194/* {0.tag} without any (warning level) */
    195195
    196 /* platform and stop_position */
     196/* stop_position */
    197197/* ToDo: Check against parent relation vehicle type */
    198198/* 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 */
     201node[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";
    204207}
     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} */
    205219
    206220/* {0.tag} and {1.tag} without {2.key} (warning level) */
     
    391405/* Permanet links to PTNA GTFS */
    392406/* *[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 value with 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=*");
    397411  assertMatch:   "node source=\"https://ptna.openstreetmap.de/gtfs/19\"";
    398412  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\"";
    399414}
    400415