LatLng
public
final
class
LatLng
extends Object
implements
VersionedParcelable
java.lang.Object
|
↳ |
androidx.car.cluster.navigation.LatLng
|
A representation of a latitude, longitude that can be serialized as a
VersionedParcelable
.
Unlike Location
, this class only contains latitude and longitude and not other fields
like bearing, speed and so on.
Summary
Public constructors |
LatLng(double latitude, double longitude)
Construct a new LatLng with the given latitude and longitude.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
LatLng
public LatLng (double latitude,
double longitude)
Construct a new LatLng
with the given latitude and longitude.
Parameters |
latitude |
double |
longitude |
double |
Public methods
equals
public boolean equals (Object o)
getLatitude
public double getLatitude ()
Returns the latitude.
getLongitude
public double getLongitude ()
Returns the longitude.
hashCode
public int hashCode ()
toString
public String toString ()