public class LocationConverter
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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. |
android.location.Location |
toLocation(int x,
int y)
Converts the given screen coordinates to an Android
Location object. |
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 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 android.graphics.Point fromLocation(android.location.Location location)
Location to screen coordinates.location - The Location to get the screen location from.Location