Package com.anylogic.engine.gis
- java.lang.Object
- com.anylogic.engine.gis.AbstractNominatimSearch<E,
- All Implemented Interfaces:
IGeographicSearch<E,
P, R>
- Direct Known Subclasses:
AbstractCachedNominatimSearch
@AnyLogicInternalAPI public abstract class AbstractNominatimSearch<E,P extends E, extends Object implements IGeographicSearch<E,R extends E> P, R>
Constructor | Description |
---|---|
AbstractNominatimSearch() |
Modifier and Type | Method | Description |
---|---|---|
abstract void | addMultiRegion | |
abstract void | error | |
abstract P | getPoint | |
abstract R | getRegion | |
List<E> | search |
Search without restrictions.
|
List<E> | search |
Search in the preferred area.
|
List<P> | search |
Search in the preferred area first.
|
List<R> | searchRegion |
Search in the preferred area first.
|
public AbstractNominatimSearch()
public List<E> search(String query, boolean region, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude)
Description copied from interface:
IGeographicSearch
Search in the preferred area.
- Specified by:
search
in interfaceIGeographicSearch<E,
P extends E, R extends E> - 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
public List<E> search(String query, boolean region)
Description copied from interface:
IGeographicSearch
Search without restrictions.
public abstract void error(String string)
public abstract P getPoint(GISPointDescriptor pointDescriptor)
public abstract R getRegion(GISRegionDescriptor regionDescriptor)
public abstract void addMultiRegion(List<E> resultList, GISMultiRegionDescriptor multiRegionDescriptor)
public List<P> search(String query, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly)
Description copied from interface:
IGeographicSearch
Search in the preferred area first. Search without restrictions if nothing has been found.
- Specified by:
search
in interfaceIGeographicSearch<E,
P extends E, R extends E> - 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
public List<R> searchRegion(String query, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly)
Description copied from interface:
IGeographicSearch
Search in the preferred area first. Search without restrictions if nothing has been found.
- Specified by:
searchRegion
in interfaceIGeographicSearch<E,
P extends E, R extends E> - 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