public class CandidateEdge extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CandidateEdge.CandidateEdgeScoreComparator
Sorts CandidateEdges by best score first (lower = better).
|
Modifier and Type | Field and Description |
---|---|
protected Double |
directionDifference
Difference in direction between heading and nearest subsegment of edge.
|
protected double |
directionOfEdge
Azimuth of the subsegment of the edge to which the input point is closest.
|
protected double |
directionToEdge
Azimuth between input point and closest point on edge.
|
double |
distance
Distance from edge to linking point.
|
StreetEdge |
edge
The edge being considered for linking.
|
protected StreetVertex |
endwiseVertex
Set when to the closest endpoint of the edge when the input location is really sitting on
that endpoint (within some tolerance).
|
protected Double |
heading
Heading if given.
|
com.vividsolutions.jts.geom.Coordinate |
nearestPointOnEdge
The coordinate of the nearest point on the edge to the linking location.
|
double |
score
Score of the match.
|
Constructor and Description |
---|
CandidateEdge(StreetEdge e,
com.vividsolutions.jts.geom.Coordinate p,
double pref,
TraverseModeSet mode)
Construct CandidateEdge based on a Coordinate.
|
CandidateEdge(StreetEdge e,
GenericLocation loc,
double pref,
TraverseModeSet mode)
Construct CandidateEdge based on a GenericLocation.
|
public final StreetEdge edge
protected StreetVertex endwiseVertex
public com.vividsolutions.jts.geom.Coordinate nearestPointOnEdge
protected Double heading
protected double directionToEdge
protected double directionOfEdge
protected Double directionDifference
public double distance
public double score
public CandidateEdge(StreetEdge e, GenericLocation loc, double pref, TraverseModeSet mode)
public CandidateEdge(StreetEdge e, com.vividsolutions.jts.geom.Coordinate p, double pref, TraverseModeSet mode)
Copyright © 2015. All rights reserved.