Class GeocodingResult
public record GeocodingResult : IGeocodingResult, IComparable<GeocodingResult>, IComparable, IEquatable<GeocodingResult>
- Inheritance
-
GeocodingResult
- Implements
- Inherited Members
- Extension Methods
Constructors
GeocodingResult()
public GeocodingResult()
GeocodingResult(GeocodingResult)
[SetsRequiredMembers]
protected GeocodingResult(GeocodingResult original)
Parameters
originalGeocodingResult
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
EqualityContract
protected virtual Type EqualityContract { get; }
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?)
public int CompareTo(object? obj)
Parameters
objobject
Returns
CompareTo(GeocodingResult?)
public int CompareTo(GeocodingResult? other)
Parameters
otherGeocodingResult
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(GeocodingResult?)
public virtual bool Equals(GeocodingResult? other)
Parameters
otherGeocodingResult
Returns
GetHashCode()
public override int GetHashCode()
Returns
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.
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(GeocodingResult?, GeocodingResult?)
public static bool operator ==(GeocodingResult? left, GeocodingResult? right)
Parameters
leftGeocodingResultrightGeocodingResult
Returns
operator !=(GeocodingResult?, GeocodingResult?)
public static bool operator !=(GeocodingResult? left, GeocodingResult? right)
Parameters
leftGeocodingResultrightGeocodingResult