Module:Road data/strings/USA/NY

From Omniversalis

Documentation for this module may be created at Module:Road data/strings/USA/NY/doc

--New York
local NY = {}

NY.I = {shield = "I-%route%.svg",
        link = "Interstate %route% (New York)",
        abbr = "I-%route%",
        width = "expand"}

NY["I-Future"] = {shield = "I-%route% (Future).svg",
        link = NY.I.link,
        abbr = "Future I-%route%",
        width = "expand"}
 
NY.Future=NY["I-Future"]

NY["I 1957"] = {shield = "I-%route% (NY 1957).svg",
                link = NY.I.link,
                abbr = NY.I.abbr}
                
NY.BL = {shield = "Business Loop %route%.svg",
         link = "Interstate %route% Business ([dab||%dab%, |]New York)",
         abbr = "I-%route% Bus.",
         width = "expand"}

NY.US = {shield = "US %route%.svg",
         link = "U.S. Route %route% in New York",
         abbr = "US %route%",
         width = "expand"}

NY["US 1926"] = {shield = "US %route% New York 1926.svg",
         link = NY.US.link,
         abbr = NY.US.abbr}         

NY["US 1948"] = {shield = "US %route% (1948).svg",
         link = NY.US.link,
         abbr = NY.US.abbr}
         
NY["US 1961"] = {shield = "US %route% (1961).svg",
         link = NY.US.link,
         abbr = NY.US.abbr}

NY["US-Bus"] = {shield = NY.US.shield,
                link = "U.S. Route %route% Business ([dab||%dab%, |]New York)",
                abbr = "US %route% Bus.",
                banner = "Business plate.svg",
                width = "expand"}

NY["US-Truck"] = {shield = NY.US.shield,
                  link = "U.S. Route %route% Truck ([dab||%dab%, |]New York)",
                  abbr = "US %route% Truck",
                  banner = "Truck plate.svg",
                  width = "expand"}

NY.NY = {shield = "NY-%route%.svg",
         link = "New York State Route %route% [dab||(%dab%)|]",
         abbr = "NY %route%",
         width = "expand"}

NY.SR = NY.NY

NY.Ref = {shield = "", 			--Reference routes
		  link = NY.NY.link,
		  abbr = NY.NY.abbr}

NY["NY 1927"] = {shield = "NY-%route% (1927).svg",
         link = NY.NY.link,
         abbr = NY.NY.abbr}

NY["NY 1948"] = {shield = "NY-%route% (1948).svg",
         link = NY.NY.link,
         abbr = NY.NY.abbr}
         
NY["NY 1955"] = {shield = "NY-%route% (1955).svg",
         link = NY.NY.link,
         abbr = NY.NY.abbr}

NY["NY 1960"] = {shield = "NY-%route% (1960).svg",
         link = NY.NY.link,
         abbr = NY.NY.abbr}
         
NY["NY-Alt"] = {shield = NY.NY.shield,
                link = "New York State Route %route% Alternate [dab||(%dab%)|]",
                abbr = "NY %route% Alt.",
                banner = "Alt plate.svg",
                width = "expand"}

NY["NY-Bus"] = {shield = NY.NY.shield,
                link = "New York State Route %route% Business [dab||(%dab%)|]",
                abbr = "NY %route% Bus.",
                banner = "Business plate.svg",
                width = "expand"}

NY["NY-Byp"] = {shield = NY.NY.shield,
                link = "New York State Route %route% Bypass [dab||(%dab%)|]",
                abbr = "NY %route% Byp.",
                banner = "Bypass plate.svg",
                width = "expand"}
                
NY["NY-Spur"] = {shield = NY.NY.shield,
                 link = "New York State Route %route% Spur [dab||(%dab%)|]",
                 abbr = "NY %route% Spur",
                 banner = "Spur plate.svg",
                 width = "expand"}
                 
NY["NY-Truck"] = {shield = NY.NY.shield,
                  link = "New York State Route %route% Truck [dab||(%dab%)|]",
                  abbr = "NY %route% Truck",
                  banner = "Truck plate.svg",
                  width = "expand"}

NY.NYST = {shield = "NYS Thruway Sign.svg",
           link = "New York State Thruway",
           abbr = "New York Thruway",
           bannersuffix = "blue"}

NY.NYBC = {shield = "NYS Thruway Sign.svg",
			link = "Berkshire Connector",
			abbr = "Berkshire Connector",
            bannersuffix = "blue"}

NY.CR = {shield = {ifexists   = true,
                   arg        = "county",
                   default    = "CR %route% jct.svg",
                   Albany		= "CR %route% jct wide.svg",
                   Broome		= {hook = "splitlen",
                           split = 3,
                           below = "CR %route% jct.svg", 
                           above = "CR %route% jct wide.svg"},
                   Cayuga		= "",
                   Columbia		= {["21C"] = "CR 21C jct wide.svg",
                 					default = "CR %route% jct.svg"},
                   Clinton		= "",
                   Cortland		= "",
                   Dutchess		= {hook = "splitlen",
                           split = 3,
                           below = "CR %route% jct.svg", 
                           above = "CR %route% jct wide.svg"},
                   Erie			= "Erie County %route% NY.svg",
                   Franklin		= "Franklin County %route% NY.svg",
                   Fulton		= "CR %route% jct wide.svg",
                   Genesee		= "",
                   Herkimer		= "",
                   Monroe		= "",
                   Montgomery	= "",
                   Nassau		= "",
                   Niagara		= "",
                   Onandaga		=  {["57"] = "CR 57 jct.svg",
                 					default = ""},
                   Oneida		=  {["840"] = "CR 840 jct wide.svg",
                 					default = "CR %route% jct.svg"},
                   Ontario		= "",
                   Orleans		= "",
                   Schenectady	= "",
                   Seneca		= "",
                   Steuben		=  {["333"] = "CR 333 jct wide.svg",
                 					default = "CR %route% jct.svg"},
                   Wayne		= "",
                   Westcheser	= "",
                   Wyoming		= "",
                   Yates		= ""},
         link = "County Route %route% (%county% County, New York)", --ifexist
         abbr = "CR %route%",
         width = {ifexists   = true,
                   arg		= "county",
                   default 	= "square",
                   Albany	= "wide",
                   Columbia	= {["21C"] = "wide",
                 					default = "square"},
                   Erie		= "16",
                   Fulton	= "wide",
                   Oneida	= 	{["840"] = "wide",
                 				default = "square"},
                   Steuben	= 	{["333"] = "wide",
                 				default = "square"}},
		bannersuffix = {
			arg = "county",
			Franklin = "green"
		}
}
NY["CR-Truck"] = {shield = NY.CR.shield,
                  link = "County Route %route% Truck ([county||%county% County, |]New York)",
                  abbr = NY.CR.abbr .." Truck",
                  banner = "Truck plate county.svg"}
                  
NY.ILR = {shield = "Rochester Inner Loop.svg",
          link = "Inner Loop (Rochester)",
          abbr = "Inner Loop",
          width = "wide"}

NY.LSEX = {shield = "LaSalle Expy.svg",
           link = "LaSalle Expressway",
           abbr = "LaSalle Expressway",
            bannersuffix = "green"}

NY.STE = {shield = "Southern Tier Expressway.svg",
          link = "Southern Tier Expressway",
          abbr = "Southern Tier Expressway",
            bannersuffix = "green"}

local pkwys = {
	-- link-suffix => parkways
	-- Do not list "Parkway" link-suffix.
	[""] = {
		["Saw Mill"] = "Saw Mill River Parkway",
		["Robert Moses Cswy"] = "Robert Moses Causeway"
	},
	Drive = {
		["FDR"] = "Franklin D. Roosevelt East River",
		"Harlem River",
		"Seven Lakes"
	},
	["Interstate Parkway"] = {
		"Palisades"
	},
	Road = {
		"Arden Valley",
		"Tiorati Brook"
	},
	["State Parkway"] = {
		"Bear Mountain",
		"Caumsett",
		"Lake Ontario",
		"Robert Moses",
		"Taconic",
	}
}
local pkwyAbbrs = {
	-- link-suffix => abbr-suffix
	["Interstate Parkway"] = "Parkway"
}
local pkwyLIPkwys = {
	-- Parkways in Long Island that do not end with "State Parkway"
	"Loop",
	"Ocean",
	"Robert Moses Cswy",
}
local pkwyLIStatePkwys = {
	-- Parkways in Long Island that end with "State Parkway"
	"Bethpage",
	"Heckscher",
	"Meadowbrook",
	"Northern",
	"Sagtikos",
	"Southern",
	"Sunken Meadow",
	"Wantagh"
}
for _,pkwy in ipairs(pkwyLIStatePkwys) do
	table.insert(pkwyLIPkwys, pkwy)
	table.insert(pkwys["State Parkway"], pkwy)
end
local pkwyPIPPkwys = {
	-- Parkways maintained by Palisades Interstate Park Commission
	"Lake Welch",
	"Palisades"
}
for _,pkwy in ipairs(pkwys.Road) do
	table.insert(pkwyPIPPkwys, pkwy)
end
NY.Parkway = {
	shield = {
		default = "%route% Pkwy Shield.svg",
		Bay = "",
		["Long Mountain"] = "",
	},
	link = {default = "%route% Parkway [dab||(%dab%)|]"},
	abbr = {default = "%route% Parkway"},
              width = {default = 'wide',
                       ["Arden Valley"] = 'square',
                       Bethpage = 'square',
                       Caumsett = 'square',
                       Heckscher = 'square',
                       ["Lake Ontario"] = 'square',
                       ["Lake Welch"] = 'square',
                       Loop = 'square',
                       Meadowbrook = 'square',
                       ["Niagara Scenic"] = 'square',
                       Northern = 'square',
                       Ocean = 'square',
                       Palisades = 'square',
                       Ponquogue = 'square',
                       ["Robert Moses"] = 'square',
                       ["Robert Moses Cswy"] = 'square',
                       Sagtikos = 'square',
                       ["Seven Lakes"] = 'square',
                       ["Sound Shore"] = 'square',
                       Southern = 'square',
                       ["Sunken Meadow"] = 'square',
                       ["Tiorati Brook"] = 'square',
                       Wantagh = 'square'},
	bannersuffix = {
		default = "green",
	--	["Garden State"] = "GSP",
		["Grand Central"] = "",
	}
}
for suffix,list in pairs(pkwys) do
	local abbrSuffix = pkwyAbbrs[suffix] or suffix
	for abbr,pkwy in pairs(list) do
		if type(abbr) == "number" then abbr = pkwy end
		if suffix == "" then
			NY.Parkway.link[abbr] = pkwy
			NY.Parkway.abbr[abbr] = pkwy
		else
			NY.Parkway.link[abbr] = pkwy .. " " .. suffix
			if abbrSuffix ~= "Parkway" then
				NY.Parkway.abbr[abbr] = abbr .. " " .. abbrSuffix
			end
		end
	end
end
for _,pkwy in ipairs(pkwyLIPkwys) do
	NY.Parkway.bannersuffix[pkwy] = ""
end
for _,pkwy in ipairs(pkwyPIPPkwys) do
	NY.Parkway.bannersuffix[pkwy] = "brown"
end

NY.Tour = {shield = {default = "Great Lakes Circle Tour.svg",
                     LSCT = "Lake Superior Circle Tour.svg",
                     LMCT = "Lake Michigan Circle Tour.svg",
                     LHCT = "Lake Huron Circle Tour.svg",
                     LECT = "Lake Erie Circle Tour.svg",
                     ["LSCT-Spur"] = "Lake Superior Circle Tour brown.svg",
                     ["LMCT-Spur"] = "Lake Michigan Circle Tour brown.svg",
                     ["LHCT-Spur"] = "Lake Huron Circle Tour brown.svg"},
           link = {default = "Great Lakes Circle Tour",
                   LSCT = "Lake Superior Circle Tour",
                   LMCT = "Lake Michigan Circle Tour",
                   LHCT = "Lake Huron Circle Tour",
                   LECT = "Lake Erie Circle Tour",
                   ["LSCT-Spur"] = "Lake Superior Circle Tour",
                   ["LMCT-Spur"] = "Lake Michigan Circle Tour",
                   ["LHCT-Spur"] = "Lake Huron Circle Tour"},
           abbr = {default = "GLCT",
                   LSCT = "LSCT",
                   LMCT = "LMCT",
                   LHCT = "LHCT",
                   LECT = "LECT",
                   ["LSCT-Spur"] = "LSCT Spur",
                   ["LMCT-Spur"] = "LMCT Spur",
                   ["LHCT-Spur"] = "LHCT Spur"},
           bannersuffix = {default = "green",
                   ["LSCT-Spur"] = "brown",
                   ["LMCT-Spur"] = "brown",
                   ["LHCT-Spur"] = "brown"}
            }

NY.CT = {alias = {module = "USA/CT", type = "CT"}}
NY.NJ = {alias = {module = "USA/NJ", type = "NJ"}}
NY.PA = {alias = {module = "USA/PA", type = "PA"}}
NY.VT = {alias = {module = "USA/VT", type = "VT"}}
NY["I-VT"] = {alias = {module = "USA/VT", type = "I"}}
NY["QC-A"] = {alias = {module = "CAN/QC", type = "A"}}

return NY