public class GraphEdgeIdFinder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GraphEdgeIdFinder.BlockArea
This class handles edges and areas where access should be blocked.
|
Constructor and Description |
---|
GraphEdgeIdFinder(Graph graph,
LocationIndex locationIndex) |
Modifier and Type | Method and Description |
---|---|
static GraphEdgeIdFinder.BlockArea |
createBlockArea(Graph graph,
LocationIndex locationIndex,
List<GHPoint> points,
PMap hints,
EdgeFilter edgeFilter) |
void |
fillEdgeIDs(GHIntHashSet edgeIds,
org.locationtech.jts.geom.Geometry geometry,
EdgeFilter filter)
This method fills the edgeIds hash with edgeIds found inside the specified geometry
|
void |
findEdgesInShape(GHIntHashSet edgeIds,
Shape shape,
EdgeFilter filter)
This method fills the edgeIds hash with edgeIds found inside the specified shape
|
GraphEdgeIdFinder.BlockArea |
parseBlockArea(String blockAreaString,
EdgeFilter filter,
double useEdgeIdsUntilAreaSize)
This method reads the blockAreaString and creates a Collection of Shapes or a set of found edges if area is small enough.
|
public GraphEdgeIdFinder(Graph graph, LocationIndex locationIndex)
public void findEdgesInShape(GHIntHashSet edgeIds, Shape shape, EdgeFilter filter)
public void fillEdgeIDs(GHIntHashSet edgeIds, org.locationtech.jts.geom.Geometry geometry, EdgeFilter filter)
public static GraphEdgeIdFinder.BlockArea createBlockArea(Graph graph, LocationIndex locationIndex, List<GHPoint> points, PMap hints, EdgeFilter edgeFilter)
public GraphEdgeIdFinder.BlockArea parseBlockArea(String blockAreaString, EdgeFilter filter, double useEdgeIdsUntilAreaSize)
useEdgeIdsUntilAreaSize
- until the specified area (specified in m²) use the findEdgesInShape methodCopyright © 2012–2020. All rights reserved.