Class Location
Represents a simple location.
Inheritance
System.Object
Location
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.OSM
Assembly: TimeCockpit.Data.dll
Syntax
public class Location
Constructors
Location(Decimal, Decimal, Decimal, String, String)
Initializes a new instance of the Location class.
Declaration
public Location(decimal latitude, decimal longitude, decimal radius, string type, string className)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | latitude | Latitude in decimal degrees. |
System.Decimal | longitude | Longitude in decimal degrees. |
System.Decimal | radius | Radius in meters. |
System.String | type | Location type. e.g. postcode |
System.String | className | Location class. e.g. highway |
Fields
MaxRadius
Maximum radius, represents no-match.
Declaration
public static readonly decimal MaxRadius
Field Value
Type | Description |
---|---|
System.Decimal |
NoMatch
Constant no-match location.
Declaration
public static readonly Location NoMatch
Field Value
Type | Description |
---|---|
Location |
Properties
Class
Gets the location class. e.g. highway
Declaration
public string Class { get; }
Property Value
Type | Description |
---|---|
System.String |
Latitude
Gets the decimal degree latidude.
Declaration
public decimal Latitude { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
Longitude
Gets the decimal degree longitude.
Declaration
public decimal Longitude { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
Radius
Gets the radius in meters.
Declaration
public decimal Radius { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
Type
Gets the location type. e.g. city, building
Declaration
public string Type { get; }
Property Value
Type | Description |
---|---|
System.String |