public class StreetRouter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StreetRouter.State |
Modifier and Type | Field and Description |
---|---|
static int |
ALL_VERTICES |
int |
distanceLimitMeters |
StreetLayer |
streetLayer |
int |
toVertex |
Constructor and Description |
---|
StreetRouter(StreetLayer streetLayer) |
Modifier and Type | Method and Description |
---|---|
gnu.trove.map.TIntIntMap |
getReachedStops() |
gnu.trove.map.TIntIntMap |
getReachedVertices()
Return a map of all the reached vertices to their distances from the origin
|
int[] |
getStopTree()
Get a distance table to all street vertices touched by the last search operation on this StreetRouter.
|
int |
getTravelTimeToVertex(int vertexIndex) |
void |
route()
Call one of the setOrigin functions first.
|
void |
setOrigin(double lat,
double lon) |
void |
setOrigin(int fromVertex) |
public static final int ALL_VERTICES
public final StreetLayer streetLayer
public int distanceLimitMeters
public int toVertex
public StreetRouter(StreetLayer streetLayer)
public gnu.trove.map.TIntIntMap getReachedStops()
public gnu.trove.map.TIntIntMap getReachedVertices()
public int[] getStopTree()
public void setOrigin(double lat, double lon)
lat
- Latitude in floating point (not fixed int) degrees.lon
- Longitude in flating point (not fixed int) degrees.public void setOrigin(int fromVertex)
public void route()
public int getTravelTimeToVertex(int vertexIndex)
Copyright © 2015. All rights reserved.