AnyLogic
Expand
Font size
All Implemented Interfaces:
IGISMarkupSearch<E,P,R,MR>
Direct Known Subclasses:
AnyLogicOnlineGISMarkupSearch

@AnyLogicInternalAPI
public class GISMarkupSearchImpl<E,P extends E,R extends E,MR>
extends Object
implements IGISMarkupSearch<E,P,R,MR>
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
GISMarkupSearchImpl(IGISSearch search, IGISMarkupDescriptorConverter<E,P,R,MR> converter) 

Method Summary

Modifier and TypeMethodDescription
List<E>search(String query, boolean region, boolean visibleAreaOnly, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly)
Search in the preferred area.
List<MR>searchMultiRegions(String query, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly) 
List<P>searchPoints(String query, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly)
Search in the preferred area first.
List<R>searchRegions(String query, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly)
Search in the preferred area first.

Methods inherited from class java.lang.Object

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

Constructor Details

GISMarkupSearchImpl

public GISMarkupSearchImpl(IGISSearch search,
 IGISMarkupDescriptorConverter<E,P,R,MR> converter)

Method Details

searchPoints

public List<P> searchPoints(String query,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude,
 boolean firstOnly)
Description copied from interface: IGISMarkupSearch
Search in the preferred area first. Search without restrictions if nothing has been found.
Specified by:
searchPoints in interface IGISMarkupSearch<E,P extends E,R extends E,MR>
Parameters:
query - Geographic name, POI or something else
bottomLatitude - Bottom latitude of the preferred area
leftLongitude - Left longitude of the preferred area
topLatitude - Top latitude of the preferred area
rightLongitude - Right longitude of the preferred area
firstOnly - Determines if search should return only first result entry
Returns:
List of points

searchRegions

public List<R> searchRegions(String query,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude,
 boolean firstOnly)
Description copied from interface: IGISMarkupSearch
Search in the preferred area first. Search without restrictions if nothing has been found.
Specified by:
searchRegions in interface IGISMarkupSearch<E,P extends E,R extends E,MR>
Parameters:
query - Geographic name, POI or something else
bottomLatitude - Bottom latitude of the preferred area
leftLongitude - Left longitude of the preferred area
topLatitude - Top latitude of the preferred area
rightLongitude - Right longitude of the preferred area
firstOnly - Determines if search should return only first result entry
Returns:
List of regions

searchMultiRegions

public List<MR> searchMultiRegions(String query,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude,
 boolean firstOnly)
Specified by:
searchMultiRegions in interface IGISMarkupSearch<E,P extends E,R extends E,MR>
public List<E> search(String query,
 boolean region,
 boolean visibleAreaOnly,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude,
 boolean firstOnly)
Description copied from interface: IGISMarkupSearch
Search in the preferred area.
Specified by:
search in interface IGISMarkupSearch<E,P extends E,R extends E,MR>
Parameters:
query -
region -
visibleAreaOnly -
bottomLatitude - (actual only when visibleAreaOnly is true)
leftLongitude - (actual only when visibleAreaOnly is true)
topLatitude - (actual only when visibleAreaOnly is true)
rightLongitude - (actual only when visibleAreaOnly is true)
firstOnly -
Returns:
list of search entries or null in case of Internet connection problems