targetTime, options);
LocationBean fromBean = getPointAsLocation(from);
LocationBean toBean = getPointAsLocation(to);
ItinerariesBean itineraries = getPathsAsItineraries(paths, fromBean,
toBean, options);
ensureSelectedItineraryIsIncluded(from, to, targetTime, itineraries,
constraints.getSelectedItinerary(), options);
if (options.isArriveBy())
Collections.sort(itineraries.getItineraries(), new SortByArrival());
else
Collections.sort(itineraries.getItineraries(), new SortByDeparture());
return itineraries;
}