Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Array of Canadian cities
array("Alberta" => array(
,"Airdrie"
,"Grande Prairie"
,"Red Deer"
,"Beaumont"
,"Hanna"
,"St. Albert"
,"Bonnyville"
,"Hinton"
,"Spruce Grove"
,"Brazeau"
,"Irricana"
,"Strathcona County"
,"Breton"
,"Lacombe"
,"Strathmore"
,"Calgary"
,"Leduc"
,"Sylvan Lake"
,"Camrose"
,"Lethbridge"
,"Swan Hills"
,"Canmore"
,"McLennan"
,"Taber"
,"Didzbury"
,"Medicine Hat"
,"Turner Valley"
,"Drayton Valley"
,"Olds"
,"Vermillion"
,"Edmonton"
,"Onoway"
,"Wood Buffalo"
,"Ft. Saskatchewan"
,"Provost"
),
"British Columbia" => array(
,"Burnaby"
,"Lumby"
,"City of Port Moody"
,"Cache Creek"
,"Maple Ridge"
,"Prince George"
,"Castlegar"
,"Merritt"
,"Prince Rupert"
,"Chemainus"
,"Mission"
,"Richmond"
,"Chilliwack"
,"Nanaimo"
,"Saanich"
,"Clearwater"
,"Nelson"
,"Sooke"
,"Colwood"
,"New Westminster"
,"Sparwood"
,"Coquitlam"
,"North Cowichan"
,"Surrey"
,"Cranbrook"
,"North Vancouver"
,"Terrace"
,"Dawson Creek"
,"North Vancouver"
,"Tumbler"
,"Delta"
,"Osoyoos"
,"Vancouver"
,"Fernie"
,"Parksville"
,"Vancouver"
,"Invermere"
,"Peace River"
,"Vernon"
,"Kamloops"
,"Penticton"
,"Victoria"
,"Kaslo"
,"Port Alberni"
,"Whistler"
,"Langley"
,"Port Hardy"
),
"Manitoba" => array(
"Birtle"
,"Flin Flon"
,"Swan River"
,"Brandon"
,"Snow Lake"
,"The Pas"
,"Cranberry Portage"
,"Steinbach"
,"Thompson"
,"Dauphin"
,"Stonewall"
,"Winnipeg"
),
"New Brunswick" => array(
,"Cap-Pele"
,"Miramichi"
,"Saint John"
,"Fredericton"
,"Moncton"
,"Saint Stephen"
,"Grand Bay-Westfield"
,"Oromocto"
,"Shippagan"
,"Grand Falls"
,"Port Elgin"
,"Sussex"
,"Memramcook"
,"Sackville"
,"Tracadie-Sheila"
),
"Newfoundland And Labrador" => array(
"Argentia"
,"Corner Brook"
,"Paradise"
,"Bishop's Falls"
,"Labrador City"
,"Portaux Basques"
,"Botwood"
,"Mount Pearl"
,"St. John's"
,"Brigus"
),
"Northwest Territories" => array(
"Town of Hay River"
,"Town of Inuvik"
,"Yellowknife"
),
"Nova Scotia" => array(
"Amherst"
,"Hants County"
,"Pictou"
,"Annapolis"
,"Inverness County"
,"Pictou County"
,"Argyle"
,"Kentville"
,"Queens"
,"Baddeck"
,"County of Kings"
,"Richmond"
,"Bridgewater"
,"Lunenburg"
,"Shelburne"
,"Cape Breton"
,"Lunenburg County"
,"Stellarton"
,"Chester"
,"Mahone Bay"
,"Truro"
,"Cumberland County"
,"New Glasgow"
,"Windsor"
,"East Hants"
,"New Minas"
,"Yarmouth"
,"Halifax"
,"Parrsboro"
),
"Ontario" => array(
"Ajax"
,"Halton"
,"Peterborough"
,"Atikokan"
,"Halton Hills"
,"Pickering"
,"Barrie"
,"Hamilton"
,"Port Bruce"
,"Belleville"
,"Hamilton-Wentworth"
,"Port Burwell"
,"Blandford-Blenheim"
,"Hearst"
,"Port Colborne"
,"Blind River"
,"Huntsville"
,"Port Hope"
,"Brampton"
,"Ingersoll"
,"Prince Edward"
,"Brant"
,"James"
,"Quinte West"
,"Brantford"
,"Kanata"
,"Renfrew"
,"Brock"
,"Kincardine"
,"Richmond Hill"
,"Brockville"
,"King"
,"Sarnia"
,"Burlington"
,"Kingston"
,"Sault Ste. Marie"
,"Caledon"
,"Kirkland Lake"
,"Scarborough"
,"Cambridge"
,"Kitchener"
,"Scugog"
,"Chatham-Kent"
,"Larder Lake"
,"Souix Lookout CoC Sioux Lookout"
,"Chesterville"
,"Leamington"
,"Smiths Falls"
,"Clarington"
,"Lennox-Addington"
,"South-West Oxford"
,"Cobourg"
,"Lincoln"
,"St. Catharines"
,"Cochrane"
,"Lindsay"
,"St. Thomas"
,"Collingwood"
,"London"
,"Stoney Creek"
,"Cornwall"
,"Loyalist Township"
,"Stratford"
,"Cumberland"
,"Markham"
,"Sudbury"
,"Deep River"
,"Metro Toronto"
,"Temagami"
,"Dundas"
,"Merrickville"
,"Thorold"
,"Durham"
,"Milton"
,"Thunder Bay"
,"Dymond"
,"Nepean"
,"Tillsonburg"
,"Ear Falls"
,"Newmarket"
,"Timmins"
,"East Gwillimbury"
,"Niagara"
,"Toronto"
,"East Zorra-Tavistock"
,"Niagara Falls"
,"Uxbridge"
,"Elgin"
,"Niagara-on-the-Lake"
,"Vaughan"
,"Elliot Lake"
,"North Bay"
,"Wainfleet"
,"Flamborough"
,"North Dorchester"
,"Wasaga Beach"
,"Fort Erie"
,"North Dumfries"
,"Waterloo"
,"Fort Frances"
,"North York"
,"Waterloo"
,"Gananoque"
,"Norwich"
,"Welland"
,"Georgina"
,"Oakville"
,"Wellesley"
,"Glanbrook"
,"Orangeville"
,"West Carleton"
,"Gloucester"
,"Orillia"
,"West Lincoln"
,"Goulbourn"
,"Osgoode"
,"Whitby"
,"Gravenhurst"
,"Oshawa"
,"Wilmot"
,"Grimsby"
,"Ottawa"
,"Windsor"
,"Guelph"
,"Ottawa-Carleton"
,"Woolwich"
,"Haldimand-Norfork"
,"Owen Sound"
,"York"
),
",Prince Edward Island" => array(
"Alberton"
,"Montague"
,"Stratford"
,"Charlottetown"
,"Souris"
,"Summerside"
,"Cornwall"
),
",Quebec" => array(
"Alma"
,"Fleurimont"
,"Longueuil"
,"Amos"
,"Gaspe"
,"Marieville"
,"Anjou"
,"Gatineau"
,"Mount Royal"
,"Aylmer"
,"Hull"
,"Montreal"
,"Beauport"
,"Joliette"
,"Montreal Region"
,"Bromptonville"
,"Jonquiere"
,"Montreal-Est"
,"Brosssard"
,"Lachine"
,"Quebec"
,"Chateauguay"
,"Lasalle"
,"Saint-Leonard"
,"Chicoutimi"
,"Laurentides"
,"Sherbrooke"
,"Coaticook"
,"LaSalle"
,"Sorel"
,"Coaticook"
,"Laval"
,"Thetford Mines"
,"Dorval"
,"Lennoxville"
,"Victoriaville"
,"Drummondville"
,"Levis"
),
",Saskatchewan" => array(
"Avonlea"
,"Melfort"
,"Swift Current"
,"Colonsay"
,"Nipawin"
,"Tisdale"
,"Craik"
,"Prince Albert"
,"Unity"
,"Creighton"
,"Regina"
,"Weyburn"
,"Eastend"
,"Saskatoon"
,"Wynyard"
,"Esterhazy"
,"Shell Lake"
,"Yorkton"
,"Gravelbourg"
),
"Yukon" => array(
,"Carcross"
,"Whitehorse"
));
@eduardo-marcolino

This comment has been minimized.

Copy link

eduardo-marcolino commented May 27, 2015

Thanks for sharing!

@ghost

This comment has been minimized.

Copy link

ghost commented Jul 14, 2015

Made a few corrections on lines:

297
306
346

commas in the array key, thanks for the great list!

@danyyilbun

This comment has been minimized.

Copy link

danyyilbun commented Apr 15, 2019

Thank you, helps a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.