DistancePredicate

class DistancePredicate(latShift: Int, lonShift: Int, latBase: Int, lonBase: Int, maxLatDelta: Int, maxLonDelta: Int, relations: ByteArray, lat: Double, lon: Double, distanceKey: Double) : GeoEncodingUtils.Grid

A predicate that checks whether a given point is within a distance of another point.

Constructors

Link copied to clipboard
constructor(latShift: Int, lonShift: Int, latBase: Int, lonBase: Int, maxLatDelta: Int, maxLonDelta: Int, relations: ByteArray, lat: Double, lon: Double, distanceKey: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun test(lat: Int, lon: Int): Boolean

Check whether the given point is within a distance of another point. NOTE: this operates directly on the encoded representation of points.