public class LocationConverter extends Object
Modifier and Type | Method and Description |
---|---|
Point |
fromLocation(Location location)
Converts the given Android
Location to screen coordinates. |
static Location |
toLocation(double latitude,
double longitude)
Creates an Android
Location object using the given coordinates. |
Location |
toLocation(int x,
int y)
Converts the given screen coordinates to an Android
Location object. |
public static 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 Location toLocation(int x, int y)
Location
object.x
- The x coordinate in screen space.y
- The y coordinate in screen space.Location
object.