hhaccessibility / hhaccessibility.github.io

http://hhaccessibility.github.io/main/
7 stars 41 forks source link

Always populate rating cache for every location #693

Open joshi1983 opened 5 years ago

joshi1983 commented 5 years ago

AccessLocator looks useless to people who have disabilities and want to learn what places will accommodate their needs. This is because only a few places have ratings in them.

Ideally, every location is rated and up to date but that's not realistic. The location search feature shows ratings where unanswered or unrated information is essentially treated as "no". AccessLocator can get smarter than that by making use of ratings on similar locations.

A few assumptions can help this gap-filling technique be more accurate:

Improvements can be made later but roughly using the above assumptions to find ratings for unanswered/unrated locations should help us get reasonably accurate ratings.

This work breaks into the following subtasks:

stephanosm commented 5 years ago

This is a good assumption and we should do it. This can actually quickly add ratings through out the country and perhaps US.

joshi1983 commented 5 years ago

This still needs some work. The ratings_cache field is in the location_group table now but I forget how much of it is working. I think a lingering question was, "when should we recalculate the group's ratings_cache values?". Maybe it should be done daily using a scheduled cron job.