OsmAnd
|
Public Member Functions | |
List< Amenity > | searchAmenities (int stop, int sleft, int sbottom, int sright, int zoom, PoiFilter filter, List< Amenity > amenities, ResultMatcher< Amenity > matcher) |
synchronized void | clearCache () |
void | evaluateCachedAmenities (double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude, int zoom, PoiFilter filter, ResultMatcher< Amenity > matcher) |
synchronized boolean | checkCachedAmenities (double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude, int zoom, String filterId, List< Amenity > toFill, boolean fillFound) |
boolean | checkCachedAmenities (double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude, int zoom, String filterId, List< Amenity > toFill) |
boolean | initialize (final IProgress progress, File file) |
boolean | addAmenity (Amenity a) |
boolean | updateAmenity (Amenity a) |
boolean | deleteAmenities (long id) |
boolean | updateAmenities (List< Amenity > amenities, double leftLon, double topLat, double rightLon, double bottomLat) |
Static Public Member Functions | |
static void | createAmenityIndexRepository (File file) |
static boolean | loadingPOIs (List< Amenity > amenities, double leftLon, double topLat, double righLon, double bottomLat) |
Static Public Attributes | |
static final int | LIMIT_AMENITIES = 500 |
boolean net.osmand.plus.AmenityIndexRepositoryOdb.addAmenity | ( | Amenity | a | ) |
synchronized boolean net.osmand.plus.AmenityIndexRepositoryOdb.checkCachedAmenities | ( | double | topLatitude, |
double | leftLongitude, | ||
double | bottomLatitude, | ||
double | rightLongitude, | ||
int | zoom, | ||
String | filterId, | ||
List< Amenity > | toFill, | ||
boolean | fillFound | ||
) |
Implements net.osmand.plus.AmenityIndexRepository.
boolean net.osmand.plus.AmenityIndexRepositoryOdb.checkCachedAmenities | ( | double | topLatitude, |
double | leftLongitude, | ||
double | bottomLatitude, | ||
double | rightLongitude, | ||
int | zoom, | ||
String | filterId, | ||
List< Amenity > | toFill | ||
) |
synchronized void net.osmand.plus.AmenityIndexRepositoryOdb.clearCache | ( | ) |
Implements net.osmand.plus.AmenityIndexRepository.
static void net.osmand.plus.AmenityIndexRepositoryOdb.createAmenityIndexRepository | ( | File | file | ) | [static] |
boolean net.osmand.plus.AmenityIndexRepositoryOdb.deleteAmenities | ( | long | id | ) |
void net.osmand.plus.AmenityIndexRepositoryOdb.evaluateCachedAmenities | ( | double | topLatitude, |
double | leftLongitude, | ||
double | bottomLatitude, | ||
double | rightLongitude, | ||
int | zoom, | ||
PoiFilter | filter, | ||
ResultMatcher< Amenity > | matcher | ||
) |
Implements net.osmand.plus.AmenityIndexRepository.
boolean net.osmand.plus.AmenityIndexRepositoryOdb.initialize | ( | final IProgress | progress, |
File | file | ||
) |
static boolean net.osmand.plus.AmenityIndexRepositoryOdb.loadingPOIs | ( | List< Amenity > | amenities, |
double | leftLon, | ||
double | topLat, | ||
double | righLon, | ||
double | bottomLat | ||
) | [static] |
List<Amenity> net.osmand.plus.AmenityIndexRepositoryOdb.searchAmenities | ( | int | stop, |
int | sleft, | ||
int | sbottom, | ||
int | sright, | ||
int | zoom, | ||
PoiFilter | filter, | ||
List< Amenity > | amenities, | ||
ResultMatcher< Amenity > | matcher | ||
) |
Search amenities in the specified box doesn't cache results
Implements net.osmand.plus.AmenityIndexRepository.
boolean net.osmand.plus.AmenityIndexRepositoryOdb.updateAmenities | ( | List< Amenity > | amenities, |
double | leftLon, | ||
double | topLat, | ||
double | rightLon, | ||
double | bottomLat | ||
) |
boolean net.osmand.plus.AmenityIndexRepositoryOdb.updateAmenity | ( | Amenity | a | ) |
final int net.osmand.plus.AmenityIndexRepositoryOdb.LIMIT_AMENITIES = 500 [static] |