GeoEncodingUtils
reusable geopoint encoding methods
Types
A predicate that checks whether a given point is within a component2D geometry.
Functions
Create a predicate that checks whether points are within a geometry. It works the same way as .createDistancePredicate.
Create a predicate that checks whether points are within a distance of a given point. It works by computing the bounding box around the circle that is defined by the given points/distance and splitting it into between 1024 and 4096 smaller boxes (4096*0.75^2=2304 on average). Then for each sub box, it computes the relation between this box and the distance query. Finally at search time, it first computes the sub box that the point belongs to, most of the time, no distance computation will need to be performed since all points from the sub box will either be in or out of the circle.
Turns quantized value from .encodeLatitude back into a double.
Turns quantized value from byte array back into a double.
Turns quantized value from .encodeLongitude back into a double.
Turns quantized value from byte array back into a double.
Quantizes double (64 bit) latitude into 32 bits (rounding down: in the direction of -90)
Quantizes double (64 bit) latitude into 32 bits (rounding up: in the direction of +90)
Quantizes double (64 bit) longitude into 32 bits (rounding down: in the direction of -180)
Quantizes double (64 bit) longitude into 32 bits (rounding up: in the direction of +180)