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 Boundsboundsprivate java.lang.Stringdescriptionprivate java.lang.Stringinfoprivate doublelatprivate doublelonprivate java.lang.Stringnameprivate java.lang.StringnearestPlaceprivate PrimitiveIdosmIdprivate longplaceIdprivate intzoom
-
Constructor Summary
Constructors Constructor Description SearchResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundsgetBounds()Returns the bounds.java.lang.StringgetDescription()Returns the description.BoundsgetDownloadArea()Returns the download area.java.lang.StringgetInfo()Returns the info.doublegetLat()Returns the latitude.doublegetLon()Returns the longitude.java.lang.StringgetName()Returns the name.java.lang.StringgetNearestPlace()Returns the nearest place.PrimitiveIdgetOsmId()Returns the OSM id.longgetPlaceId()Returns the Nominatim place id.intgetZoom()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
-
-