|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mapquest.MQObject
com.mapquest.MQObjectCollection
com.mapquest.LatLngCollection
Contains a collection of LatLng objects.
LatLng,
DistanceUnits| Field Summary | |
static int |
CLASS_ID
|
static java.lang.String |
CLASS_NAME
|
| Fields inherited from class com.mapquest.MQObject |
DEFAULT_ID, DEFAULT_NAME, DEFAULT_VERSION, FORMAT_NUMERIC_ID, FORMAT_TEXT_NAME, INVALID_ID, INVALID_NAME, INVALID_VERSION |
| Constructor Summary | |
LatLngCollection()
Default constructor. |
|
| Method Summary | |
void |
addLatLng(double latitude,
double longitude)
Creates a new LatLng object from the two inputs, and adds it to the collection. |
double |
arcDistance()
Calculates the actual distance in miles of a line, by from the lat/longs that are part of this collection. |
double |
arcDistance(DistanceUnits lUnits)
Calculates the actual distance in miles of a line, by from the lat/longs that are part of this collection. |
boolean |
expandBoundingRect(LatLng UL,
LatLng LR)
Expands the given lat/lng bounding rectangle, if necessary, to encompass all points in the latlng collection. |
void |
generalize(double dDeviance)
Reduce the points in the lat/lng collection. |
LatLng |
getAt(int index)
Returns the element at the specified position in this collection. |
boolean |
getBoundingRect(LatLng UL,
LatLng LR)
Returns lat/lng bounding rectangle of all points in the latlng collection. |
int |
getClassId()
Returns the numeric id of this class. |
java.lang.String |
getClassName()
Returns the text name of this class. |
void |
init()
Initializes object. |
| Methods inherited from class com.mapquest.MQObjectCollection |
add, append, equals, get, getSize, hashCode, remove, removeAll, removeAt |
| Methods inherited from class com.mapquest.MQObject |
clone, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CLASS_ID
public static final java.lang.String CLASS_NAME
| Constructor Detail |
public LatLngCollection()
| Method Detail |
public void init()
init in class MQObjectCollectionpublic int getClassId()
getClassId in class MQObjectpublic java.lang.String getClassName()
getClassName in class MQObjectpublic LatLng getAt(int index)
get(int).
index - index of element to return.
MQObjectCollection.get(int)
public void addLatLng(double latitude,
double longitude)
add(MQObject).
latitude - a double representing the Latitudelongitude - a double representing the LongitudeMQObjectCollection.add(MQObject)
public boolean getBoundingRect(LatLng UL,
LatLng LR)
UL - a LatLng representing the upper-left LatLngLR - a LatLng representing the lower-right LatLng
public boolean expandBoundingRect(LatLng UL,
LatLng LR)
UL - a LatLng representing the upper-left LatLngLR - a LatLng representing the lower-right LatLng
public double arcDistance()
public double arcDistance(DistanceUnits lUnits)
lUnits - Units objectpublic void generalize(double dDeviance)
dDeviance - the deviance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||