Class SearchPreference
Definition
- Assembly:
- Tizen.Maps.dll
Preferences for route search requests.
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public class SearchPreference : IGeocodePreference, IPlaceSearchPreference, IRouteSearchPreference, IDisposable
- Inheritance
-
objectSearchPreference
- Implements
-
System.IDisposable
Constructors
View SourceSearchPreference()
Constructor for a new search preference.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public SearchPreference()
Properties
View SourceCountryCode
Gets or sets the preferred country.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public string CountryCode { get; set; }
Property Value
Type | Description |
---|---|
string |
Language
Gets or sets a preferred language.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public string Language { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
Language should be specified as an ISO 3166 alpha-2 two letter country-code
followed by ISO 639-1 for the two-letter language code.
e.g. "ko-KR", "en-US".
MaxResults
Gets or sets the maximum result count for each service request.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public int MaxResults { get; set; }
Property Value
Type | Description |
---|---|
int |
Remarks
Setting negative value will not have any effect on MaxResults value.
Mode
Gets or sets the route transport mode.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public TransportMode Mode { get; set; }
Property Value
Type | Description |
---|---|
TransportMode |
Optimization
Gets or sets the route optimization.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public RouteOptimization Optimization { get; set; }
Property Value
Type | Description |
---|---|
RouteOptimization |
Properties
Gets or sets the search properties as a key value pair.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public IReadOnlyDictionary<string, string> Properties { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><string, string> |
RouteFeature
Gets or sets the route feature.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public RouteFeature RouteFeature { get; set; }
Property Value
Type | Description |
---|---|
RouteFeature |
RouteFeatureWeight
Gets or sets the route feature weight.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public RouteFeatureWeight RouteFeatureWeight { get; set; }
Property Value
Type | Description |
---|---|
RouteFeatureWeight |
SearchAlternativeRoutes
Gets or sets if the searching for alternative routes is enabled.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public bool SearchAlternativeRoutes { get; set; }
Property Value
Type | Description |
---|---|
bool |
Unit
Gets or sets the distance unit.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public DistanceUnit Unit { get; set; }
Property Value
Type | Description |
---|---|
DistanceUnit |
Methods
View SourceDispose()
Releases all the resources used by this object.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
public void Dispose()
Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
[Obsolete("Deprecated since API11. Might be removed in API13.")]
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. |
~SearchPreference()
Destroy the SearchPreference object.
Declaration
protected ~SearchPreference()