|
Oracle Application Server Wireless Java API Reference B10400-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 |
static int |
KILOMETERS |
static int |
METERS |
static int |
MILES |
static int |
MINUTE |
static int |
SECOND |
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. |
double |
getDistanceInMeters() |
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() |
double |
getTime() Get the total driving time. |
double |
getTimeInMinutes() |
int |
getTimeUnit() Get the time unit. |
java.lang.String |
getTimeUnitString() Get the time unit in string format. |
void |
setRoutingProvider(ProviderCredit credit) |
java.lang.String |
toString() |
java.lang.String |
toString(boolean reqMapURL, boolean reqGeometry) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MILES
public static final int KILOMETERS
public static final int SECOND
public static final int MINUTE
public static final int HOUR
public static final int METERS
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 ProviderCredit getRoutingProvider()
public void setRoutingProvider(ProviderCredit credit)
public double getTime()
public double getTimeInMinutes()
public double getDistance()
public double getDistanceInMeters()
public int getTimeUnit()
public java.lang.String getTimeUnitString()
public int getDistanceUnit()
public java.lang.String getDistanceUnitString()
public Maneuver[] getManeuvers()
public java.net.URL[] getOverviewMapURL()
public java.awt.Image[] getOverviewMap()
public Point[] getOverviewGeometry()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean reqMapURL, boolean reqGeometry)
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |