public class AltitudeUtilities
extends java.lang.Object
| Constructor and Description |
|---|
AltitudeUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(GeoPointMetaData pointMD)
Given a point, produce the standard altitude format based on the current preferences in the
system.
|
static java.lang.String |
format(GeoPoint point,
android.content.SharedPreferences prefs)
Given just the geopoint without metadata, apply the formatting for the altitude based on the
current shared preferences.
|
static java.lang.String |
format(GeoPoint point,
android.content.SharedPreferences prefs,
boolean pad)
Check the "Display AGL" preference and format relative to ground level if ground elevation
data can be loaded.
|
public static java.lang.String format(GeoPointMetaData pointMD)
pointMD - the geopoint with metadata.public static java.lang.String format(GeoPoint point,
android.content.SharedPreferences prefs)
point - the geopointprefs - the system shared preferencespublic static java.lang.String format(GeoPoint point,
android.content.SharedPreferences prefs,
boolean pad)
point - the geopoint to be formattedprefs - the system preferences