|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectps6.DirectionsFinder
public class DirectionsFinder
A DirectionsFinder produces directions for traveling from one address to another in a particular geographical area.
segments - : set[StreetSegment] // the set of StreetSegments
which represents the geographical area for which this DirectionsFinder
produces directions| Method Summary | |
|---|---|
Directions |
getDirections(Address start,
Address end,
ps2.RouteFormatter routeFormat)
Gets directions from start to end. |
static DirectionsFinder |
getDirectionsFinder(String databaseName,
Collection<String> zf)
Produces a DirectionsFinder for a given database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static DirectionsFinder getDirectionsFinder(String databaseName,
Collection<String> zf)
throws InvalidDatabaseException
databaseName - the database to find directions inzf - a collection of zipcodes used for zipcode filtering.
If zf is empty or null then there is no zipcode filtering for
the database.
InvalidDatabaseException - if databaseName does not refer to a
valid tiger database.
public Directions getDirections(Address start,
Address end,
ps2.RouteFormatter routeFormat)
throws InvalidAddressException,
NoPathException
InvalidAddressException - if start or end is not in the
geographical area covered by this DirectionsFinder.
NoPathException - if no path could be found from start to end.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||