mkfreeman / norc-map

Retirement community accessibiltiy

Home Page:http://mfviz.com/norc-map/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NORC MAP

An interactive map of naturally occuring retirement communities (NORCs) in Toronto and their distances to the nearest TTC stop.

Development

This project was created using the Vite svelte-ts template. To run the project locally, install packages with yarn and run yarn dev (or npm install and npm run dev).

To deploy the project, run yarn build (or npm run build).

TTC Stop Amenities

TTC stop amenities, ie benches and shelters, were taken from 3 sources. In the first two cases, this data was joined with TTC stop data using the TTC stop_code.

  • Street Furniture - Transit Shelter - City of Toronto Open Data Portal. This data was joined using SITEID column, with the prefix letter 'T' removed. If a stop was found in this dataset, we marked has_shelter=True for that stop
  • A City data set obtained by OpenLab specifically highlighting shelters with benches. This data was joined using "TTC Stop ID." If a stop was found in this dataset, we marked has_shelter_with_bench=True for that stop
  • Street Furniture - Bench - City of Toronto Open Data Portal. This data was first erroneously joined using SITEID column, but it turns out there appears to be no association between street furniture bench data and TTC stops. So, using geo-analysis any stop that has a bench within 10 meters of it is counted (see "bench_count" in the data).

Unforunately, there are a number of issues with this data. As noted on the Open Data Portal, the 1st and 3rd data sets have no description of their columns, and so it is difficult to understand what kind of shelter or bench is present. We made minimal assumptions and hence made the decision noted with each data set above.

Furthermore, these data sets are inconsistent. Consider the definitions above and see this information:

image

It does not make sense, for example, that has_shelter_with_bench is true for 48 TTC stops where those same stops are marked has_shelter=false based on the other dataset.

This is noted in more detail here: #28 (comment). Furthermore, at times the datasets do not actually reflect what is shown on Google Streetview (which, we acknowledge, may be out of date, or the dataset could be out of date).

Based on examination of the data we had, we made a simple rule noted in the issue above which is visible in our interface:

Amenity = "Shelter with Bench Underneath" if has_shelter_with_bench = true

Amenity = "Shelter without bench" if has_shelter_with_bench = false AND has_shelter = true

If a bench is within 10 meters and there is no existing "Shelter with Bench Underneath", then the amenity property also includes "Bench nearby."

This is not perfect, but it conservatively reflects what we can reliably say given the data, without analyzing every single stop on Google StreetView or in person.

References / notes

  • Leaflet implementation based on this repo, referenced in this (actually informative) video
  • Turns out configuring TailwindCSS with Svelte is a bit of a pain, used svelte-add to do this: npx --yes svelte-add@latest tailwindcss
  • Stops downloaded from here
  • TTC logo downloaded here
  • Building logo downloaded here
  • Route logo downloaded here information below is from the original development set up template

About

Retirement community accessibiltiy

http://mfviz.com/norc-map/


Languages

Language:Svelte 64.3%Language:Python 29.9%Language:CSS 2.9%Language:JavaScript 1.5%Language:TypeScript 0.8%Language:HTML 0.7%