public abstract class LocationConverter extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
LOCATION_PROVIDER_NAME |
Constructor and Description |
---|
LocationConverter() |
Modifier and Type | Method and Description |
---|---|
abstract 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. |
abstract Location |
toLocation(int x,
int y)
Converts the given screen coordinates to an Android
Location object. |
protected static final String LOCATION_PROVIDER_NAME
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 abstract Location toLocation(int x, int y)
Location
object.x
- The x coordinate in screen space.y
- The y coordinate in screen space.Location
object.