Package | Description |
---|---|
org.apache.lucene.spatial.geometry | |
org.apache.lucene.spatial.geometry.shape |
Modifier and Type | Class and Description |
---|---|
class |
FixedLatLng
NOTE: This API is still in
flux and might change in incompatible ways in the next
release.
|
class |
FloatLatLng
NOTE: This API is still in
flux and might change in incompatible ways in the next
release.
|
Modifier and Type | Method and Description |
---|---|
abstract LatLng |
LatLng.calculateMidpoint(LatLng other)
Calculate the midpoint between this point an another.
|
LatLng |
FixedLatLng.calculateMidpoint(LatLng other) |
LatLng |
FloatLatLng.calculateMidpoint(LatLng other) |
abstract LatLng |
LatLng.copy() |
LatLng |
FixedLatLng.copy() |
LatLng |
FloatLatLng.copy() |
static LatLng |
LatLng.fromCartesian(CartesianPoint pt)
The inverse of toCartesian().
|
abstract LatLng |
LatLng.normalize() |
LatLng |
FixedLatLng.normalize() |
LatLng |
FloatLatLng.normalize() |
Modifier and Type | Method and Description |
---|---|
double |
LatLng.arcDistance(LatLng ll2)
Calculates the distance between two lat/lng's in miles.
|
double |
LatLng.arcDistance(LatLng ll2,
DistanceUnits lUnits)
Calculates the distance between two lat/lng's in miles or meters.
|
abstract LatLng |
LatLng.calculateMidpoint(LatLng other)
Calculate the midpoint between this point an another.
|
LatLng |
FixedLatLng.calculateMidpoint(LatLng other) |
LatLng |
FloatLatLng.calculateMidpoint(LatLng other) |
Constructor and Description |
---|
FixedLatLng(LatLng ll) |
FloatLatLng(LatLng ll) |
Modifier and Type | Method and Description |
---|---|
LatLng |
LLRect.getLowerLeft() |
LatLng |
LLRect.getMidpoint() |
LatLng |
LLRect.getUpperRight() |
Modifier and Type | Method and Description |
---|---|
static LLRect |
LLRect.createBox(LatLng center,
double widthMi,
double heightMi)
Approximates a box centered at the given point with the given width and height in miles.
|
Constructor and Description |
---|
LLRect(LatLng ll,
LatLng ur) |
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.