MapQuest Advantage JavaScript API Reference Documentation

Class MQLatLng

Object
   |
   +--MQObject
         |
         +--MQLatLng

class MQLatLng
extends MQObject


Contains a latitude/longitude pair.
Defined in mqcommon.js


Field Summary
 float lat
          Value to represent the latitude
 float lng
          Value to represent the longitude
   
Fields inherited from class MQObject
m_xmlDoc, m_xpath
 
Constructor Summary
MQLatLng (<float/string> param1, <float> param2)
            Constructs a new MQLatLng object.
 
Method Summary
 double arcDistance( <MQLatLng> ll2, <MQDistanceUnits> lUnits)
           Calculates the distance between two lat/lng's in miles or meters.
 Boolean equals(<MQLatLng> ll)
           Determines whether or not two latlngs are equal.
 String getClassName()
           Returns the text name of this class.
 float getLatitude()
           Returns the latitude value.
 float getLongitude()
           Returns the longitude value.
 int getObjectVersion()
           Returns the version of this class.
 void loadXml(<String> strXml)
           Assigns the xml that relates to this object.
 String saveXml()
           Build an xml string that represents this object.
 void setLatitude(<float> fLatitude)
           Sets the latitude value.
 void setLatLng(<float> fLatitude, <float> fLongitude)
           Sets the latitude and longitude values.
 void setLongitude(<float> fLongitude)
           Sets the longitude value.
 string toString()
           Returns a string representation of this MQLatLng.
 Boolean valid()
           Returns a true if both the latitude and longitude values are set to a value other than the static "INVALID" value.
 
Methods inherited from class MQObject
getM_XmlDoc, setM_XmlDoc, getM_Xpath, setM_Xpath, setProperty, getProperty, copy, internalCopy
 

Field Detail

lat

float lat

lng

float lng

Constructor Detail

MQLatLng

MQLatLng(<float/string> param1, <float> param2)

Method Detail

arcDistance

double arcDistance( <MQLatLng> ll2, <MQDistanceUnits> lUnits)

equals

Boolean equals(<MQLatLng> ll)

getClassName

String getClassName()

getLatitude

float getLatitude()

getLongitude

float getLongitude()

getObjectVersion

int getObjectVersion()

loadXml

void loadXml(<String> strXml)

saveXml

String saveXml()

setLatitude

void setLatitude(<float> fLatitude)

setLatLng

void setLatLng(<float> fLatitude, <float> fLongitude)

setLongitude

void setLongitude(<float> fLongitude)

toString

string toString()

valid

Boolean valid()

MapQuest Advantage JavaScript API Reference Documentation

Documentation generated by JSDoc on Tue Oct 16 08:04:12 2007