Table of Contents

Class LocationContent

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

true Message content that can send a GPS location to a device. Derived from TextContent. To reset the location on a device, a location message with latitude/longitude 0 can be sent to the device.

[ReportClass]
public class LocationContent : TextContent
Inheritance
LocationContent
Inherited Members

Constructors

LocationContent()

Initializes a new instance of the LocationContent class.Constructor.

public LocationContent()

LocationContent(string, double, double, Id?)

Initializes a new instance of the LocationContent class.Constructor.

public LocationContent(string address, double latitude, double longitude, Id? routeId)

Parameters

address string

The stop address.

latitude double

The strop latitude.

longitude double

The stop longitude.

routeId Id

The id of the route message.

LocationContent(string, string, double, double)

Initializes a new instance of the LocationContent class.Constructor.

public LocationContent(string message, string address, double latitude, double longitude)

Parameters

message string

The message.

address string

The stop address.

latitude double

The strop latitude.

longitude double

The stop longitude.

LocationContent(string, string, double, double, Id)

Initializes a new instance of the LocationContent class.Constructor.

public LocationContent(string message, string address, double latitude, double longitude, Id routeId)

Parameters

message string

The message.

address string

The stop address.

latitude double

The strop latitude.

longitude double

The stop longitude.

routeId Id

The id of the route message.

Properties

Address

Gets or sets the address of the stop.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.LocationContentAddress })]
public string? Address { get; set; }

Property Value

string

string

Id

Gets or sets the Id of the route message.

[Obsolete("Id is no longer supported an will be removed in a future release. Use the RouteId property instead.", false)]
public int? Id { get; set; }

Property Value

int?

Nullable<T> where T is. int

Latitude

Gets or sets the latitude of the stop.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.LocationContentLatitude })]
public double? Latitude { get; set; }

Property Value

double?

Nullable<T> where T is. double

Longitude

Gets or sets the longitude of the stop.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.LocationContentLongitude })]
public double? Longitude { get; set; }

Property Value

double?

Nullable<T> where T is. double

OnRouteRanges

Gets or sets a collection of "DateRange"s indicating when the driver's intent was to go to the provided Latitude and Longitude.

public IList<DateRange>? OnRouteRanges { get; set; }

Property Value

IList<DateRange>

IList<T>

RouteId

Gets or sets the Id of the route message.

public Id? RouteId { get; set; }

Property Value

Id

Nullable<T> where T is. Id

Methods

Equals(object?)

Determines whether the specified object, is equal to this instance.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.