|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.panama.spatial.router.RoutingResult
This class defines the result of a routing service. Such a result contains a list of single maneuvers that are part of the complete route. This class defines immutable objects and is thread-safe.
Field Summary | |
static int |
HOUR Constant used to indicate the hour time unit |
static int |
KILOMETERS Constant used to indicate the kilometer distance unit |
static int |
METERS Constant used to indicate the meter distance unit |
static int |
MILES Constant used to indicate the mile distance unit |
static int |
MINUTE Constant used to indicate the minute time unit |
static int |
SECOND Constant used to indicate the second time unit |
Constructor Summary | |
RoutingResult(double time, int timeUnit, double distance, int distUnit, Point[] geometry, Maneuver[] maneuvers, java.awt.Image[] overviewMaps, java.net.URL[] overviewMapURLs) Constructor |
Method Summary | |
double |
getDistance() Get the total driving distance in meters |
double |
getDistanceInMeters() Get the total driving distance in meters |
int |
getDistanceUnit() Get the distance unit. |
java.lang.String |
getDistanceUnitString() Get the distance unit in string format. |
Maneuver[] |
getManeuvers() Get the Maneuver array of the result. |
Point[] |
getOverviewGeometry() Get the geometry, i.e., shape points along the route. |
java.awt.Image[] |
getOverviewMap() Get the overview maps in Java Image. |
java.net.URL[] |
getOverviewMapURL() Get the URL of overview maps. |
ProviderCredit |
getRoutingProvider() Returns the routing provider credit |
double |
getTime() Get the total driving time in minutes |
double |
getTimeInMinutes() Get the total driving time in minutes |
int |
getTimeUnit() Get the time unit. |
java.lang.String |
getTimeUnitString() Get the time unit in string format. |
void |
setRoutingProvider(ProviderCredit credit) Sets the routing provider credit |
java.lang.String |
toString() Returns the toString representation of this object |
java.lang.String |
toString(boolean reqMapURL, boolean reqGeometry) Returns the toString representation of this object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int HOUR
public static final int KILOMETERS
public static final int METERS
public static final int MILES
public static final int MINUTE
public static final int SECOND
Constructor Detail |
public RoutingResult(double time, int timeUnit, double distance, int distUnit, Point[] geometry, Maneuver[] maneuvers, java.awt.Image[] overviewMaps, java.net.URL[] overviewMapURLs)
Method Detail |
public double getDistance()
public double getDistanceInMeters()
public int getDistanceUnit()
public java.lang.String getDistanceUnitString()
public Maneuver[] getManeuvers()
public Point[] getOverviewGeometry()
public java.awt.Image[] getOverviewMap()
public java.net.URL[] getOverviewMapURL()
public ProviderCredit getRoutingProvider()
public double getTime()
public double getTimeInMinutes()
public int getTimeUnit()
public java.lang.String getTimeUnitString()
public void setRoutingProvider(ProviderCredit credit)
credit
- the routing provider creditpublic java.lang.String toString()
public java.lang.String toString(boolean reqMapURL, boolean reqGeometry)
reqMapURL
- indicates if the map URLs should be includedreqGeometry
- indicates if the geometry information should be included
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |