Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.model
Interface Point

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ExtendedLocation, ExtendedYPBusiness, IntlAddress, Location, LocationMark, YPBusiness

public interface Point
extends java.io.Serializable

Method Summary
 double getDistance(Point pt)
          Returns the distance from this Point to a specified Point.
 java.lang.String getLabel()
           
 double getLatitude()
          This returns the latitude of this Point.
 double getLongitude()
          This returns the longitude of this Point.
 ProviderCredit getPositionProvider()
           
 double getRadius()
          This returns the optional radius around this Point.
 void setLabel(java.lang.String name)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setPositionProvider(ProviderCredit credit)
           
 void setRadius(double radius)
           

 

Method Detail

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String name)

getLatitude

public double getLatitude()
This returns the latitude of this Point.
Returns:
the latitude of this Point

setLatitude

public void setLatitude(double latitude)

getLongitude

public double getLongitude()
This returns the longitude of this Point.
Returns:
the longitude of this Point

setLongitude

public void setLongitude(double longitude)

getRadius

public double getRadius()
This returns the optional radius around this Point.
Returns:
a double representing the radius around this Point (0 by default)

setRadius

public void setRadius(double radius)

getDistance

public double getDistance(Point pt)
Returns the distance from this Point to a specified Point.
Parameters:
pt - the specified Point
Returns:
the distance between this Point and the specified Point in meters.

getPositionProvider

public ProviderCredit getPositionProvider()

setPositionProvider

public void setPositionProvider(ProviderCredit credit)

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.