| Package | Description |
|---|---|
| com.javadocmd.simplelatlng |
The base package for latitude and longitude utilities offered by SimpleLatLng.
|
| com.javadocmd.simplelatlng.window |
A package allowing calculations on windows of latitude and longitude.
|
| Modifier and Type | Method and Description |
|---|---|
static LatLng |
Geohasher.decode(String hash)
Decodes a geohash string to its LatLng equivalent.
|
static LatLng |
LatLng.random()
Creates a random latitude and longitude.
|
static LatLng |
LatLng.random(Random r)
Creates a random latitude and longitude.
|
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 | Method and Description |
|---|---|
static double |
LatLngTool.distance(LatLng point1,
LatLng point2,
LengthUnit unit)
Distance between two points.
|
static double |
LatLngTool.distanceInRadians(LatLng point1,
LatLng point2)
This "distance" function is mostly for internal use.
|
static String |
Geohasher.hash(LatLng point)
Geohashes a latitude and longitude.
|
static double |
LatLngTool.initialBearing(LatLng start,
LatLng end)
Calculate the initial bearing in degrees on a great-circle course from
one point to another.
|
static double |
LatLngTool.initialBearingInRadians(LatLng start,
LatLng end)
Calculate the initial bearing in radians on a great-circle course from
one point to another.
|
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 | Method and Description |
|---|---|
LatLng |
CircularWindow.getCenter() |
LatLng |
RectangularWindow.getCenter() |
abstract LatLng |
LatLngWindow.getCenter()
Returns the center point of the window.
|
abstract LatLng |
FilterHelper.getLatLng(S object) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
CircularWindow.contains(LatLng point) |
boolean |
RectangularWindow.contains(LatLng point) |
abstract boolean |
LatLngWindow.contains(LatLng point)
Tests to see if the given point falls within this window.
|
void |
CircularWindow.setCenter(LatLng center)
Sets the center of this window.
|
void |
RectangularWindow.setWindow(LatLng center,
double deltaLat,
double deltaLng)
Sets the bounds of this window.
|
| Constructor and Description |
|---|
CircularWindow(LatLng center,
double radiusInDegrees)
Constructs a circular window.
|
CircularWindow(LatLng center,
double radius,
LengthUnit unit)
Constructs a circular window that will contain all points within the
specified radius.
|
RectangularWindow(LatLng center,
double deltaLat,
double deltaLng)
Creates a pseudo-rectangular window.
|
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.
|
RectangularWindow(LatLng northeast,
LatLng southwest)
Creates a pseudo-rectangular window.
|
Copyright © 2010-2015. All Rights Reserved.