final Coordinates startPoint =
location.getQualifiedCoordinates();
// Obtain the travel time between the two points
showStatus("Obtaining travel time estimate...");
final TravelTimeEstimator estimator =
TravelTimeEstimator.getInstance();
TravelTime travelTime;
if (endTime > 0) {
travelTime =
estimator.requestDepartureEstimate(startPoint,
endPoint, endTime, null);
} else {
travelTime =
estimator.requestArrivalEstimate(startPoint,
endPoint, startTime, null);
}
showStatus("Done");
showResults(travelTime);
} catch (final Exception e) {