public final class

LatLng

extends Object
java.lang.Object
   ↳ com.smaato.sdk.core.LatLng

Class Overview

Represents a pair of latitude and longitude coordinates.

Summary

Public Constructors
LatLng(double latitude, double longitude, float accuracy, long timestamp)
Public Methods
boolean equals(Object o)
double getLatitude()
Latitude from -90.0 to +90.0, where negative is south.
float getLocationAccuracy()
Returns accuracy.
long getLocationTimestamp()
Returns accuracy.
double getLongitude()
Longitude from -180.0 to +180.0, where negative is west.
float getTimeSinceLastLocationUpdate()
Returns time since last location update.
int hashCode()
boolean isValid()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LatLng (double latitude, double longitude, float accuracy, long timestamp)

Public Methods

public boolean equals (Object o)

public double getLatitude ()

Latitude from -90.0 to +90.0, where negative is south.

Returns
  • latitude

public float getLocationAccuracy ()

Returns accuracy.

public long getLocationTimestamp ()

Returns accuracy.

Returns
  • timestamp

public double getLongitude ()

Longitude from -180.0 to +180.0, where negative is west.

Returns
  • longitude

public float getTimeSinceLastLocationUpdate ()

Returns time since last location update.

Returns
  • timeSinceLastLocationUpdate

public int hashCode ()

public boolean isValid ()

public String toString ()