|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface provides geo routing services.
A route denotes the complete itinerary from start to end. A part is a fragment of the itenary between two stops, a segment> is a fragment of a path that follows a street or road. GEO ROUTING IS ONLY FUNCTIONAL IF AN IGS WITH ADDITIONAL GEO-SERVICES IS INSTALLED.
| Method Summary | |
void |
addProperty(java.lang.String name,
java.lang.String value)
Adds a property to the route. |
void |
addStop(java.lang.String id,
java.lang.String description,
WDGeoPosition wdPosition)
Adds a stop to the route, e.g. |
void |
addStop(WDGeoRouterStop wdStop)
Adds a stop to the route, e.g. |
void |
clearAll()
Clears all paramters of the geo router. |
void |
execute()
Calculates the route. |
java.lang.String |
getErrors()
Returns any errors that occured during the processing of the route. |
WDGeoBorder |
getPartBorder(int partIndex)
Returns the geo border of a part. |
int |
getPartCount()
Returns the part count of the route, usually the number of stops minus one. |
java.lang.String |
getPartDescription(int partIndex)
Returns the description of a part in the language determined by setLanguage. |
double |
getPartDistance(int partIndex)
Returns the distance of a part. |
double |
getPartDuration(int partIndex)
Returns the duration of a part. |
java.util.List |
getPartPath(int partIndex)
Returns the path of WDGeoPositions of a part. |
WDGeoBorder |
getRouteBorder()
Returns the border of the whole route. |
java.lang.String |
getRouteDescription()
Returns the description of the whole route. |
double |
getRouteDistance()
Returns the distance of the whole route. |
double |
getRouteDuration()
Returns the duration of the whole route. |
java.util.List |
getRoutePath()
Returns the path of WDGeoPositions of the whole route. |
int |
getSegmentCount(int partIndex)
Returns the number of segments of a part. |
java.lang.String |
getSegmentDescription(int partIndex,
int segmentIndex)
Returns the description of a segment in the language determined by setLanguage. |
double |
getSegmentDistance(int partIndex,
int segmentIndex)
Returns the distance of a segment. |
double |
getSegmentDuration(int partIndex,
int segmentIndex)
Returns the duration of a segment. |
java.util.List |
getSegmentPath(int partIndex,
int segmentIndex)
Returns the path of WDGeoPositions of a segment. |
void |
setIgsUrl(java.net.URL igsURL)
Set the URL of the IGS that provides the GIS services |
void |
setLanguage(java.lang.String language)
Sets the desired language for descriptions. |
void |
setQuickest()
Calculate the quickest route. |
void |
setShortest()
Calculate the shortest route. |
| Method Detail |
public void setIgsUrl(java.net.URL igsURL)
public void clearAll()
public void execute()
public java.lang.String getErrors()
public void addStop(java.lang.String id,
java.lang.String description,
WDGeoPosition wdPosition)
public void addStop(WDGeoRouterStop wdStop)
public void addProperty(java.lang.String name,
java.lang.String value)
public void setQuickest()
public void setShortest()
public void setLanguage(java.lang.String language)
ISO - 2-letter country code, e.g. "de"public int getPartCount()
public WDGeoBorder getPartBorder(int partIndex)
public double getPartDistance(int partIndex)
public double getPartDuration(int partIndex)
public java.lang.String getPartDescription(int partIndex)
setLanguage(java.lang.String)public java.util.List getPartPath(int partIndex)
public int getSegmentCount(int partIndex)
public double getSegmentDistance(int partIndex,
int segmentIndex)
public double getSegmentDuration(int partIndex,
int segmentIndex)
public java.lang.String getSegmentDescription(int partIndex,
int segmentIndex)
setLanguage(java.lang.String)
public java.util.List getSegmentPath(int partIndex,
int segmentIndex)
public WDGeoBorder getRouteBorder()
public double getRouteDistance()
public double getRouteDuration()
public java.lang.String getRouteDescription()
getPartDescription(int)public java.util.List getRoutePath()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||