Last change
on this file since 35760 was 35760, checked in by taylor.smock, 3 years ago |
CustomizePublicTransportStop: recompile for compatibility with JOSM r17896
|
File size:
1.0 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.plugins.customizepublictransportstop;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.osm.IWaySegment;
|
---|
5 | import org.openstreetmap.josm.data.osm.Node;
|
---|
6 | import org.openstreetmap.josm.data.osm.Way;
|
---|
7 | import org.openstreetmap.josm.data.osm.WaySegment;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * Distance from platform to ways
|
---|
11 | *
|
---|
12 | * @author Rodion Scherbakov
|
---|
13 | */
|
---|
14 | public class NearestWaySegment {
|
---|
15 | /**
|
---|
16 | * Square of distance
|
---|
17 | */
|
---|
18 | public Double distanceSq = 1000000000.0;
|
---|
19 | /**
|
---|
20 | * Way segment
|
---|
21 | */
|
---|
22 | public IWaySegment<Node, Way> waySegment;
|
---|
23 | /**
|
---|
24 | * Node
|
---|
25 | */
|
---|
26 | public Node newNode;
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * Constructor
|
---|
30 | *
|
---|
31 | * @param distanceSq Square of distance
|
---|
32 | * @param waySegment Way segment
|
---|
33 | * @param newNode Node
|
---|
34 | */
|
---|
35 | public NearestWaySegment(Double distanceSq, IWaySegment<Node, Way> waySegment, Node newNode) {
|
---|
36 | this.distanceSq = distanceSq;
|
---|
37 | this.waySegment = waySegment;
|
---|
38 | this.newNode = newNode;
|
---|
39 | }
|
---|
40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.