| Package | Description |
|---|---|
| com.javadocmd.simplelatlng |
The base package for latitude and longitude utilities offered by SimpleLatLng.
|
| com.javadocmd.simplelatlng.util |
Utility classes and configuration for SimpleLatLng operation.
|
| com.javadocmd.simplelatlng.window |
A package allowing calculations on windows of latitude and longitude.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
LatLngTool.distance(LatLng point1,
LatLng point2,
LengthUnit unit)
Distance between two points.
|
static LatLng |
LatLngTool.travel(LatLng start,
double initialBearing,
double distance,
LengthUnit unit)
Calculate the end point of traveling along a great-circle path from a
given starting point with a given intitial bearing for a known distance.
|
| Modifier and Type | Field and Description |
|---|---|
static LengthUnit |
LengthUnit.PRIMARY
The primary length unit.
|
| Modifier and Type | Method and Description |
|---|---|
static LengthUnit |
LengthUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LengthUnit[] |
LengthUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
double |
LengthUnit.convertTo(LengthUnit toUnit,
double value)
Convert a value of this unit type to the units specified
in the parameters.
|
static double |
LatLngConfig.getEarthRadius(LengthUnit unit)
Retrieve the Earth's spherical approximation radius in the desired unit.
|
static void |
LatLngConfig.setEarthRadius(double radius,
LengthUnit unit)
Sets the Earth's radius for the purposes of all future calculations in
this library.
|
| Modifier and Type | Method and Description |
|---|---|
double |
RectangularWindow.getHeight(LengthUnit unit)
Returns the height of the window.
|
double |
CircularWindow.getRadius(LengthUnit unit)
Gets the radius of this window in a length unit.
|
double |
RectangularWindow.getWidth(LengthUnit unit)
Returns the width at the mid-line of the window.
|
static double |
LatLngWindow.latitudeDeltaToLength(double deltaLat,
LengthUnit unit)
Converts a latitude degree arc to the length of that arc.
|
static double |
LatLngWindow.lengthToLatitudeDelta(double length,
LengthUnit unit)
Converts a length measurement into the latitude that that length
spans.
|
static double |
LatLngWindow.lengthToLongitudeDelta(double length,
LengthUnit unit,
double latitude)
Converts a length measurement into the longitude that that length
spans at the given latitude.
|
static double |
LatLngWindow.longitudeDeltaToLength(double deltaLng,
LengthUnit unit,
double latitude)
Converts a longitude degree arc at a specific latitude to the length
of the arc.
|
| Constructor and Description |
|---|
CircularWindow(LatLng center,
double radius,
LengthUnit unit)
Constructs a circular window that will contain all points within the
specified radius.
|
RectangularWindow(LatLng center,
double width,
double height,
LengthUnit unit)
Creates a psuedo-rectangular window.
|
RectangularWindow(LatLng center,
double widthHeight,
LengthUnit unit)
Creates a psuedo-square window.
|
Copyright © 2010-2015. All Rights Reserved.