Rakefile in airports-1.2.0 vs Rakefile in airports-1.3.0
- old
+ new
@@ -24,10 +24,11 @@
latitude: row[6],
longitude: row[7],
altitude: row[8],
timezone: row[9],
dst: row[10],
+ tz_name: row[11],
}
end
# Hyderabad (HYD) is missing, so add it in
cleaned_data["HYD"] = {
@@ -39,9 +40,10 @@
latitude: "17.2403",
longitude: "78.4294",
altitude: nil,
timezone: "N",
dst: "5.5",
+ tz_name: "Asia/Calcutta"
}
cleaned_data = cleaned_data.reject { |code, _| code.nil? || code == "" }
File.open("data/airports.json", "w").puts JSON.generate(cleaned_data)