Measuring Main Streets

Data

1. Business and Civic Infrastructure Location Data (Environics Analytics, 2023)

Business and Civic Infrastructure location data sourced from Environics Analytics provides the spatial location of all businesses and civic infrastructure tracked by InfoCanada. The data includes the name, address, NAICS Code and a unique identifier for over 1.1 million businesses. The business data is used to derive the presence and composition of two the categories, each of which are further split up into subcategories, by using their respective four and six-digit NAICS codes:

For more information on the definition of these categories, click here to read a detailed methodology.

2. Demographic Data (Environics Analytics DemoStats, 2023; Statistics Canada, 2021)

The demographic data combines proprietary data from Environics Analytics DemoStats, updated yearly, with open-source data from the 2021 census, where the equivalent Environics DemoStats is unavailable. The demographic data includes population counts, housing data, basic demographic information, and commuting data.

3. Mobile Visitor Count Data (Environics Analytics MobileScapes, 2019 – 2022)

Visitor Count data is derived using Environics Analytics MobileScapes data, a mobile movement database developed from permission-based data collected using location-enabled mobile applications. The MobileScapes data is only collected for the buildings within the case study area, providing accurate visitor numbers for the time of day, week, and month. In addition, the mobile data also provides visitors' common daytime (work) and evening (home) locations to analyze visitor types, distances, and changes in spatial patterns over time. The MobileScapes data for the purpose of our analysis is defined in two ways:

4. National Road Network (Statistics Canada, 2023)

The NRN was adopted by members of the Inter-Agency Committee on Geomatics (IACG) and the Canadian Council on Geomatics (CCOG) to provide quality, homogeneous, and normalized geospatial and attributive data (current, accurate, consistent) for the entire Canadian road network. The NRN is part of the GeoBase initiative, which aims to provide a common geospatial infrastructure maintained regularly by closest-to-source organizations. (Statistics Canada, 2023)

The NRN is distributed as thirteen provincial/territorial datasets consisting of two linear entities (road segments and ferry segments), three punctual entities (junctions, blocked passages, and toll points), and three tabular entities (address ranges, street and place names, and alternative name linkages). Currently, the NRN is publicly available on the Open Government data portal.

5. Dataset Summary Table


Data SetScaleUsage
Business and Civic Location DataNational (point data)Platform, Case Studies, Reports, Tools
Demographic DataNational (Dissemination Area)Platform, Case Studies, Reports, Tools
Mobile Visitor Count DataCase Study (Building Footprint)Case Studies, Reports, Tools
National Road NetworkNational (Line Data)Platform, Case Studies, Tools

Methodology

Creating Canada's Main Street Network

Creating a comprehensive main street network for Canada began with a clear goal: identifying segments of roads where clusters of Main Street Businesses and Civic Infrastructure are co-located and concentrated across the country. In order to arrive at this final dataset, we underwent an iterative process, gathering feedback along every step of the way from project stakeholders, users and policy experts.

After identifying the main street network, we also attached demographic information (from the 2021 Census and other proprietary data sets), in order to provide insights about the surrounding area and its residents. The methodology will be broken down into four main sections.


1. Business and Civic Infrastructure Data Setup

The first task in creating Canada’s main street network was identifying the types of businesses and civic infrastructure associated with main streets. Based on the four and 6-digit North American Industry Classification System (NAICS) codes, points within the Business and Civic Location Data were classified into one of three Main Street Business Groups (Retail, Food and Drink or Local Services) or one of five Civic Infrastructure Groups (Arts and Culture, Education, Government and Community Services, Healthcare, and Recreation) as seen in the table below.

In addition, within the Local Services Business Sub Group, businesses under NAICS code categories such as Depository Credit, Accounting, Legal Services, Telecom stores, and Real Estate Offices, had to have less than 50 employees to confirm that they were local instances. For example, to ensure we identified local bank branches and filtered out corporate office locations that may have both been classified under the same NAICS code.

Main Street Business Table (Click to expand)

4-Digit NAICS CodeNAICS Code DescriptionMain Street Business Group
7224Drinking placesFood and Drink
7225Restaurants
4451Grocery storesRetail
4452Specialty food stores
4453Liquor stores
7223Special food services
4411Auto dealers
4412Other motor vehicle dealers
4413Auto Parts Retailers
4421Furniture Stores
4422Home furnishings stores
4431Electronic and Appliance Stores
4441Building material stores
4442Lawn and garden stores
4461Pharmacies and Drug Stores
4471Gasoline stores
4481Clothing stores
4482Shoe stores
4483Jewellery, and leather goods
4511Sporting goods, hobby, and music stores
4513Book stores
4521Department stores
4529Other general stores
4531Florists
4532Office supplies
4533Used merchandise stores
4539Other retailers
4541Electronic shopping
4542Vending machine operators
4543Direct selling
5173Telecom stores
5312Real estate offices
4911Postal ServiceLocal Services
5221Depository Credit
5411Legal Services
5412Accounting
8111Auto repair
8112Electronic repair
8113Commercial equipment repair
8114Household goods repair
8121Personal care
8122Funeral services
8123Dry Cleaning
8129Other personal services

Civic Infrastructure Table (Click to expand)

6-Digit NAICS CodeDescriptionGroup
519120LibrariesArts and Culture
711110Theatre companies
711120Dance Companies
711130Musical Groups and Artists
711190Other Performing Arts Companies
711510Independent Artists, Writers and Performers
712110Museums
712120Historical Sites
611110Elementary and secondary schoolsEducation
611210Community Colleges
611310Universities
611410Business and Secretarial schools
611519Technical and trade schools
611610Fine arts schools
611630Language schools
611699All other schools and instruction
611710Educational support services
624410Child day-care services
624110Child and youth servicesGovernment and Community Services
624120Services for the elderly and persons with disabilities
624190Other individual and family services
624210Community Food Services
624221Temporary Shelters
624229Other Community Housing Services
624310Vocational rehabilitation services
813110Religious organizations
813210Grant-making and giving services
813310Social advocacy organization
813410Civic and Social Organizations
921110Executive Offices
921120Legislative Bodies
921190Other General Government Support
922110Courts
922120Police Protection
922160Fire Protection
621111Office of physiciansHealthcare
621210Office of dentists
621310Office of chiropractors
621320Office of optometrists
621330Office of mental health practitioners
621340Office of physical, occupational and speech therapists
621391Office of Podiatrists
621399Office of all other health practitioners
621410Family planning centres
621420Out-patient mental health and substance abuse centres
621494Community health centres
621498All other out-patient care centres
622110General Hospitals
622210Psychiatric and substance abuse hospitals
622310Specialty hospitals
623110Nursing care facilities
623311Continuing Care Retirement Communities
623312Assisted Living Facilities for the Elderly
623990Other Residential Care Facilities
712130Zoos and botanical gardensRecreation
712190Nature parks and other similar institutions
713940Fitness and recreational sports centres
713950Bowling centres
713990All other amusement and recreation industries

Attaching Additional Data

The final step was summarising the estimated employment size and retail sales, as well as our Business Independence Index, which uses text-based analysis to assess the uniqueness of each business between 0 and 1 (defined below).

2. Road Network Setup

In order to identify main streets, we had to use a road network dataset to use in our analysis. Setting up the road network is a crucial step in the methodology as it is also the median through which all infrastructure and demographic data will be attached and visualized. Before this can happen, several cleaning steps are performed on the Statistics Canada national road network.

Defining large and small city networks

The first step in setting up the road network is determining what types of roads should be included in the network. The table below outlines our methodology in creating the road network; which differs in large and small cities. A city is defined as large or small based on its population count and population density, and the types of roads included are different in each. This was done to remove mainly residential areas in large cities while maintaining small local roads in small towns.

City TypeConditionRoads Used
Large CityPopulation Count Above 100,000 and Population Density Above 1,000 / sq.kmArterial, Collector, Local Highways
Small CityPopulation Count Below 100,000 or Population Density Below 1,000 / sq.kmArterial, Collector, Local Highways, Local Streets

Using the ‘sfnetworks’ package in R, lines in the road network are cleaned to simplify edges and reduce redundancy after the initial filtering of the roads. First, the road network is simplified to remove multiple edges and loops. Next, pseudo nodes are removed to have nodes where the endpoints of roads meet. Finally, intersections between the roads are simplified, adjoining all converging roads to a single node.

3. Attaching Data

Attaching Business and Civic Infrastructure Data

After cleaning the Infrastructure and Road Networks, a spatial intersection was performed, attaching all main street businesses and civic infrastructure to all roads within 50 metres of the desired road segment. The counts of each main street business and civic infrastructure type were summarised, producing a total for each road segment. In addition, the densities of main street businesses and civic infrastructure were calculated by dividing the total by the road length.

For summary statistics using Main Street business data, such as the Business Independence Index and Retail Sales, the average for all businesses along the road was used. The employment size of the businesses was also considered for the Business Independence Index.

Attaching Demographic Data

Demographic variables were intersected between the road network and all Dissemination Areas within one kilometre of the adjoining road segment. For each road segment, variables were summarised by taking the average of all Dissemination Areas weighted by the Population count of each DA.

4. Identifying Main Streets

With the creation of our base road network, we can now identify main streets as a segment of road where a clustering of main street businesses and civic infrastructure exists. This process is done over two primary steps. Identifying businesses and civic infrastructure clusters and extracting segments based on density thresholds.

Identifying Main Street Business and Civic Infrastructure Clusters

Using the cleaned Business and Civic Location Data, Kernel Density Estimation in QGIS created a heatmap of main street businesses and civic data. The heatmap layer was then filtered based on the set density thresholds of high-density and low-density main streets.

Main Street TypeParametersDensity Thresholds
Low-Density Main StreetsRadius: 100 metres
Kernel Shape: Quartic
Above 2 Main Street Business and Civic Infrastructure within the defined radius
High-Density Main StreetsRadius: 100 metres
Kernel Shape: Quartic
Above 10 Main Street Business and Civic Infrastructure within the defined radius

Extracting Segments Based on Density Thresholds

The final main street layer for high and low-density main streets was then clipped from the respective heatmap layers, and a difference between the two road layers was performed to prevent overlaps.

Independent Business Index

The Independent Business Index creates a scaled index of business independence using text analysis within the Main Street Business Dataset to apply a scale between 0 and 1 based on how many times a business name appears in the data. The closer the value is to 1, the more ‘independent’ the business is deemed.

From the Main Street Business Location Dataset, businesses are grouped based on their name and primary industry using the 2-digit NAICS code associated with the business. Once grouped, the businesses are min-max scaled, giving a value between 0 and 1, with 0 being the most prevalent name in the business data and one being the least prevalent.

This methodology allows us to account for differences in chain businesses, so a small local chain with 5 locations is deemed more ‘independent’ than a large national chain with 200+ locations, for example.

Civic Infrastructure Index

The Civic Infrastructure Index (CII) assesses relative access to civic infrastructure within a defined catchment area by combining services' capacity with the local population's demand.

Based on two-step floating catchment areas

Have more questions?

Contact us at cui@canurb.org.

The Measuring Main Streets platfrom (part of the Research Knowledge Initiative program from Housing, Infrastructure and Communities Canada) was developed by the Canadian Urban Institute in partnership with Environics Analytics and Open North.

Canadian Urban Institute Canadian Urban Institute Environics Analytics Open North