@AnyLogicInternalAPI public abstract class AbstractNominatimSearch<E,P extends E,R extends E> extends java.lang.Object implements IGeographicSearch<E,P,R>
Constructor and Description |
---|
AbstractNominatimSearch() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addMultiRegion(java.util.List<E> resultList,
GISMultiRegionDescriptor multiRegionDescriptor) |
abstract void |
error(java.lang.String string) |
abstract P |
getPoint(GISPointDescriptor pointDescriptor) |
abstract R |
getRegion(GISRegionDescriptor regionDescriptor) |
java.util.List<E> |
search(java.lang.String query,
boolean region)
Search without restrictions.
|
java.util.List<E> |
search(java.lang.String query,
boolean region,
double bottomLatitude,
double leftLongitude,
double topLatitude,
double rightLongitude)
Search in the preferred area.
|
java.util.List<P> |
search(java.lang.String query,
double bottomLatitude,
double leftLongitude,
double topLatitude,
double rightLongitude,
boolean firstOnly)
Search in the preferred area first.
|
java.util.List<R> |
searchRegion(java.lang.String query,
double bottomLatitude,
double leftLongitude,
double topLatitude,
double rightLongitude,
boolean firstOnly)
Search in the preferred area first.
|
public java.util.List<E> search(java.lang.String query, boolean region, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude)
IGeographicSearch
search
in interface IGeographicSearch<E,P extends E,R extends E>
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 areapublic java.util.List<E> search(java.lang.String query, boolean region)
IGeographicSearch
public abstract void error(java.lang.String string)
public abstract P getPoint(GISPointDescriptor pointDescriptor)
public abstract R getRegion(GISRegionDescriptor regionDescriptor)
public abstract void addMultiRegion(java.util.List<E> resultList, GISMultiRegionDescriptor multiRegionDescriptor)
public java.util.List<P> search(java.lang.String query, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly)
IGeographicSearch
search
in interface IGeographicSearch<E,P extends E,R extends E>
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 entrypublic java.util.List<R> searchRegion(java.lang.String query, double bottomLatitude, double leftLongitude, double topLatitude, double rightLongitude, boolean firstOnly)
IGeographicSearch
searchRegion
in interface IGeographicSearch<E,P extends E,R extends E>
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 entryCopyright © AnyLogic North America, LLC. All Rights Reserved.