--- 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,7 +37,6 @@ "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", "Canberra Hospita" => "Canberra Hospital", @@ -60,15 +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", - "Garran/Daley Rd" => "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|