public abstract class AreaLimitedManager extends Object
Constructor and Description |
---|
AreaLimitedManager() |
Modifier and Type | Method and Description |
---|---|
abstract double |
getAllowedArea(UserPreferences.Unit units)
Get the maximum allowed area to query in the given units.
|
boolean |
isQueryAreaWithinLimits(double radius,
UserPreferences.Unit units)
Check if the area of the circle is within allowed limits.
|
boolean |
isQueryAreaWithinLimits(GeoPoint corner1,
GeoPoint corner2)
Check if the area of the box is within allowed limits.
|
public boolean isQueryAreaWithinLimits(GeoPoint corner1, GeoPoint corner2)
corner1
- First corner, can be specified in any order but must be diagonally opposite to corner2corner2
- Second corner, can be specified in any order but must be diagonally opposite to corner1true
if the area is within allowed limits, false
otherwisepublic boolean isQueryAreaWithinLimits(double radius, UserPreferences.Unit units)
radius
- - radius of the circleunits
- - units of measure see UserPreferences.Unit
true
if the area is within the limit, false
otherwisepublic abstract double getAllowedArea(UserPreferences.Unit units)
units
- units to express the area inCopyright © 2013-2018 INRIX, Inc. All Rights Reserved.