private bool ShouldIncludeStop(StopBase stop, string query) { var name = _stopsProvider.GetSimplifiedName(stop.Id); return(name.Contains(query) || AreInitials(name, query)); }
public async Task <Passages> GetPassagesByStop(StopBase stop, StopPassagesType type = StopPassagesType.Departure) { return(await GetPassagesByStopId(stop.ID, type).ConfigureAwait(false)); }