Table of Contents

Class Location

Namespace
TimeCockpit.Data.Geolocation.OSM
Assembly
TimeCockpit.Data.dll

Represents a simple location.

public class Location
Inheritance
Object
Location
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

Location(Decimal, Decimal, Decimal, String, String)

Initializes a new instance of the Location class.

public Location(decimal latitude, decimal longitude, decimal radius, string type, string className)

Parameters

latitude Decimal

Latitude in decimal degrees.

longitude Decimal

Longitude in decimal degrees.

radius Decimal

Radius in meters.

type String

Location type. e.g. postcode

className String

Location class. e.g. highway

Fields

MaxRadius

Maximum radius, represents no-match.

public static readonly decimal MaxRadius

Field Value

Decimal

NoMatch

Constant no-match location.

public static readonly Location NoMatch

Field Value

Location

Properties

Class

Gets the location class. e.g. highway

public string Class { get; }

Property Value

String

Latitude

Gets the decimal degree latidude.

public decimal Latitude { get; }

Property Value

Decimal

Longitude

Gets the decimal degree longitude.

public decimal Longitude { get; }

Property Value

Decimal

Radius

Gets the radius in meters.

public decimal Radius { get; }

Property Value

Decimal

Type

Gets the location type. e.g. city, building

public string Type { get; }

Property Value

String