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 |
---|---|
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 |
findClosestEdge(GHIntHashSet edgeIds,
double lat,
double lon,
EdgeFilter filter)
This method fills the edgeIds hash with edgeIds found close (exact match) to the specified lat,lon
|
void |
findClosestEdgeToPoint(GHIntHashSet edgeIds,
GHPoint point,
EdgeFilter filter)
This method fills the edgeIds hash with edgeIds found close (exact match) to the specified point
|
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 findClosestEdgeToPoint(GHIntHashSet edgeIds, GHPoint point, EdgeFilter filter)
public void findClosestEdge(GHIntHashSet edgeIds, double lat, double lon, EdgeFilter filter)
public void findEdgesInShape(GHIntHashSet edgeIds, Shape shape, EdgeFilter filter)
public void fillEdgeIDs(GHIntHashSet edgeIds, org.locationtech.jts.geom.Geometry geometry, EdgeFilter filter)
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.