public interface RoadServices
Modifier and Type | Method and Description |
---|---|
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.
|
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 WayPointsCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details