Table of Contents

Public classStatic 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

Public method DecodeLat(int)

Decodes a latitude integer back to degrees.

Public method DecodeLon(int)

Decodes a longitude integer back to degrees.

Public method EncodeLat(double)

Encodes latitude (-90 to +90) to a sortable integer.

Public method EncodeLon(double)

Encodes longitude (-180 to +180) to a sortable integer.

Public method HaversineDistance(double, double, double, double)

Computes the Haversine distance between two points in metres.