public abstract class Navigatable
extends java.lang.Object
All classes that implement the Navigatable protocol can be navigated to and from any other Navigatable object.
For example, you can navigate from a Coordinate to a Location and you will get a path from that Coordinate to the closest entrance node belonging to that Location. Beyond just pathing to a store, this might also be used for a "take me to the closest washroom" function. You can also navigate from an array of Navigatables to an Array of other Navigatables, and you will get the shortest path between an item in the first group to the second. This allows the ability to do advanced, high level things like "find a place to park that takes you closest to any restaurant".
Constructor and Description |
---|
Navigatable() |
Modifier and Type | Method and Description |
---|---|
Directions |
directionsFrom(Venue activeVenue,
Navigatable origin,
Location departFrom,
Location arriveAt)
Find the shortest path TO this Navigatable FROM another one (accessible defaults to false).
|
Directions |
directionsFrom(Venue activeVenue,
Navigatable origin,
Location departFrom,
Location arriveAt,
boolean accessible)
Find the shortest path TO this Navigatable FROM another one.
|
Directions |
directionsTo(Venue activeVenue,
Navigatable destination,
Location departFrom,
Location arriveAt)
Find the shortest path FROM this Navigable TO another one (accessible defaults to false).
|
Directions |
directionsTo(Venue activeVenue,
Navigatable destination,
Location departFrom,
Location arriveAt,
boolean accessible)
Find the shortest path FROM this Navigable TO another one.
|
abstract Coordinate[] |
getNavigatableCoordinates() |
public abstract Coordinate[] getNavigatableCoordinates()
public Directions directionsTo(Venue activeVenue, Navigatable destination, Location departFrom, Location arriveAt)
activeVenue
- The Venue where this Coordinate belong to.destination
- Where the path should go (Could be Coordinate
, Location
or Polygon
)departFrom
- An optional Location used to help with the direction instructionsarriveAt
- An optional Location used to help with the direction instructionspublic Directions directionsTo(Venue activeVenue, Navigatable destination, Location departFrom, Location arriveAt, boolean accessible)
activeVenue
- The Venue where this Coordinate belong to.destination
- Where the path should go (Could be Coordinate
, Location
or Polygon
)departFrom
- An optional Location used to help with the direction instructionsarriveAt
- An optional Location used to help with the direction instructionsaccessible
- boolean flag shows if the path needs to be accessible or notpublic Directions directionsFrom(Venue activeVenue, Navigatable origin, Location departFrom, Location arriveAt)
activeVenue
- The Venue where this Coordinate belong to.origin
- Where the path should start fromdepartFrom
- An optional Location used to help with direction instructionsarriveAt
- An optional Location used to help with direction instructionsDirections
public Directions directionsFrom(Venue activeVenue, Navigatable origin, Location departFrom, Location arriveAt, boolean accessible)
activeVenue
- The Venue where this Coordinate belong to.origin
- Where the path should start fromdepartFrom
- An optional Location used to help with direction instructionsarriveAt
- An optional Location used to help with direction instructionsaccessible
- boolean flag shows if the path needs to be accessible or notDirections