AnyLogic
Expand
Font size
All Implemented Interfaces:
IGISSearch

@AnyLogicInternalAPI
public class CachedGISSearch
extends ChainedGISSearch
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
Author:
AnyLogic North America, LLC https://anylogic.com

Constructor Summary

ConstructorDescription
CachedGISSearch(IGISSearch underlyingSearch, Supplier<AnyLogicMapDB> dbSupplier, String cacheId, Consumer<StringBuilder> cacheKeyModifier) 

Method Summary

Modifier and TypeMethodDescription
GISResult<List<GISMarkupDescriptor>>get(String query, boolean region, boolean visibleAreaOnly, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly) 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

CachedGISSearch

public CachedGISSearch(IGISSearch underlyingSearch,
 Supplier<AnyLogicMapDB> dbSupplier,
 String cacheId,
 Consumer<StringBuilder> cacheKeyModifier)
Parameters:
underlyingSearch -
dbSupplier - Use either the default AnyLogicMapDB::instance or construct and provide your own new AnyLogicMapDB(path) based on your cache folder
cacheId -
cacheKeyModifier -

Method Details

get

public GISResult<List<GISMarkupDescriptor>> get(String query,
 boolean region,
 boolean visibleAreaOnly,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude,
 boolean firstOnly)