Package com.anylogic.engine.gis
- Type Parameters:
T
- Base type of search result entryP
- Point on the EarthR
- 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
Modifier and Type | Method | Description |
---|---|---|
List<T> | search |
Search without restrictions.
|
List<T> | search |
Search in the preferred area.
|
List<P> | search |
Search in the preferred area first.
|
List<R> | searchRegion |
Search in the preferred area first.
|
List<T> search(String query, boolean region)
Search without restrictions.
- Parameters:
query
- Country, city or something elseregion
- 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 elseregion
- Determines witch type of geographic object should be found (Region if value is true otherwise Point)bottomLatitude
- Bottom latitude of the preferred arealeftLongitude
- Left longitude of the preferred areatopLatitude
- Top latitude of the preferred arearightLongitude
- 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 elsebottomLatitude
- Bottom latitude of the preferred arealeftLongitude
- Left longitude of the preferred areatopLatitude
- Top latitude of the preferred arearightLongitude
- Right longitude of the preferred areafirstOnly
- Determines if search should return only first result entry- Returns:
- List of points
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 elsebottomLatitude
- Bottom latitude of the preferred arealeftLongitude
- Left longitude of the preferred areatopLatitude
- Top latitude of the preferred arearightLongitude
- Right longitude of the preferred areafirstOnly
- Determines if search should return only first result entry- Returns:
- List of regions