public abstract class LocationConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
LOCATION_PROVIDER_NAME |
Constructor and Description |
---|
LocationConverter() |
Modifier and Type | Method and Description |
---|---|
abstract android.graphics.Point |
fromLocation(android.location.Location location)
Converts the given Android
Location to screen coordinates. |
static android.location.Location |
toLocation(double latitude,
double longitude)
Creates an Android
Location object using the given coordinates. |
abstract android.location.Location |
toLocation(int x,
int y)
Converts the given screen coordinates to an Android
Location object. |
protected static final java.lang.String LOCATION_PROVIDER_NAME
public static android.location.Location toLocation(double latitude, double longitude)
Location
object using the given coordinates.latitude
- The latitude degrees of the location.longitude
- The longitude degrees of the location.Location
object of the given coordinates.public abstract android.location.Location toLocation(int x, int y)
Location
object.x
- The x coordinate in screen space.y
- The y coordinate in screen space.Location
object.public abstract android.graphics.Point fromLocation(android.location.Location location)
Location
to screen coordinates.location
- The Location
to get the screen location from.Location