2
* Copyright (C) 2008 Steve Ratcliffe
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
14
* Author: Steve Ratcliffe
15
* Create date: 13-Jul-2008
17
package uk.me.parabola.imgfmt.app;
20
* A coordinate that is known to be a routing node. You can tell by the fact
21
* that getId() returns != 0.
23
* @author Steve Ratcliffe
25
public class CoordNode extends Coord {
26
private final long id;
27
//private int roadCount;
28
private final boolean boundary;
31
* Construct from co-ordinates that are already in map-units.
33
* @param latitude The latitude in map units.
34
* @param longitude The longitude in map units.
35
* @param id The ID of this routing node.
36
* @param boundary This is a routing node on the boundary.
38
public CoordNode(int latitude, int longitude, long id, boolean boundary) {
39
super(latitude, longitude);
41
this.boundary = boundary;
48
public boolean isBoundary() {