archetypal.dataportal.stat_can_geo_request

archetypal.dataportal.stat_can_geo_request(type='json', lang='E', geos='PR', cpt='00')[source]
Parameters
  • type (str) – “json” or “xml”. json = json response format and xml = xml response format.

  • lang (str) – “E” or “F”. where: E = English F = French.

  • geos (str) – one geographic level code (default = PR). where: CD = Census divisions CMACA = Census metropolitan areas and census agglomerations CSD = Census subdivisions (municipalities) CT = Census tracts DA = Dissemination areas DPL = Designated places ER = Economic regions FED = Federal electoral districts (2013 Representation Order) FSA = Forward sortation areas HR = Health regions (including LHINs and PHUs) POPCNTR = Population centres PR = Canada, provinces and territories.

  • cpt (str) – one province or territory code (default = 00). where: 00 = All provinces and territories 10 = Newfoundland and Labrador 11 = Prince Edward Island 12 = Nova Scotia 13 = New Brunswick 24 = Quebec 35 = Ontario 46 = Manitoba 47 = Saskatchewan 48 = Alberta 59 = British Columbia 60 = Yukon 61 = Northwest Territories 62 = Nunavut.