OsmAnd
|
Public Member Functions | |
PoiFilter (AmenityType type, OsmandApplication application) | |
PoiFilter (String name, String filterId, Map< AmenityType, LinkedHashSet< String >> acceptedTypes, OsmandApplication app) | |
void | setNameFilter (String nameFilter) |
String | getNameFilter () |
void | clearNameFilter () |
boolean | isSearchFurtherAvailable () |
List< Amenity > | searchFurther (double latitude, double longitude, ResultMatcher< Amenity > matcher) |
String | getSearchArea () |
void | clearPreviousZoom () |
List< Amenity > | initializeNewSearch (double lat, double lon, int firstTimeLimit, ResultMatcher< Amenity > matcher) |
ResultMatcher< Amenity > | getResultMatcher (final ResultMatcher< Amenity > matcher) |
List< Amenity > | searchAgain (double lat, double lon) |
String | getName () |
Set< String > | getAcceptedSubtypes (AmenityType type) |
boolean | isTypeAccepted (AmenityType t) |
boolean | acceptTypeSubtype (AmenityType t, String subtype) |
void | clearFilter () |
boolean | areAllTypesAccepted () |
void | setTypeToAccept (AmenityType type, boolean accept) |
void | setMapToAccept (Map< AmenityType, List< String >> newMap) |
String | buildSqlWhereFilter () |
Map< AmenityType, LinkedHashSet< String > > | getAcceptedTypes () |
void | selectSubTypesToAccept (AmenityType t, LinkedHashSet< String > accept) |
String | getFilterId () |
String | getFilterByName () |
void | setFilterByName (String filterByName) |
boolean | isStandardFilter () |
OsmandApplication | getApplication () |
Static Public Attributes | |
static final String | STD_PREFIX = "std_" |
static final String | USER_PREFIX = "user_" |
static final String | CUSTOM_FILTER_ID = "custom_id" |
static final String | BY_NAME_FILTER_ID = "by_name" |
Protected Member Functions | |
List< Amenity > | searchAmenities (double lat, double lon, double topLatitude, double bottomLatitude, double leftLongitude, double rightLongitude, final ResultMatcher< Amenity > matcher) |
Protected Attributes | |
String | filterId |
String | name |
String | nameFilter |
final OsmandApplication | application |
int | distanceInd = 1 |
double[] | distanceToSearchValues = new double[] {1, 2, 3, 5, 10, 30, 100, 250 } |
net.osmand.plus.PoiFilter.PoiFilter | ( | AmenityType | type, |
OsmandApplication | application | ||
) |
net.osmand.plus.PoiFilter.PoiFilter | ( | String | name, |
String | filterId, | ||
Map< AmenityType, LinkedHashSet< String >> | acceptedTypes, | ||
OsmandApplication | app | ||
) |
boolean net.osmand.plus.PoiFilter.acceptTypeSubtype | ( | AmenityType | t, |
String | subtype | ||
) |
boolean net.osmand.plus.PoiFilter.areAllTypesAccepted | ( | ) |
Set<String> net.osmand.plus.PoiFilter.getAcceptedSubtypes | ( | AmenityType | type | ) |
type |
Map<AmenityType, LinkedHashSet<String> > net.osmand.plus.PoiFilter.getAcceptedTypes | ( | ) |
String net.osmand.plus.PoiFilter.getFilterByName | ( | ) |
String net.osmand.plus.PoiFilter.getFilterId | ( | ) |
String net.osmand.plus.PoiFilter.getName | ( | ) |
String net.osmand.plus.PoiFilter.getNameFilter | ( | ) |
ResultMatcher<Amenity> net.osmand.plus.PoiFilter.getResultMatcher | ( | final ResultMatcher< Amenity > | matcher | ) |
String net.osmand.plus.PoiFilter.getSearchArea | ( | ) |
List<Amenity> net.osmand.plus.PoiFilter.initializeNewSearch | ( | double | lat, |
double | lon, | ||
int | firstTimeLimit, | ||
ResultMatcher< Amenity > | matcher | ||
) |
boolean net.osmand.plus.PoiFilter.isStandardFilter | ( | ) |
boolean net.osmand.plus.PoiFilter.isTypeAccepted | ( | AmenityType | t | ) |
List<Amenity> net.osmand.plus.PoiFilter.searchAgain | ( | double | lat, |
double | lon | ||
) |
Reimplemented in net.osmand.plus.NameFinderPoiFilter, and net.osmand.plus.SearchByNameFilter.
List<Amenity> net.osmand.plus.PoiFilter.searchAmenities | ( | double | lat, |
double | lon, | ||
double | topLatitude, | ||
double | bottomLatitude, | ||
double | leftLongitude, | ||
double | rightLongitude, | ||
final ResultMatcher< Amenity > | matcher | ||
) | [protected] |
List<Amenity> net.osmand.plus.PoiFilter.searchFurther | ( | double | latitude, |
double | longitude, | ||
ResultMatcher< Amenity > | matcher | ||
) |
void net.osmand.plus.PoiFilter.selectSubTypesToAccept | ( | AmenityType | t, |
LinkedHashSet< String > | accept | ||
) |
void net.osmand.plus.PoiFilter.setFilterByName | ( | String | filterByName | ) |
void net.osmand.plus.PoiFilter.setMapToAccept | ( | Map< AmenityType, List< String >> | newMap | ) |
void net.osmand.plus.PoiFilter.setNameFilter | ( | String | nameFilter | ) |
void net.osmand.plus.PoiFilter.setTypeToAccept | ( | AmenityType | type, |
boolean | accept | ||
) |
final OsmandApplication net.osmand.plus.PoiFilter.application [protected] |
final String net.osmand.plus.PoiFilter.BY_NAME_FILTER_ID = "by_name" [static] |
final String net.osmand.plus.PoiFilter.CUSTOM_FILTER_ID = "custom_id" [static] |
int net.osmand.plus.PoiFilter.distanceInd = 1 [protected] |
double [] net.osmand.plus.PoiFilter.distanceToSearchValues = new double[] {1, 2, 3, 5, 10, 30, 100, 250 } [protected] |
String net.osmand.plus.PoiFilter.filterId [protected] |
String net.osmand.plus.PoiFilter.name [protected] |
String net.osmand.plus.PoiFilter.nameFilter [protected] |
final String net.osmand.plus.PoiFilter.STD_PREFIX = "std_" [static] |
final String net.osmand.plus.PoiFilter.USER_PREFIX = "user_" [static] |