| Package | Description |
|---|---|
| com.github.davidmoten.geo |
Provides utility classes for geohashing in GeoHash and great circle navigation methods in Position.
|
| Modifier and Type | Method and Description |
|---|---|
static Position |
Position.create(double lat,
double lon) |
Position |
Position.ensureContinuous(Position lastPosition)
normalize the lat lon values of this to ensure that no large longitude
jumps are made from lastPosition (e.g.
|
Position |
Position.getClosestIntersectionWithSegment(Position p1,
Position p2) |
Position |
Position.getPositionAlongPath(Position position,
double proportion)
Returns a position along a path according to the proportion value
|
Position |
Position.predict(double distanceKm,
double courseDegrees)
Predicts position travelling along a great circle arc based on the
Haversine formula.
|
| Modifier and Type | Method and Description |
|---|---|
Position |
Position.ensureContinuous(Position lastPosition)
normalize the lat lon values of this to ensure that no large longitude
jumps are made from lastPosition (e.g.
|
double |
Position.getBearingDegrees(Position position)
Returns the Great Circle bearing to the given position from this.
|
Position |
Position.getClosestIntersectionWithSegment(Position p1,
Position p2) |
double |
Position.getDistanceToKm(Position position)
returns distance between two WGS84 positions according to Vincenty's
formula from Wikipedia
|
double |
Position.getDistanceToSegmentKm(Position p1,
Position p2) |
Position |
Position.getPositionAlongPath(Position position,
double proportion)
Returns a position along a path according to the proportion value
|
| Modifier and Type | Method and Description |
|---|---|
double |
Position.getDistanceToPathKm(List<Position> positions) |
boolean |
Position.isOutside(List<Position> path,
double minDistanceKm) |
boolean |
Position.isWithin(List<Position> positions) |
Copyright © 2013-2014. All Rights Reserved.