public class OverpassQuery
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected hu.supercluster.overpasser.library.query.OverpassQueryBuilder |
builder |
| Constructor and Description |
|---|
OverpassQuery() |
| Modifier and Type | Method and Description |
|---|---|
OverpassQuery |
boundingBox(double southernLat,
double westernLon,
double northernLat,
double easternLon)
Defines a global bounding box that is then implicitly added to all queries (unless they specify a different explicit bounding box)
|
java.lang.String |
build()
Closes the current query with the character ; and returns the output as a string.
|
OverpassFilterQuery |
filterQuery()
Creates a map query to embed its output in the current query.
|
OverpassQuery |
format(OutputFormat outputFormat)
Controls the output format used to return OSM data.
|
void |
onSubQueryResult(hu.supercluster.overpasser.library.query.AbstractOverpassSubQuery subQuery) |
OverpassQuery |
output(int limit)
Appends the print (out) action to the query with default parameters:
verbosity:
OutputVerbosity.BODY
modificator: OutputModificator.CENTER
order: OutputOrder.QT
|
OverpassQuery |
output(OutputVerbosity verbosity,
OutputModificator modificator,
OutputOrder order,
int limit)
Appends a ; character and the print (out) action to the query.
|
OverpassQuery |
timeout(int timeout)
Sets the maximum allowed runtime for the query in seconds.
|
protected hu.supercluster.overpasser.library.query.OverpassQueryBuilder builder
public OverpassQuery format(OutputFormat outputFormat)
outputFormat - the OutputFormat to usepublic OverpassQuery timeout(int timeout)
timeout - the maximum allowed runtime in secondspublic OverpassQuery boundingBox(double southernLat, double westernLon, double northernLat, double easternLon)
southernLat - the southern latitudewesternLon - the western longitudenorthernLat - the northern latitudeeasternLon - the eastern longitudepublic OverpassFilterQuery filterQuery()
public OverpassQuery output(int limit)
OutputVerbosity.BODYOutputModificator.CENTEROutputOrder.QTlimit - maximum number of elements to returnoutput(OutputVerbosity, OutputModificator, OutputOrder, int)public OverpassQuery output(OutputVerbosity verbosity, OutputModificator modificator, OutputOrder order, int limit)
verbosity - degree of output verbosity (see OutputVerbosity)modificator - output modificator for derived information (see OutputModificator)order - sort order (see OutputOrder)limit - maximum number of elements to returnpublic java.lang.String build()
public void onSubQueryResult(hu.supercluster.overpasser.library.query.AbstractOverpassSubQuery subQuery)