org.openstreetmap.osmosis.core.pgsql.v0_6.impl
Class NodeLocation

java.lang.Object
  extended by org.openstreetmap.osmosis.core.pgsql.v0_6.impl.NodeLocation

public class NodeLocation
extends java.lang.Object

Represents the minimal geo-spatial information associated with a node.

Author:
Brett Henderson

Constructor Summary
NodeLocation()
          Creates a new empty instance which is marked as invalid.
NodeLocation(double longitude, double latitude)
          Creates a new instance with populated location details.
 
Method Summary
 double getLatitude()
          Gets the latitude of the node.
 double getLongitude()
          Gets the longitude of the node.
 boolean isValid()
          Indicates if the node is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeLocation

public NodeLocation()
Creates a new empty instance which is marked as invalid.


NodeLocation

public NodeLocation(double longitude,
                    double latitude)
Creates a new instance with populated location details.

Parameters:
longitude - The longitude of the node.
latitude - The latitude of the node.
Method Detail

isValid

public boolean isValid()
Indicates if the node is valid. A node may be invalid if it does not exist.

Returns:
The valid flag.

getLongitude

public double getLongitude()
Gets the longitude of the node.

Returns:
The node longitude.

getLatitude

public double getLatitude()
Gets the latitude of the node.

Returns:
The node latitude.