| com.google.gdata.data.geo.Point |
Known Indirect Subclasses
| GeoRssPoint |
Extension for a Geo RSS georss:point element. |
| GeoRssWhere |
The georss:where element. |
| GmlLowerCorner |
Point that represents the lower corner of a gml:Envelope. |
| GmlPoint |
Extension for a GML gml:Point element. |
| GmlPos |
A GML Coordinate which is just a space-separated pair of lat/lon. |
| GmlUpperCorner |
Point that represents the upper corner of a gml:Envelope. |
| PointConstruct |
A basic point construct consists of a space-separated coordinate in geo
space. |
| W3CPoint |
Extension for a W3C geo:Point element. |
|
Class Overview
Interface for specifying a point that describes some geographic location.
Each point should have a latitude and longitude coordinate
Summary
| Public Methods |
|
abstract
Double
|
getLatitude()
|
|
abstract
Double
|
getLongitude()
|
|
abstract
void
|
setGeoLocation(Double lat, Double lon)
Sets the latitude and longitude coordinates of this Point.
|
Public Methods
public
abstract
Double
getLatitude
()
Returns
- the value of latitude coordinate of this Point.
public
abstract
Double
getLongitude
()
Returns
- the value of the longitude coordinate of this Point.
public
abstract
void
setGeoLocation
(Double lat, Double lon)
Sets the latitude and longitude coordinates of this Point. Either both lat
and lon must be non-null, or both must be null. Implementations will throw
an IllegalArgumentException if only one is null and one is not. They will
also throw an IllegalArgumentException if either of the lat values is
outside the valid range.
Parameters
| lat
| The latitude in degrees, from -90 to 90. |
| lon
| The longitude in degrees, from -180 to 180. |
Throws
| IllegalArgumentException
| if either lat or lon values are invalid,
or if one of them is null and the other non-null.
|