Show / Hide Table of Contents

Struct GeoLoc

A structure representing a point on the globe by it's longitude and latitude.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Redis.OM.Modeling
Assembly: Redis.OM.dll
Syntax
public struct GeoLoc

Constructors

| Improve this Doc View Source

GeoLoc(Double, Double)

Initializes a new instance of the GeoLoc struct.

Declaration
public GeoLoc(double longitude, double latitude)
Parameters
Type Name Description
System.Double longitude

The longitude.

System.Double latitude

The latitude.

Properties

| Improve this Doc View Source

Latitude

Gets or sets the latitude.

Declaration
public double Latitude { readonly get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Longitude

Gets or sets the longitude.

Declaration
public double Longitude { readonly get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

Parse(String)

Parses a Geolocation from a string.

Declaration
public static GeoLoc Parse(string geolocString)
Parameters
Type Name Description
System.String geolocString

the string representation of a geoloc.

Returns
Type Description
GeoLoc

a geoloc parsed from the string.

Exceptions
Type Condition
System.ArgumentException

thrown if the geoloc could not be parsed from the string.

| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.ValueType.ToString()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX