Skip to content

IntercityTransitModifications

CaylaSavitzky edited this page May 2, 2024 · 30 revisions

#summary Intercity Transit (Olympia, WA) GTFS Modifications

Note that this file is designed to be machine readable, so the full wiki syntax should not be used.

{{{

#route id fix {"op":"update","match":{"class":"Agency","id":"IntercityTransit"},"update":{"class":"Agency","id":"19"}}

#ICT branding colors #{"op":"update","match":{"class":"Route","id.id":"m/.*/"},"update":{"route_color":"002F87","route_text_color":"0A4F97"}}

Adjust stop locations

#{"op":"update","match":{"class":"Stop","id.id":"316"},"update":{"lat":47.033928,"lon":-122.897534}} #{"op":"update","match":{"class":"Stop","id.id":"317"},"update":{"lat":47.033879,"lon":-122.899349}}

Fix the stop names - remove direction from name (ex. "[wb]")

{"op":"update","match":{"class":"Stop"},"strings":{"name":{"\s+\[\wb\]\s*$":""}}}

Fix a bad shape

#{"op":"transform","class":"org.onebusaway.gtfs_transformer.updates.ShapeTransformStrategy","shape_id":"44","shape":"g|eGnxlV?sA[aBC{BQoETlED|BVB?rA","match_start":false,"match_end":false} #{"op":"transform","class":"org.onebusaway.gtfs_transformer.updates.ShapeTransformStrategy","shape_id":"46","shape":"g|eGnxlV?sA[aBC{BQoETlED|BVB?rA","match_start":false,"match_end":false}

Fare attributes

#{"op":"add","obj":{"file":"fare_attributes.txt", "fare_id":"1", "price":"1.25", "youth_price":"1.25", "senior_price":"0.5", "currency_type":"USD", "payment_method":"0", "transfers":"" }} #{"op":"add","obj":{"file":"fare_attributes.txt", "fare_id":"2", "price":"3.0", "youth_price":"3.0", "senior_price":"1.25", "currency_type":"USD", "payment_method":"0", "transfers":"" }}

Fare rules

#{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"1" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"10" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"11" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"12" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"13" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"14" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"15" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"16" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"17" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"18" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"2" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"20" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"2", "route":"21" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"23" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"28" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"29" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"33" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"35" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"36" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"2", "route":"37" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"2", "route":"38" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"2", "route":"39" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"5" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"7" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"8" }}" #{"op":"add","obj":{"file":"fare_rules.txt", "fare_id":"1", "route":"9" }}"

Feed info

#{"op":"transform", "class":"org.onebusaway.gtfs_transformer.impl.FeedInfoFromAgencyStrategy", "agency_id":"19"}

for merged feed

{"op":"update","match":{"file":"feed_info.txt"}, "update":{"feed_id": "19"}} }}}

}}}

Clone this wiki locally