Search Results for

    Show / Hide Table of Contents

    Class GeoHelper

    Helpers for geolocation related tasks.

    Inheritance
    System.Object
    GeoHelper
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.Geolocation
    Assembly: TimeCockpit.Data.dll
    Syntax
    public static class GeoHelper

    Methods

    DistanceHaversine(Decimal, Decimal, Decimal, Decimal)

    Calculate haversine distance between two coordinates.

    Declaration
    public static decimal DistanceHaversine(decimal latitude1, decimal longitude1, decimal latitude2, decimal longitude2)
    Parameters
    Type Name Description
    System.Decimal latitude1

    First latitude in decimal degrees.

    System.Decimal longitude1

    First longitude in decimal degrees.

    System.Decimal latitude2

    Second latitude in decimal degrees.

    System.Decimal longitude2

    Second longitude in decimal degrees.

    Returns
    Type Description
    System.Decimal

    Distance between coordinates in meteres.

    Remarks

    see http://en.wikipedia.org/wiki/Haversine_formula

    In This Article
    Back to top Copyright © 2025 software architects gmbh