public class Point extends Object implements IGeoCoordinates
| Constructor and Description |
|---|
Point(double longitude,
double latitude)
Simple constructor that only requires longitude and latitude.
|
Point(double longitude,
double latitude,
double elevation)
Constructor that also lets you set the elevation.
|
Point(com.google.gson.JsonArray array)
Constructor that constructs the point from a json array.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getElevation() |
double |
getLatitude() |
double |
getLongitude() |
void |
setElevation(double elevation) |
void |
setLatitude(double latitude) |
void |
setLongitude(double longitude) |
public Point(double longitude,
double latitude)
longitude - a geographic coordinate that specifies the east-west position of a point on the Earth's surfacelatitude - a geographic coordinate that specifies the north–south position of a point on the Earth's surfacepublic Point(double longitude,
double latitude,
double elevation)
longitude - a geographic coordinate that specifies the east-west position of a point on the Earth's surfacelatitude - a geographic coordinate that specifies the north–south position of a point on the Earth's surfaceelevation - the elevation of a geographic location is its height above or below the Earth's sea levelpublic Point(com.google.gson.JsonArray array)
array - a JsonArray containing two or three numberspublic double getLongitude()
public void setLongitude(double longitude)
public double getLatitude()
public void setLatitude(double latitude)
public double getElevation()
public void setElevation(double elevation)
Copyright © 2017–2018. All rights reserved.