public class GTNWrapper
extends java.lang.Object
OsmSearcher
to conveniently provide its position and distance from the map center so the GUI can
sort it in with other search results.| Modifier and Type | Field and Description |
|---|---|
float |
bearing
Direction from map center to this Way or Node.
|
GenericTaggedNode |
gtn
The Way or Node that was found by the OsmSearcher,
|
int |
nearestLat
Latitude of this Node, or nearest latitude of this Way.
|
int |
nearestLon
Longitude of this Node, or nearest longitude of this Way.
|
int |
radiusM
Distance in meters from the map center to this Way or Node.
|
| Constructor and Description |
|---|
GTNWrapper(GenericTaggedNode gtn,
double radiusM,
float bearing,
int lat,
int lon)
Constructor for a GTNWrapper.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Returns a string representation of the object.
|
public final GenericTaggedNode gtn
public final int radiusM
public final float bearing
public final int nearestLat
public final int nearestLon
public GTNWrapper(GenericTaggedNode gtn, double radiusM, float bearing, int lat, int lon)
gtn - The Way or Node that was found by the OsmSearcher,radiusM - Distance in meters from the map center to this Way or Node.bearing - bearing in degrees from True North from map center to this Way or Node.lat - Latitude of this Node, or nearest latitude of this Way.lon - Longitude of this Node, or nearest longitude of this Way.