public interface

Point

implements Extension
com.google.gdata.data.geo.Point
Known Indirect Subclasses

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.
[Expand]
Inherited Methods
From interface com.google.gdata.data.Extension

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.