public class TextCoordGeo extends Object
| Constructor and Description |
|---|
TextCoordGeo() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(double lat,
double lon)
Formats the geographic coordinates into a form that is suitable
for presentation in a user interface.
|
double |
getLatitude() |
double |
getLongitude() |
double[] |
parse(String text)
Parses a latitude/longitude string.
|
public double[] parse(String text) throws ParseException
text - a valid stringParseException - in the event of invalid textpublic double getLatitude()
public double getLongitude()
public String format(double lat, double lon)
lat - a floating point value in the range -90 to 90lon - a floating point value in the range -360 to 360
(values are folded into range -180 ≤ lon < 180).Copyright © 2019. All rights reserved.