Package org.openstreetmap.josm.io
Class NameFinder.SearchResult
- java.lang.Object
-
- org.openstreetmap.josm.io.NameFinder.SearchResult
-
- Enclosing class:
- NameFinder
public static class NameFinder.SearchResult extends java.lang.Object
Data storage for search results.
-
-
Field Summary
Fields Modifier and Type Field Description private Bounds
bounds
private java.lang.String
description
private java.lang.String
info
private double
lat
private double
lon
private java.lang.String
name
private java.lang.String
nearestPlace
private PrimitiveId
osmId
private long
placeId
private int
zoom
-
Constructor Summary
Constructors Constructor Description SearchResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bounds
getBounds()
Returns the bounds.java.lang.String
getDescription()
Returns the description.Bounds
getDownloadArea()
Returns the download area.java.lang.String
getInfo()
Returns the info.double
getLat()
Returns the latitude.double
getLon()
Returns the longitude.java.lang.String
getName()
Returns the name.java.lang.String
getNearestPlace()
Returns the nearest place.PrimitiveId
getOsmId()
Returns the OSM id.long
getPlaceId()
Returns the Nominatim place id.int
getZoom()
Returns the zoom.
-
-
-
Field Detail
-
name
private java.lang.String name
-
info
private java.lang.String info
-
nearestPlace
private java.lang.String nearestPlace
-
description
private java.lang.String description
-
lat
private double lat
-
lon
private double lon
-
zoom
private int zoom
-
osmId
private PrimitiveId osmId
-
placeId
private long placeId
-
-
Constructor Detail
-
SearchResult
public SearchResult()
-
-
Method Detail
-
getName
public final java.lang.String getName()
Returns the name.- Returns:
- the name
-
getInfo
public final java.lang.String getInfo()
Returns the info.- Returns:
- the info
-
getNearestPlace
public final java.lang.String getNearestPlace()
Returns the nearest place.- Returns:
- the nearest place
-
getDescription
public final java.lang.String getDescription()
Returns the description.- Returns:
- the description
-
getLat
public final double getLat()
Returns the latitude.- Returns:
- the latitude
-
getLon
public final double getLon()
Returns the longitude.- Returns:
- the longitude
-
getZoom
public final int getZoom()
Returns the zoom.- Returns:
- the zoom
-
getOsmId
public final PrimitiveId getOsmId()
Returns the OSM id.- Returns:
- the OSM id
-
getPlaceId
public long getPlaceId()
Returns the Nominatim place id.- Returns:
- the Nominatim place id
-
getDownloadArea
public Bounds getDownloadArea()
Returns the download area.- Returns:
- the download area
-
-