public class SimpleStreetSplitter extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
DUPLICATE_WAY_EPSILON_METERS
if there are two ways and the distances to them differ by less than this value, we link to both of them
|
static int |
MAX_SEARCH_RADIUS_METERS |
static int |
WARNING_DISTANCE_METERS |
| Constructor and Description |
|---|
SimpleStreetSplitter(Graph graph)
Construct a new SimpleStreetSplitter.
|
SimpleStreetSplitter(Graph graph,
HashGridSpatialIndex<Edge> hashGridSpatialIndex,
org.locationtech.jts.index.SpatialIndex transitStopIndex,
boolean destructiveSplitting)
Construct a new SimpleStreetSplitter.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAddExtraEdgesToAreas() |
Vertex |
getClosestVertex(GenericLocation location,
RoutingRequest options,
boolean endVertex)
Used to link origin and destination points to graph non destructively.
|
void |
link()
Link all relevant vertices to the street network
|
boolean |
link(Vertex vertex)
Link this vertex into the graph to the closest walkable edge
|
boolean |
link(Vertex vertex,
TraverseMode traverseMode,
RoutingRequest options)
Link this vertex into the graph
|
void |
setAddExtraEdgesToAreas(Boolean addExtraEdgesToAreas) |
public static final int MAX_SEARCH_RADIUS_METERS
public static final int WARNING_DISTANCE_METERS
public static final double DUPLICATE_WAY_EPSILON_METERS
public SimpleStreetSplitter(Graph graph, HashGridSpatialIndex<Edge> hashGridSpatialIndex, org.locationtech.jts.index.SpatialIndex transitStopIndex, boolean destructiveSplitting)
hashGridSpatialIndex - If not null this index is used instead of creating new onetransitStopIndex - Index of all transitStops which is generated in StreetVertexIndexServiceImpldestructiveSplitting - If true splitting is permanent (Used when linking transit stops etc.) when false Splitting is only for duration of a request. Since they are made from temporary vertices and edges.public SimpleStreetSplitter(Graph graph)
graph - public void link()
public boolean link(Vertex vertex)
public boolean link(Vertex vertex, TraverseMode traverseMode, RoutingRequest options)
public Vertex getClosestVertex(GenericLocation location, RoutingRequest options, boolean endVertex)
location - options - endVertex - true if this is destination vertexpublic Boolean getAddExtraEdgesToAreas()
public void setAddExtraEdgesToAreas(Boolean addExtraEdgesToAreas)
Copyright © 2019. All rights reserved.