Examples of TravelTimeEstimator


Examples of net.rim.device.api.lbs.travel.TravelTimeEstimator

                    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) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.