transitio.index.Recommendation#
- class transitio.index.Recommendation(place, when, taken, left_out, coverage, coverage_by_family, basis, note)#
Which feeds to take for a place or an area, and why the others are left out.
takenandleft_outhold aChoiceper feed: theIndexedFeed, the reason in words, andadds, the share of the place’s departures the feed adds to the feeds taken before it (for a feed left out, to all of them), None where it was not compared.coverageis the share of the place’s departures, each counted once, that the taken feeds run, andcoverage_by_familythe same per mode family ("rail"for rail, subway and tram), both counting only the feeds the index records overlap for.basisis"overlap", or"departures"on an index without overlap evidence, where the coverages are None.notesays when the target is not reached, which feeds the coverage leaves out, or that the index records no overlap.str()gives the answer as lines of text.