Table of Contents

Class GeocodingResult

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll
public record GeocodingResult : IGeocodingResult, IComparable<GeocodingResult>, IComparable, IEquatable<GeocodingResult>
Inheritance
GeocodingResult
Implements
Inherited Members

Properties

City

Gets the city associated with the geocoding result.

public string? City { get; init; }

Property Value

string

Commune

Gets the commune associated with the geocoding result.

public string? Commune { get; init; }

Property Value

string

Coordinates

Gets the coordinates associated with the geocoding result.

public required Coordinates Coordinates { get; init; }

Property Value

Coordinates

District

Gets the district associated with the geocoding result.

public string? District { get; init; }

Property Value

string

HouseNumber

Gets the house number associated with the geocoding result.

public string? HouseNumber { get; init; }

Property Value

string

LocationHashSha256

Gets the hash of the IGeoReferenced object using GetStableHash() associated with the geocoding result.

public required string LocationHashSha256 { get; init; }

Property Value

string

Provider

Gets the provider that supplied the geocoding result.

public required GeoProvider Provider { get; init; }

Property Value

GeoProvider

Street

Gets the street address associated with the geocoding result.

public string? Street { get; init; }

Property Value

string

Zip

Gets the zip code associated with the geocoding result.

public string? Zip { get; init; }

Property Value

string

Methods

CompareTo(object?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(object? obj)

Parameters

obj object

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes obj in the sort order.
Zero This instance occurs in the same position in the sort order as obj.
Greater than zero This instance follows obj in the sort order.

Exceptions

ArgumentException

obj is not the same type as this instance.

CompareTo(GeocodingResult?)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

public int CompareTo(GeocodingResult? other)

Parameters

other GeocodingResult

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings:

Value Meaning
Less than zero This instance precedes other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

IsSet()

Checks if the latitude and longitude coordinates are set to non-zero values.

public bool IsSet()

Returns

bool

true if both latitude and longitude are non-zero; otherwise, false.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.