Class SearchPreference

Definition

Namespace:
Tizen.Maps
Assembly:
Tizen.Maps.dll

Preferences for route search requests.

C#
Copy
public class SearchPreference : IGeocodePreference, IPlaceSearchPreference, IRouteSearchPreference, IDisposable
Inheritance
object
SearchPreference
Implements
System.IDisposable

Constructors

View Source

SearchPreference()

Constructor for a new search preference.

Declaration
C#
Copy
public SearchPreference()

Properties

View Source

CountryCode

Gets or sets the preferred country.

Declaration
C#
Copy
public string CountryCode { get; set; }
Property Value
Type Description
string
View Source

Language

Gets or sets a preferred language.

Declaration
C#
Copy
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".

View Source

MaxResults

Gets or sets the maximum result count for each service request.

Declaration
C#
Copy
public int MaxResults { get; set; }
Property Value
Type Description
int
Remarks

Setting negative value will not have any effect on MaxResults value.

View Source

Mode

Gets or sets the route transport mode.

Declaration
C#
Copy
public TransportMode Mode { get; set; }
Property Value
Type Description
TransportMode
View Source

Optimization

Gets or sets the route optimization.

Declaration
C#
Copy
public RouteOptimization Optimization { get; set; }
Property Value
Type Description
RouteOptimization
View Source

Properties

Gets or sets the search properties as a key value pair.

Declaration
C#
Copy
public IReadOnlyDictionary<string, string> Properties { get; set; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><string, string>
View Source

RouteFeature

Gets or sets the route feature.

Declaration
C#
Copy
public RouteFeature RouteFeature { get; set; }
Property Value
Type Description
RouteFeature
View Source

RouteFeatureWeight

Gets or sets the route feature weight.

Declaration
C#
Copy
public RouteFeatureWeight RouteFeatureWeight { get; set; }
Property Value
Type Description
RouteFeatureWeight
View Source

SearchAlternativeRoutes

Gets or sets if the searching for alternative routes is enabled.

Declaration
C#
Copy
public bool SearchAlternativeRoutes { get; set; }
Property Value
Type Description
bool
View Source

Unit

Gets or sets the distance unit.

Declaration
C#
Copy
public DistanceUnit Unit { get; set; }
Property Value
Type Description
DistanceUnit

Methods

View Source

Dispose()

Releases all the resources used by this object.

Declaration
C#
Copy
public void Dispose()
View Source

Dispose(bool)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
C#
Copy
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.

View Source

~SearchPreference()

Destroy the SearchPreference object.

Declaration
C#
Copy
protected ~SearchPreference()

Implements

System.IDisposable