public class NominatimSearchRequest extends NominatimRequest
Attributes documentation was extracted from Nominatim Wiki page on October 26th, 2013.
| Constructor and Description |
|---|
NominatimSearchRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCountryCode(String countryCode)
Limit search results to a specific country (or a list of countries).
|
void |
addExcludedlaceId(String placeId)
If you do not want certain openstreetmap objects to appear in the search result, give a list of the place_id's
you want to skip.
|
String |
getAcceptLanguage()
Gets the preferred language order for showing search results which overrides the browser value.
|
boolean |
getAddress()
When true, include a breakdown of the address into elements.
|
Boolean |
getBounded()
Gets whether or not the results will be bounded to the given
viewBox. |
List<String> |
getCountryCodes()
Gets the country codes.
|
List<String> |
getExcludePlaceIds()
A list of OSM elements ids to be excluded from search results.
|
Integer |
getLimit()
Gets the maximum number of results to be returned.
|
Boolean |
getName()
When true, include a list of alternative names in the results.
|
PolygonFormat |
getPolygonFormat()
Gets the output geometry format.
|
fr.dudie.nominatim.client.request.SearchQuery |
getQuery()
Gets the query parameters.
|
BoundingBox |
getViewBox()
Gets the preferred area to find search results.
|
void |
setAcceptLanguage(String acceptLanguage)
Sets the preferred language order for showing search results, overrides the browser value.
|
void |
setAddress(boolean address)
Include a breakdown of the address into elements.
|
void |
setBounded(boolean bounded)
Setting
true will restrict the results to only items contained with the bounding box. |
void |
setCountryCodes(List<String> countryCodes)
Limit search results to a specific country (or a list of countries).
|
void |
setExcludePlaceIds(List<String> excludePlaceIds)
If you do not want certain openstreetmap objects to appear in the search result, give a list of the place_id's
you want to skip.
|
void |
setLimit(Integer limit)
Limit the number of returned results.
|
void |
setName(Boolean name)
Include a list of alternative names in the results.
|
void |
setPolygonFormat(PolygonFormat polygonFormat)
Choose output geometry format.
|
void |
setQuery(fr.dudie.nominatim.client.request.SearchQuery query)
Sets query parameters.
|
void |
setQuery(String simpleQuery)
Sets a simple query.
|
void |
setViewBox(BoundingBox viewBox)
Sets the preferred area to find search results;
|
void |
setViewBox(double west,
double north,
double east,
double south)
Sets the preferred area to find search results;
|
void |
setViewBox(int westE6,
int northE6,
int eastE6,
int southE6)
Sets the preferred area to find search results;
|
getQueryStringpublic fr.dudie.nominatim.client.request.SearchQuery getQuery()
public void setQuery(fr.dudie.nominatim.client.request.SearchQuery query)
query - the query parameters object holderpublic void setQuery(String simpleQuery)
simpleQuery - the query string, such as Rennes, Francepublic String getAcceptLanguage()
public void setAcceptLanguage(String acceptLanguage)
acceptLanguage - a standard rfc2616 accept-language string or a simple comma separated list of language codespublic List<String> getCountryCodes()
public void setCountryCodes(List<String> countryCodes)
countryCodes - the country codes to setpublic void addCountryCode(String countryCode)
countryCode - the country code to addpublic BoundingBox getViewBox()
public void setViewBox(BoundingBox viewBox)
viewBox - the vthe preferred area to find search results to setpublic void setViewBox(double west,
double north,
double east,
double south)
west - the west boundnorth - the north boundeast - the east boundsouth - the south boundpublic void setViewBox(int westE6,
int northE6,
int eastE6,
int southE6)
westE6 - the west boundnorthE6 - the north boundeastE6 - the east boundsouthE6 - the south boundpublic Boolean getBounded()
viewBox.public void setBounded(boolean bounded)
true will restrict the results to only items contained with the bounding box. bounded - the bounded to setpublic boolean getAddress()
public void setAddress(boolean address)
address - the address to setpublic Boolean getName()
public void setName(Boolean name)
name - public List<String> getExcludePlaceIds()
public void setExcludePlaceIds(List<String> excludePlaceIds)
excludePlaceIds - the excluded place ids to setpublic void addExcludedlaceId(String placeId)
placeId - the place id to excludepublic Integer getLimit()
public void setLimit(Integer limit)
limit - the limit to setpublic PolygonFormat getPolygonFormat()
public void setPolygonFormat(PolygonFormat polygonFormat)
polygonFormat - the polygon format to setCopyright © 2010-2017 Dudie. All Rights Reserved.