AnyLogic
Expand
Font size
All Implemented Interfaces:
IGeographicSearch<E,P,R>
Direct Known Subclasses:
AbstractCachedNominatimSearch

@AnyLogicInternalAPI
public abstract class AbstractNominatimSearch<E,P extends E,R extends E>
extends Object
implements IGeographicSearch<E,P,R>

Constructor Summary

ConstructorDescription
AbstractNominatimSearch() 

Method Summary

Modifier and TypeMethodDescription
abstract voidaddMultiRegion(List<E> resultList, GISMultiRegionDescriptor multiRegionDescriptor) 
abstract voiderror(String string) 
abstract PgetPoint(GISPointDescriptor pointDescriptor) 
abstract RgetRegion(GISRegionDescriptor regionDescriptor) 
List<E>search(String query, boolean region)
Search without restrictions.
List<E>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.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

AbstractNominatimSearch

public AbstractNominatimSearch()

Method Details

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 interface IGeographicSearch<E,P extends E,R extends E>
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
public List<E> search(String query,
 boolean region)
Description copied from interface: IGeographicSearch
Search without restrictions.
Specified by:
search in interface IGeographicSearch<E,P extends E,R extends E>
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

error

public abstract void error(String string)

getPoint

public abstract P getPoint(GISPointDescriptor pointDescriptor)

getRegion

public abstract R getRegion(GISRegionDescriptor regionDescriptor)

addMultiRegion

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 interface IGeographicSearch<E,P extends E,R extends E>
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

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 interface IGeographicSearch<E,P extends E,R extends E>
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