public class SampleFactory extends Object implements SampleSource
Constructor and Description |
---|
SampleFactory(Graph graph) |
Modifier and Type | Method and Description |
---|---|
Sample |
findClosest(List<Edge> edges,
com.vividsolutions.jts.geom.Coordinate pt,
double xscale)
DistanceToPoint.computeDistance() uses a LineSegment, which has a closestPoint method.
|
Sample |
getSample(double lon,
double lat) |
void |
setSearchRadiusM(double radiusMeters) |
public SampleFactory(Graph graph)
public void setSearchRadiusM(double radiusMeters)
public Sample getSample(double lon, double lat)
getSample
in interface SampleSource
public Sample findClosest(List<Edge> edges, com.vividsolutions.jts.geom.Coordinate pt, double xscale)
Copyright © 2018. All rights reserved.