Class SearchPreference
Definition
- Namespace:
- Tizen.Maps
- Assembly:
- Tizen.Maps.dll
- API Level:
- 3
Preferences for route search requests.
public class SearchPreference : IGeocodePreference, IPlaceSearchPreference, IRouteSearchPreference, IDisposable
- Inheritance
-
SearchPreference
- Implements
Constructors
View SourceSearchPreference()
Constructor for a new search preference.
Declaration
public SearchPreference()
API Level: 3
Properties
View SourceCountryCode
Gets or sets the preferred country.
Declaration
public string CountryCode { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 3
View SourceLanguage
Gets or sets a preferred language.
Declaration
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".
API Level: 3
View SourceMaxResults
Gets or sets the maximum result count for each service request.
Declaration
public int MaxResults { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Setting negative value will not have any effect on MaxResults value.
API Level: 3
View SourceMode
Gets or sets the route transport mode.
Declaration
public TransportMode Mode { get; set; }
Property Value
Type | Description |
---|---|
TransportMode |
API Level: 3
View SourceOptimization
Gets or sets the route optimization.
Declaration
public RouteOptimization Optimization { get; set; }
Property Value
Type | Description |
---|---|
RouteOptimization |
API Level: 3
View SourceProperties
Gets or sets the search properties as a key value pair.
Declaration
public IReadOnlyDictionary<string, string> Properties { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, String> |
API Level: 3
View SourceRouteFeature
Gets or sets the route feature.
Declaration
public RouteFeature RouteFeature { get; set; }
Property Value
Type | Description |
---|---|
RouteFeature |
API Level: 3
View SourceRouteFeatureWeight
Gets or sets the route feature weight.
Declaration
public RouteFeatureWeight RouteFeatureWeight { get; set; }
Property Value
Type | Description |
---|---|
RouteFeatureWeight |
API Level: 3
View SourceSearchAlternativeRoutes
Gets or sets if the searching for alternative routes is enabled.
Declaration
public bool SearchAlternativeRoutes { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
View SourceUnit
Gets or sets the distance unit.
Declaration
public DistanceUnit Unit { get; set; }
Property Value
Type | Description |
---|---|
DistanceUnit |
API Level: 3
Methods
View SourceDispose()
Releases all the resources used by this object.
Declaration
public void Dispose()
API Level: 3
View SourceDispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. |
API Level: 3
View SourceFinalize()
Destroy the SearchPreference object.
Declaration
protected void Finalize()