Table of Contents

Struct GeoPosition

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

Describes the longitude and latitude of a GeoEntry

public struct GeoPosition : IEquatable<GeoPosition>
Implements
Inherited Members

Constructors

GeoPosition(double, double)

Creates a new GeoPosition

public GeoPosition(double longitude, double latitude)

Parameters

longitude double
latitude double

Properties

Latitude

The Latitude of the GeoPosition

public double Latitude { get; }

Property Value

double

Longitude

The Logitude of the GeoPosition

public double Longitude { get; }

Property Value

double

Methods

Equals(GeoPosition)

Compares two values for equality

public bool Equals(GeoPosition value)

Parameters

value GeoPosition

Returns

bool

Equals(object)

Compares two values for equality

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

See Object.GetHashCode() Diagonals not an issue in the case of lat/long

public override int GetHashCode()

Returns

int

ToString()

See Object.ToString()

public override string ToString()

Returns

string

Operators

operator ==(GeoPosition, GeoPosition)

Compares two values for equality

public static bool operator ==(GeoPosition x, GeoPosition y)

Parameters

x GeoPosition
y GeoPosition

Returns

bool

operator !=(GeoPosition, GeoPosition)

Compares two values for non-equality

public static bool operator !=(GeoPosition x, GeoPosition y)

Parameters

x GeoPosition
y GeoPosition

Returns

bool