AnyLogic
Expand
Font size

Interface IGeographicSearch<T,P extends T,R extends T>

Type Parameters:
T - Base type of search result entry
P - Point on the Earth
R - Region on the Earth
All Known Implementing Classes:
AbstractCachedNominatimSearch, AbstractNominatimSearch, NominatimSearch

@AnyLogicInternalAPI
public interface IGeographicSearch<T,P extends T,R extends T>
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)
Search without restrictions.
List<T>search(String query, boolean region, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude)
Search in the preferred area.
List<P>search(String query, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly)
Search in the preferred area first.
List<R>searchRegion(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)
Search without restrictions.
Parameters:
query - Country, city or something else
region - Determines witch type of geographic object should be found (Region if value is true otherwise Point)
Returns:
List of search result entries
List<T> search(String query,
 boolean region,
 double bottomLatitude,
 double leftLongitude,
 double topLatitude,
 double rightLongitude)
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)
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
Returns:
List of search result entries
List<P> search(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

searchRegion

List<R> searchRegion(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