uk.me.parabola.imgfmt.app
Class CoordNode

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.Coord
      extended by uk.me.parabola.imgfmt.app.CoordNode
All Implemented Interfaces:
java.lang.Comparable<Coord>

public class CoordNode
extends Coord

A coordinate that is known to be a routing node. You can tell by the fact that getId() returns != 0.

Author:
Steve Ratcliffe

Constructor Summary
CoordNode(int latitude, int longitude, long id, boolean boundary)
          Construct from co-ordinates that are already in map-units.
 
Method Summary
 long getId()
           
 
Methods inherited from class uk.me.parabola.imgfmt.app.Coord
bearingTo, compareTo, distance, distanceInDegreesSquared, equals, getHighwayCount, getLatitude, getLongitude, getOnBoundary, hashCode, incHighwayCount, makeBetweenPoint, preserved, preserved, quickDistance, setOnBoundary, slowDistance, toDegreeString, toOSMURL, toOSMURL, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoordNode

public CoordNode(int latitude,
                 int longitude,
                 long id,
                 boolean boundary)
Construct from co-ordinates that are already in map-units.

Parameters:
latitude - The latitude in map units.
longitude - The longitude in map units.
id - The ID of this routing node.
boundary - This is a routing node on the boundary.
Method Detail

getId

public long getId()
Overrides:
getId in class Coord