Commit 92d9383
committed
Fix unroutable timeWeight assignment
If a neighborhood is unroutable we don't create an scaled accessibility weight but instead define a default weight value, 1. This is the "best" weight, but because there is no route information to evaluate these neighborhoods were previously being binned in the "too far" list and the accessibility sorting doesn't matter. Now that unroutable neighborhoods can be recommended, the weight actually holds value in the overall score. Instead we should set these neighborhoods to the worst weighted value, 0, so unroutable neighborhoods will be sorted to the bottom of the recommendation list, as needed.1 parent 4ce4535 commit 92d9383
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments