Class Location
- Namespace
- TimeCockpit.Data.Geolocation.OSM
- Assembly
- TimeCockpit.Data.dll
Represents a simple location.
public class Location
- Inheritance
-
ObjectLocation
- 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
latitudeDecimalLatitude in decimal degrees.
longitudeDecimalLongitude in decimal degrees.
radiusDecimalRadius in meters.
typeStringLocation type. e.g. postcode
classNameStringLocation 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
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