Mapstraction

Class LatLonPoint

Object
   |
   +--LatLonPoint

class LatLonPoint

Defined in mapstraction.js


Field Summary
 Object lat
          
 Object lng
          
 Object lon
          
 
Constructor Summary
LatLonPoint(<double> lat, <double> lon)
            LatLonPoint is a point containing a latitude and longitude with helper methods
 
Method Summary
 double distance(<LatLonPoint> otherPoint)
           distance returns the distance in kilometers between two points
 boolean equals(<LatLonPoint> otherPoint)
           equals tests if this point is the same as some other one
 void fromGoogle(<Object> googlePoint)
           Sets a point based on a google point
 Object fromOpenLayers()
           fromOpenLayers converts an OpenLayers point to Mapstraction LatLonPoint Does a conversion from projectect coordinates to Latitude/Longitude
 void fromOpenSpace(osPoint)
           fromOpenSpace given an OpenSpace.MapPoint returns a new Mapstraction LatLonPoint
 Float latConv()
           Returns latitude conversion based on current projection
 Float lonConv()
           Returns longitude conversion based on current projection
 Object toFreeEarth()
           toFreeEarth returns a FreeEarth point
 Object toGoogle()
           toGoogle returns a Google maps point
 Object toMap24()
           toMap24 returns a Map24 point
 Object toMapQuest()
           toMapQuest returns a MapQuest point
 Object toMicrosoft()
           toMicrosoft returns a VE maps point
 Object toMultiMap()
           toMultiMap returns a MultiMap point
 Object toOpenLayers()
           toOpenLayers returns an OpenLayers point Does a conversion from Latitude/Longitude to projected coordinates
 Object toOpenSpace()
           toOpenSpace returns an OpenSpace point
 String toString()
           toString returns a string represntation of a point
 Object toViaMichelin()
           toViaMichelin returns a ViaMichelin point
 Object toYahoo()
           toYahoo returns a Y!

Field Detail

lat

Object lat

lng

Object lng

lon

Object lon

Constructor Detail

LatLonPoint

LatLonPoint(<double> lat, <double> lon)

Method Detail

distance

double distance(<LatLonPoint> otherPoint)

equals

boolean equals(<LatLonPoint> otherPoint)

fromGoogle

void fromGoogle(<Object> googlePoint)

fromOpenLayers

Object fromOpenLayers()

fromOpenSpace

void fromOpenSpace(osPoint)

latConv

Float latConv()

lonConv

Float lonConv()

toFreeEarth

Object toFreeEarth()

toGoogle

Object toGoogle()

toMap24

Object toMap24()

toMapQuest

Object toMapQuest()

toMicrosoft

Object toMicrosoft()

toMultiMap

Object toMultiMap()

toOpenLayers

Object toOpenLayers()

toOpenSpace

Object toOpenSpace()

toString

String toString()

toViaMichelin

Object toViaMichelin()

toYahoo

Object toYahoo()

Mapstraction

Documentation generated by JSDoc on Mon Dec 15 20:12:04 2008