public class OsmSearcher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_MATCH_LIST_SIZE
maximum number of matches that searcher is allowed to return.
|
Constructor and Description |
---|
OsmSearcher(java.io.File baseDir)
Create an OsmSearcher using the specified base directory for the collection of OSM tile files.
|
Modifier and Type | Method and Description |
---|---|
void |
search(java.lang.String[] matchStrings,
int flagsToFind,
double lat,
double lon,
double radius,
OsmSearcherProgressListener listener)
Search the OpenStreetMap tile files for the specified landmark name.
|
void |
search(java.lang.String matchString,
int flagsToFind,
double lat,
double lon,
double radius,
OsmSearcherProgressListener listener)
Search the OpenStreetMap tile files for the specified landmark name.
|
public static final int MAX_MATCH_LIST_SIZE
public OsmSearcher(java.io.File baseDir)
baseDir
- File specifying where the YAAC-imported OSM tile files are locatedpublic void search(java.lang.String[] matchStrings, int flagsToFind, double lat, double lon, double radius, OsmSearcherProgressListener listener)
matchStrings
- case-insensitive hierarchical array of Strings to search for, or null if not searching by partial string matchflagsToFind
- int bit mask of GenericTaggedNode.flags set bits to look for (zero if not searching by flags)lat
- search center latitude in fractional degrees Northlon
- search center longitude in fractional degrees Eastradius
- maximum radius in meters for the searchlistener
- OsmSearcherProgressListener to be informed of finds and tile changes during the search, or null if not interested in progress reportspublic void search(java.lang.String matchString, int flagsToFind, double lat, double lon, double radius, OsmSearcherProgressListener listener)
matchString
- case-insensitive String to search for, or null if not searching by partial string matchflagsToFind
- int bit mask of GenericTaggedNode.flags set bits to look for (zero if not searching by flags)lat
- search center latitude in fractional degrees Northlon
- search center longitude in fractional degrees Eastradius
- maximum radius in meters for the searchlistener
- OsmSearcherProgressListener to be informed of finds and tile changes during the search, or null if not interested in progress reports