--- a/maxious-canberra-transit-feed/02-tidytimepoints.rb +++ b/maxious-canberra-transit-feed/02-tidytimepoints.rb @@ -1,6 +1,11 @@ require 'rubygems' require 'pp' require 'yaml' +class Array + def to_yaml_style + :inline + end +end Dir.chdir("output") def getTimePoints() @@ -16,7 +21,7 @@ end getTimePoints() -pp $time_points.sort! +#pp $time_points.sort! #pp $time_points_sources.sort time_point_corrections = {"North Lynehamham" => "North Lyneham", @@ -32,9 +37,8 @@ "Lathlain St Station - Platform 4" => "Lathlain St Bus Station - Platform 4", "Lathlain St Station - Platform 5" => "Lathlain St Bus Station - Platform 5", "Lathlain St Station - Platform 6" => "Lathlain St Bus Station - Platform 6", - "Manuka Captain Cook" => "Manuka, Captain Cook", "Flemington Rd, Sandford St" => "Flemington Rd/Sandford St", - "Erindale Centre / - Sternberg Crescent" => "Erindale Drive/Sternberg", + "Erindale Centre /Sternberg Crescent" => "Erindale Drive/Sternberg", "Canberra Hospita" => "Canberra Hospital", "Cohen Str Station - Platform 1" => "Cohen St Bus Station - Platform 1", "Cohen Street Station" => "Cohen St Bus Station", @@ -60,10 +64,20 @@ "Cameron Ave Station - Platform 3" => "Cameron Ave Bus Station - Platform 3", "Cameron Ave Station - Platform 4" => "Cameron Ave Bus Station - Platform 4", "Cameron Ave Station - Platform 5" => "Cameron Ave Bus Station - Platform 5", - "Burton & Garranan Hall, Daley Road ANU" => "Burton & Garran Hall, Daley Road ANU", - "Burton & Garranan Hall,Daley Road ANU" => "Burton & Garran Hall, Daley Road ANU", + "Burton & Garranan Hall, Daley Road ANU" => "Burton & Garran Hall/Daley Road ANU", + "Burton & Garranan Hall,Daley Road ANU" => "Burton & Garran Hall/Daley Road ANU", + "Garran/Daley Rd" => "Burton & Garran Hall/Daley Road ANU", + "Kingstons Ave/National Crt" => "Kings Ave/National Crt", "Newcastle Street after Isa St" => "Newcastle / Isa Street Fyshwick", "National Circ/Canberra Ave" => "National Circuit / Canberra Ave", + "St Clare of Conder" => "St Clare of Assisi Primary", + "McKillop College Isabella Campus" => "MacKillop College Isabella Campus", + "Outrim / Duggan" => "Outtrim / Duggan", + "Manuka Captain Cook" => "Manuka/Captain Cook", + "Manuka, Captain Cook" => "Manuka/Captain Cook", + "Hospice, Menindee Drive" => "Hospice", + "Tharwa/Pocket" => "Tharwa/Pockett", + "Paul-Co / Mirrabei" => "Paul Coe / Mirrabei" } time_point_corrections.each do |wrong, right| $time_points_sources[wrong].each do |wrongfile|