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
Commune
Gets the commune associated with the geocoding result.
public string? Commune { get; init; }
Property Value
Coordinates
Gets the coordinates associated with the geocoding result.
public required Coordinates Coordinates { get; init; }
Property Value
District
Gets the district associated with the geocoding result.
public string? District { get; init; }
Property Value
HouseNumber
Gets the house number associated with the geocoding result.
public string? HouseNumber { get; init; }
Property Value
LocationHashSha256
Gets the hash of the IGeoReferenced object using GetStableHash() associated with the geocoding result.
public required string LocationHashSha256 { get; init; }
Property Value
Provider
Gets the provider that supplied the geocoding result.
public required GeoProvider Provider { get; init; }
Property Value
Street
Gets the street address associated with the geocoding result.
public string? Street { get; init; }
Property Value
Zip
Gets the zip code associated with the geocoding result.
public string? Zip { get; init; }
Property Value
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
objobjectAn 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 objin the sort order.Zero This instance occurs in the same position in the sort order as obj.Greater than zero This instance follows objin the sort order.
Exceptions
- ArgumentException
objis 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
otherGeocodingResultAn 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 otherin the sort order.Zero This instance occurs in the same position in the sort order as other.Greater than zero This instance follows otherin the sort order.
IsSet()
Checks if the latitude and longitude coordinates are set to non-zero values.
public bool IsSet()
Returns
- bool
trueif 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.