|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RoadServices
getPathOnRoad interface - any layer that implements this interface can return a route between two points
| Method Summary | |
|---|---|
java.util.List |
displayPathOnRoad(java.awt.Point start,
java.awt.Point end,
Route route,
java.util.List segments)
Displays a Route between two points on the map. |
Route |
getPathOnRoad(LatLonPoint start,
LatLonPoint end)
Returns the best Route between a start point and end point. |
java.util.List |
getPathOnRoad(java.awt.Point start,
java.awt.Point end,
java.util.List segments)
Returns the best Route between a start point and end point. |
| Method Detail |
|---|
java.util.List getPathOnRoad(java.awt.Point start,
java.awt.Point end,
java.util.List segments)
This method works by finding the closest intersection to start and end points, and then finding a path from start intersection to end intersection. The method works on screen coordinates.
start - - Start point on the map in screen coordinates.end - - End point on the map in screen coordinates.segments - is populated by road segments, each segment is
a list of points in screen coordinates.
Route getPathOnRoad(LatLonPoint start,
LatLonPoint end)
This method works by finding the closest intersection to start and end points, and then finding a path from start intersection to end intersection. The method works in latitude/longitude coordinates.
start - - Start point in latitude/longitude coordinates.end - - End point in latitude/longitude coordinates.
java.util.List displayPathOnRoad(java.awt.Point start,
java.awt.Point end,
Route route,
java.util.List segments)
start - start from start point on mapend - to end point on maproute - the Route to travel from start to endsegments - as side effect, populated with PathSegments
between returned WayPoints
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||