SaaS CMS has officially launched! Learn more now.

Class GeographicCoordinateModel

Model class for geographic coordinate criterion

Inheritance
System.Object
GeographicCoordinateModel
Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
public class GeographicCoordinateModel : CriterionModelBase, ICriterionModel, IDynamicData

Constructors

GeographicCoordinateModel()

Declaration
public GeographicCoordinateModel()

Properties

Latitude

Selected latitude

Declaration
[CriterionPropertyCulture]
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/geographiccoordinate/latitude")]
public double Latitude { get; set; }
Property Value
Type Description
System.Double

Location

Textual description of the selected location

Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/geographiccoordinate/location")]
public string Location { get; set; }
Property Value
Type Description
System.String

Longitude

Selected longitude

Declaration
[CriterionPropertyCulture]
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/geographiccoordinate/longitude")]
public double Longitude { get; set; }
Property Value
Type Description
System.Double

Radius

Radius around specified longitude and latitude in kilometers

Declaration
[CriterionPropertyEditor(LabelTranslationKey = "/shell/cms/visitorgroups/criteria/geographiccoordinate/radius")]
public double Radius { get; set; }
Property Value
Type Description
System.Double

RadiusUnit

Gets or sets which unit the Radius is specified in

Declaration
[CriterionPropertyEditor(SelectionFactoryType = null)]
public DistanceUnit RadiusUnit { get; set; }
Property Value
Type Description
DistanceUnit

Methods

Copy()

Creates a new object that is a copy of the current instance.

Declaration
public override ICriterionModel Copy()
Returns
Type Description
ICriterionModel

A new object that is a copy of this instance.

Overrides

Implements

Extension Methods