/// <summary> /// Initializes a new instance of the <see cref="Candidate" /> class. /// </summary> /// <param name="PrecisionLevel">PrecisionLevel.</param> /// <param name="FormattedStreetAddress">FormattedStreetAddress.</param> /// <param name="FormattedLocationAddress">FormattedLocationAddress.</param> /// <param name="Identifier">Identifier.</param> /// <param name="PrecisionCode">PrecisionCode.</param> /// <param name="SourceDictionary">SourceDictionary.</param> /// <param name="Matching">Matching.</param> /// <param name="Geometry">Geometry.</param> /// <param name="Address">Address.</param> /// <param name="Ranges">Ranges.</param> public Candidate(int?PrecisionLevel = null, string FormattedStreetAddress = null, string FormattedLocationAddress = null, string Identifier = null, string PrecisionCode = null, string SourceDictionary = null, FieldsMatching Matching = null, GeoPos Geometry = null, GeocodeAddress Address = null, List <CandidateRange> Ranges = null) { this.PrecisionLevel = PrecisionLevel; this.FormattedStreetAddress = FormattedStreetAddress; this.FormattedLocationAddress = FormattedLocationAddress; this.Identifier = Identifier; this.PrecisionCode = PrecisionCode; this.SourceDictionary = SourceDictionary; this.Matching = Matching; this.Geometry = Geometry; this.Address = Address; this.Ranges = Ranges; }
/// <summary> /// Initializes a new instance of the <see cref="GeocodePreferences" /> class. /// </summary> /// <param name="ReturnAllCandidateInfo">ReturnAllCandidateInfo (default to false).</param> /// <param name="FallbackToGeographic">FallbackToGeographic (default to true).</param> /// <param name="FallbackToPostal">FallbackToPostal (default to true).</param> /// <param name="MaxReturnedCandidates">MaxReturnedCandidates.</param> /// <param name="StreetOffset">StreetOffset.</param> /// <param name="CornerOffset">CornerOffset.</param> /// <param name="MatchMode">MatchMode.</param> /// <param name="ClientLocale">ClientLocale.</param> /// <param name="ClientCoordSysName">ClientCoordSysName.</param> /// <param name="StreetOffsetUnits">StreetOffsetUnits.</param> /// <param name="CornerOffsetUnits">CornerOffsetUnits.</param> /// <param name="MustMatchFields">MustMatchFields.</param> /// <param name="ReturnFieldsDescriptor">ReturnFieldsDescriptor.</param> /// <param name="OutputRecordType">OutputRecordType.</param> /// <param name="CustomPreferences">CustomPreferences.</param> /// <param name="PreferredDictionaryOrders">PreferredDictionaryOrders.</param> public GeocodePreferences(bool?ReturnAllCandidateInfo = null, bool?FallbackToGeographic = null, bool?FallbackToPostal = null, string MaxReturnedCandidates = null, string StreetOffset = null, string CornerOffset = null, string MatchMode = null, string ClientLocale = null, string ClientCoordSysName = null, string StreetOffsetUnits = null, string CornerOffsetUnits = null, FieldsMatching MustMatchFields = null, ReturnFieldsDescriptor ReturnFieldsDescriptor = null, string OutputRecordType = null, GeocodeCustomPreferences CustomPreferences = null, List <string> PreferredDictionaryOrders = null) { // use default value if no "ReturnAllCandidateInfo" provided if (ReturnAllCandidateInfo == null) { this.ReturnAllCandidateInfo = false; } else { this.ReturnAllCandidateInfo = ReturnAllCandidateInfo; } // use default value if no "FallbackToGeographic" provided if (FallbackToGeographic == null) { this.FallbackToGeographic = true; } else { this.FallbackToGeographic = FallbackToGeographic; } // use default value if no "FallbackToPostal" provided if (FallbackToPostal == null) { this.FallbackToPostal = true; } else { this.FallbackToPostal = FallbackToPostal; } this.MaxReturnedCandidates = MaxReturnedCandidates; this.StreetOffset = StreetOffset; this.CornerOffset = CornerOffset; this.MatchMode = MatchMode; this.ClientLocale = ClientLocale; this.ClientCoordSysName = ClientCoordSysName; this.StreetOffsetUnits = StreetOffsetUnits; this.CornerOffsetUnits = CornerOffsetUnits; this.MustMatchFields = MustMatchFields; this.ReturnFieldsDescriptor = ReturnFieldsDescriptor; this.OutputRecordType = OutputRecordType; this.CustomPreferences = CustomPreferences; this.PreferredDictionaryOrders = PreferredDictionaryOrders; }