AnyLogic
Expand
Font size

Interface IGISMarkupSearch<T,P extends T,R extends T,MR>

Type Parameters:
T - Base type of search result entry
P - Point on the Earth
R - Region on the Earth
MR - Multiregion
All Known Implementing Classes:
AnyLogicOnlineGISMarkupSearch, GISMarkupSearchImpl

@AnyLogicInternalAPI
public interface IGISMarkupSearch<T,P extends T,R extends T,MR>
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
Basic interface for geographical search in AnyLogic.
Author:
AnyLogic North America, LLC https://anylogic.com

Method Summary

Modifier and TypeMethodDescription
List<T>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.

Method Details

List<T> search(String query,
 boolean region,
 boolean visibleAreaOnly,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude,
 boolean firstOnly)
Search in the preferred area.
Parameters:
query - Country, city, POI or something else
region - Determines witch type of geographic object should be found (Region if value is true otherwise Point)
visibleAreaOnly - true to search within the given bounds, otherwise - all over the globe
bottomLatitude - Bottom latitude of the preferred area, used only when visibleAreaOnly == true
leftLongitude - Left longitude of the preferred area, used only when visibleAreaOnly == true
topLatitude - Top latitude of the preferred area, used only when visibleAreaOnly == true
rightLongitude - Right longitude of the preferred area, used only when visibleAreaOnly == true
firstOnly - true to return only the first result (if any found)
Returns:
List of search result entries

searchPoints

List<P> searchPoints(String query,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude,
 boolean firstOnly)
Search in the preferred area first. Search without restrictions if nothing has been found.
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

List<R> searchRegions(String query,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude,
 boolean firstOnly)
Search in the preferred area first. Search without restrictions if nothing has been found.
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

List<MR> searchMultiRegions(String query,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude,
 boolean firstOnly)