Class GeocodeResult
A single geocode result returned from a forward geocode operation.
public sealed record GeocodeResult : IEquatable<GeocodeResult>
- Inheritance
-
GeocodeResult
- Implements
- Inherited Members
Constructors
GeocodeResult(string, double, double, double, IReadOnlyDictionary<string, string?>)
A single geocode result returned from a forward geocode operation.
public GeocodeResult(string Address, double Latitude, double Longitude, double Score, IReadOnlyDictionary<string, string?> Attributes)
Parameters
AddressstringThe matched address string.
LatitudedoubleThe latitude (Y) of the matched location.
LongitudedoubleThe longitude (X) of the matched location.
ScoredoubleA confidence score for the match (0–100).
AttributesIReadOnlyDictionary<string, string>Additional attributes returned by the geocoding service.
Properties
Address
The matched address string.
public string Address { get; init; }
Property Value
Attributes
Additional attributes returned by the geocoding service.
public IReadOnlyDictionary<string, string?> Attributes { get; init; }
Property Value
Latitude
The latitude (Y) of the matched location.
public double Latitude { get; init; }
Property Value
Longitude
The longitude (X) of the matched location.
public double Longitude { get; init; }
Property Value
Score
A confidence score for the match (0–100).
public double Score { get; init; }