vanetsim.map.OSM
Class OSMNode

java.lang.Object
  extended by vanetsim.map.OSM.OSMNode

public final class OSMNode
extends java.lang.Object

A helper class for processing OpenStreetMap-Nodes.


Constructor Summary
OSMNode(double latitude, double longitude)
          Instantiates a new helper node.
OSMNode(double latitude, double longitude, boolean hasTrafficSignal)
          Instantiates a new helper node.
 
Method Summary
 Node getRealNode()
          Gets a real node (node with coordinates in cm) associated to this node.
static void setCorrections(double longitudeMiddle, double correctionX, double correctionY)
          Sets the corrections.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSMNode

public OSMNode(double latitude,
               double longitude)
Instantiates a new helper node.

Parameters:
latitude - the latitude
longitude - the longitude

OSMNode

public OSMNode(double latitude,
               double longitude,
               boolean hasTrafficSignal)
Instantiates a new helper node.

Parameters:
latitude - the latitude
longitude - the longitude
hasTrafficSignal - if node has a traffic signal
Method Detail

setCorrections

public static void setCorrections(double longitudeMiddle,
                                  double correctionX,
                                  double correctionY)
Sets the corrections. Valid for all OSM_Nodes so it's static!

Parameters:
longitudeMiddle - the longitude to use the middle for all conversions from WGS84 to UTM
correctionX - the correction value for the x coordinate (minimum x value you have)
correctionY - the correction value for the y coordinate (maximum y value you have)

getRealNode

public Node getRealNode()
Gets a real node (node with coordinates in cm) associated to this node.

Returns:
the ready-to-use real node