Table of Contents

Interface IGeoReferenced

Namespace
XENBIT.ResQueServe.Abstractions.Interfaces
Assembly
RQS.Abstractions.dll

Represents a geographical location, including details such as address, point of interest, coordinates, and location accuracy. This record is used throughout the dispatch system to manage and validate the positions of units and incidents.

public interface IGeoReferenced : IStableHash
Inherited Members
Extension Methods

Properties

Accuracy

Specifies the accuracy of the coordinates from the geocoding process.

LocationAccuracy Accuracy { get; set; }

Property Value

LocationAccuracy

Address

Primary address details of the location.

IAddress? Address { get; }

Property Value

IAddress

Coordinates

Geographical coordinates of the location.

Coordinates? Coordinates { get; set; }

Property Value

Coordinates?

HouseNumber

House number at the location, if applicable.

string? HouseNumber { get; set; }

Property Value

string

IsCoordinatesResolved

Gets a value indicating whether the coordinates have been successfully resolved for the location.

[MemberNotNullWhen(true, "Coordinates")]
bool IsCoordinatesResolved { get; }

Property Value

bool

Remarks

Returns true if the location has been set and coordinates are not null; otherwise, false.

Poi

Point of interest associated with the location, if applicable.

IPoi? Poi { get; }

Property Value

IPoi

Methods

RetrieveCoordinatesAsync(ICoordinatesResolver[])

Asynchronously retrieves coordinates for the location using the specified coordinate resolvers.

[MemberNotNull("Coordinates")]
Task RetrieveCoordinatesAsync(ICoordinatesResolver[] coordinatesResolver)

Parameters

coordinatesResolver ICoordinatesResolver[]

An array of ICoordinatesResolver instances to attempt resolving the coordinates.

Returns

Task

A task representing the asynchronous operation.