Search Results for

    Show / Hide Table of Contents

    Class GeoLocation

    Represents a Latitude/Longitude as a 2 dimensional point that gets serialized as { lat, lon }

    Inheritance
    object
    GeoLocation
    GeoCoordinate
    Implements
    IEquatable<GeoLocation>
    IFormattable
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class GeoLocation : IEquatable<GeoLocation>, IFormattable

    Constructors

    | Edit this page View Source

    GeoLocation(double, double)

    Represents a Latitude/Longitude as a 2 dimensional point.

    Declaration
    public GeoLocation(double latitude, double longitude)
    Parameters
    Type Name Description
    double latitude
    double longitude

    Properties

    | Edit this page View Source

    Latitude

    Latitude

    Declaration
    [DataMember(Name = "lat")]
    public double Latitude { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Longitude

    Longitude

    Declaration
    [DataMember(Name = "lon")]
    public double Longitude { get; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    Equals(GeoLocation)

    Declaration
    public bool Equals(GeoLocation other)
    Parameters
    Type Name Description
    GeoLocation other
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    IsValidLatitude(double)

    Checks if latitude is a valid latitude between -90 and 90, inclusive.

    Declaration
    public static bool IsValidLatitude(double latitude)
    Parameters
    Type Name Description
    double latitude
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsValidLongitude(double)

    Checks if longitude is a valid longitude between -180 and 180, inclusive.

    Declaration
    public static bool IsValidLongitude(double longitude)
    Parameters
    Type Name Description
    double longitude
    Returns
    Type Description
    bool
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    | Edit this page View Source

    ToString(string, IFormatProvider)

    Declaration
    public string ToString(string format, IFormatProvider formatProvider)
    Parameters
    Type Name Description
    string format
    IFormatProvider formatProvider
    Returns
    Type Description
    string
    | Edit this page View Source

    TryCreate(double, double)

    Try to create a GeoLocation.

    Declaration
    public static GeoLocation TryCreate(double latitude, double longitude)
    Parameters
    Type Name Description
    double latitude
    double longitude
    Returns
    Type Description
    GeoLocation

    Operators

    | Edit this page View Source

    implicit operator GeoLocation(double[])

    Declaration
    public static implicit operator GeoLocation(double[] lonLat)
    Parameters
    Type Name Description
    double[] lonLat
    Returns
    Type Description
    GeoLocation
    | Edit this page View Source

    implicit operator GeoLocation(string)

    Declaration
    public static implicit operator GeoLocation(string latLon)
    Parameters
    Type Name Description
    string latLon
    Returns
    Type Description
    GeoLocation

    Implements

    IEquatable<T>
    IFormattable

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • GeoLocation(double, double)
    • Properties
      • Latitude
      • Longitude
    • Methods
      • Equals(GeoLocation)
      • Equals(object)
      • GetHashCode()
      • IsValidLatitude(double)
      • IsValidLongitude(double)
      • ToString()
      • ToString(string, IFormatProvider)
      • TryCreate(double, double)
    • Operators
      • implicit operator GeoLocation(double[])
      • implicit operator GeoLocation(string)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX