OsmAnd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
net.osmand.plus.PoiFilter Class Reference
Inheritance diagram for net.osmand.plus.PoiFilter:
net.osmand.plus.NameFinderPoiFilter net.osmand.plus.SearchByNameFilter

List of all members.

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 }

Constructor & Destructor Documentation

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 
)

Member Function Documentation

boolean net.osmand.plus.PoiFilter.acceptTypeSubtype ( AmenityType  t,
String  subtype 
)
Set<String> net.osmand.plus.PoiFilter.getAcceptedSubtypes ( AmenityType  type)
Parameters:
type
Returns:
null if all subtypes are accepted/ empty list if type is not accepted at all
Map<AmenityType, LinkedHashSet<String> > net.osmand.plus.PoiFilter.getAcceptedTypes ( )
ResultMatcher<Amenity> net.osmand.plus.PoiFilter.getResultMatcher ( final ResultMatcher< Amenity >  matcher)
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 
)
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 
)

Member Data Documentation

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]
double [] net.osmand.plus.PoiFilter.distanceToSearchValues = new double[] {1, 2, 3, 5, 10, 30, 100, 250 } [protected]
String net.osmand.plus.PoiFilter.name [protected]
final String net.osmand.plus.PoiFilter.STD_PREFIX = "std_" [static]
final String net.osmand.plus.PoiFilter.USER_PREFIX = "user_" [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines