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
Address
Primary address details of the location.
IAddress? Address { get; }
Property Value
Coordinates
Geographical coordinates of the location.
Coordinates? Coordinates { get; set; }
Property Value
HouseNumber
House number at the location, if applicable.
string? HouseNumber { get; set; }
Property Value
IsCoordinatesResolved
Gets a value indicating whether the coordinates have been successfully resolved for the location.
[MemberNotNullWhen(true, "Coordinates")]
bool IsCoordinatesResolved { get; }
Property Value
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
Methods
RetrieveCoordinatesAsync(ICoordinatesResolver[])
Asynchronously retrieves coordinates for the location using the specified coordinate resolvers.
[MemberNotNull("Coordinates")]
Task RetrieveCoordinatesAsync(ICoordinatesResolver[] coordinatesResolver)
Parameters
coordinatesResolverICoordinatesResolver[]An array of ICoordinatesResolver instances to attempt resolving the coordinates.
Returns
- Task
A task representing the asynchronous operation.