--[==[ To inspect the content of this data module, use [[Special:ExpandTemplates]]and enter the following input text:
To inspect the content of this data module when editing, enter the followinginto the Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p))To inspect a particular route type, change `p` above to include the route type,e.g., `p.I` and `p["US-Hist"]`.]
-- Ontariolocal ON =
local util = require("Module:Road data/util")util.addAll(ON, require("Module:Road data/strings/CAN"))
ON.ON =
ON.Hwy = ON.ONON.Highway = ON.ON
ON.Fwy =
ON.Secondary =
ON.Sec = ON.Secondary
ON.Shield =
ON.Tertiary =
ON.Ter = ON.Tertiary
ON.Toll =
ON["Toll Shield"] =
ON.TS = ON["Toll Shield"]
ON.ETR =
ON.Both =
ON["ON 1960"] =
for k, v in pairs(ON) do if k:find ("TCH") then v.shield = "Trans-Canada Highway shield.svg" v.orientation = "upright" endend
ON.QEW =
-- Great Lakes parkways ONLYON.Parkway =
-- add new types above this line if you want it to have the provincial highway browse and maintfor k, v in pairs(ON) do if k:find ("^%a") then v.maint = "Ministry of Transportation of Ontario" endend
-- Municipal expressways ONLYON.Expressway =
-- Toronto municipal expresswaysON.Toronto =
ON.TO = ON.TorontoON.Tor = ON.Toronto
-- National Capital Commission parkwaysON.NCC =
-- Specific divisional roadslocal divisions =
-- For generic belowlocal regionalShields = local regionalShieldmains =
for division, def in pairs(divisions) do ON[division] = if def.shield then regionalShields[division] = def.shield end if def.shieldmain then regionalShieldmains[division] = def.shieldmain end if def.aliases then for _, alias in ipairs(def.aliases) do ON[alias] = ON[division] end endend
ON.Perth =
regionalShieldmains.Perth = ON.Perth.shieldmainON['Perth County Line'] = ON.PerthON.PCL = ON.Perth
-- Generic divisonal roads using the "county" argumentfor _, type in ipairs do ON[type] = end
ON.CR = ON.CountyON.DR = ON.DistrictON.MR = ON.MunicipalON.RR = ON.Regional
ON.RH =
ON.CH =
ON.A = ON.I = ON.NY = ON.Tour =
return ON