public class Intersection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
lat1 |
double |
lat2 |
double |
latStop |
double |
lon1 |
double |
lon2 |
double |
lonStop |
java.lang.String |
name |
Constructor and Description |
---|
Intersection() |
Modifier and Type | Method and Description |
---|---|
double |
matchToV1(Loc loc)
Returns distance from lat,lon to the first path segment.
|
double |
matchToV2(Loc loc)
Returns distance from lat,lon to the second path segment.
|
static java.util.List<Intersection> |
readIntersections(java.lang.String fileName) |
public java.lang.String name
public double lat1
public double lon1
public double latStop
public double lonStop
public double lat2
public double lon2
public double matchToV1(Loc loc)
loc
- public double matchToV2(Loc loc)
loc
- public static java.util.List<Intersection> readIntersections(java.lang.String fileName)