
GeoEncodingUtils
- Namespace
- Rowles.LeanLucene.Search.Geo
- Assembly
- Rowles.LeanLucene.dll
Utilities for encoding/decoding geographic coordinates to/from numeric values suitable for indexing and range queries.
public static class GeoEncodingUtils
GeoEncodingUtils
DecodeLat(int)
Decodes a latitude integer back to degrees.
DecodeLon(int)
Decodes a longitude integer back to degrees.
EncodeLat(double)
Encodes latitude (-90 to +90) to a sortable integer.
EncodeLon(double)
Encodes longitude (-180 to +180) to a sortable integer.
HaversineDistance(double, double, double, double)
Computes the Haversine distance between two points in metres.