com.google.android.maps.GeoPoint
An immutable class representing a pair of latitude and
longitude, stored as integer numbers of microdegrees.
Summary
Public Constructors
|
|
|
|
|
|
GeoPoint(int latitudeE6, int longitudeE6) |
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
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.
|
Public Methods
public
boolean
equals(Object object)
Compares the argument to the receiver, and returns true if they represent
the
same object using a class specific comparison. The
implementation in Object returns true only if the argument is the exact
same object as the receiver (==).
Parameters
object
| Object the object to compare with this object. |
Returns
- boolean
true
if the object is the same as this
object false
if it is different from this object.
public
int
getLatitudeE6()
Returns the latitude of this GeoPoint in microdegrees (degrees * 1E6).
public
int
getLongitudeE6()
Returns the longitude of this GeoPoint in microdegrees (degrees * 1E6).
public
int
hashCode()
Returns an integer hash code for the receiver. Any two objects which
answer
true
when passed to
.equals
must
answer the same value for this method.
public
String
toString()
Returns a string containing a concise, human-readable description of the
receiver.
Returns
- String a printable representation for the receiver.