query method
Function that executes the actual query and returns the result.
Implementation
@override
LocationByTime<P> query(C collection) {
final searchAlgorithm = SearchAlgorithm.getBestAlgorithm(
collection,
collection.sortedByTime,
SearchCompareDiff(compareItemToTime, diffItemAndTime));
final resultIndex = searchAlgorithm.find(_time, _toleranceSeconds);
return LocationByTime(_time, _toleranceSeconds,
resultIndex != null ? collection[resultIndex] : null);
}