com.google.android.maps
Class GeoPoint

java.lang.Object
  extended by com.google.android.maps.GeoPoint

public class GeoPoint
extends java.lang.Object

An immutable class representing a pair of latitude and longitude, stored as integer numbers of microdegrees.


Constructor Summary
GeoPoint(int latitudeE6, int longitudeE6)
          Constructs a GeoPoint with the given latitude and longitude, measured in microdegrees (degrees * 1E6).
 
Method Summary
 boolean equals(java.lang.Object object)
           
 int getLatitudeE6()
          Returns the latitude of this GeoPoint in microdegrees (degrees * 1E6).
 int getLongitudeE6()
          Returns the longitude of this GeoPoint in microdegrees (degrees * 1E6).
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeoPoint

public GeoPoint(int latitudeE6,
                int longitudeE6)
Constructs a GeoPoint with the given latitude and longitude, measured in microdegrees (degrees * 1E6).

Parameters:
latitudeE6 - The point's latitude. This will be clamped to between -80 degrees and +80 degrees inclusive, in order to maintain accuracy in the Mercator projection.
longitudeE6 - The point's longitude. This will be normalized to be greater than -180 degrees and less than or equal to +180 degrees.
Method Detail

getLatitudeE6

public int getLatitudeE6()
Returns the latitude of this GeoPoint in microdegrees (degrees * 1E6).

Returns:
The latitude.

getLongitudeE6

public int getLongitudeE6()
Returns the longitude of this GeoPoint in microdegrees (degrees * 1E6).

Returns:
The longitude.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object