Class MapService

    Definition

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

    Map service class for service request.

    public class MapService : IDisposable
    Inheritance
    object
    MapService
    Implements
    System.IDisposable

    Constructors

    View Source

    MapService(string, string)

    Creates a new maps service object for given service provider.

    Declaration
    public MapService(string serviceProvider, string serviceProviderKey)
    Parameters
    Type Name Description
    string serviceProvider

    A string representing the name of the map service provider.

    string serviceProviderKey

    A string representing a certificate key to use the map service provider.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the required feature is not supported.

    System.ArgumentException

    Thrown when parameters are invalid.

    System.InvalidOperationException

    Thrown when a native operation failed to allocate memory and connect to the service.

    System.UnauthorizedAccessException

    Thrown when application does not have some privilege to access this method.

    Properties

    View Source

    GeocodePreferences

    Gets the search preferences used for GeocodeRequest or ReverseGeocodeRequest.

    Declaration
    public IGeocodePreference GeocodePreferences { get; }
    Property Value
    Type Description
    IGeocodePreference
    View Source

    PlaceSearchFilter

    Gets and sets a filter used for the place search result.

    Declaration
    public PlaceFilter PlaceSearchFilter { get; set; }
    Property Value
    Type Description
    PlaceFilter
    View Source

    PlaceSearchPreferences

    Gets the search preferences used for PlaceSearchRequest.

    Declaration
    public IPlaceSearchPreference PlaceSearchPreferences { get; }
    Property Value
    Type Description
    IPlaceSearchPreference
    View Source

    Preferences

    Gets and sets the search preferences.

    Declaration
    public SearchPreference Preferences { get; set; }
    Property Value
    Type Description
    SearchPreference
    View Source

    Provider

    Gets the name of the map service provider.

    Declaration
    public string Provider { get; }
    Property Value
    Type Description
    string
    View Source

    ProviderKey

    Gets and sets a string representing keys for the map service provider.

    Declaration
    public string ProviderKey { get; set; }
    Property Value
    Type Description
    string
    Remarks

    Typically, the provider key is issued by each maps provider after signing up for a plan in the website. Depending on the plan and its provider which you have signed, you might have to pay for the network traffic.

    View Source

    Providers

    Gets the list of available map service providers.

    Declaration
    public static IEnumerable<string> Providers { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<T><string>

    The list of map service providers.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the required feature is not supported.

    System.UnauthorizedAccessException

    Thrown when application does not have privilege to access this property.

    View Source

    RouteSearchPreferences

    Gets the search preferences used for RouteSearchRequest.

    Declaration
    public IRouteSearchPreference RouteSearchPreferences { get; }
    Property Value
    Type Description
    IRouteSearchPreference
    View Source

    UserConsented

    Gets a user consent for the map service provider

    Declaration
    public bool UserConsented { get; }
    Property Value
    Type Description
    bool

    Methods

    View Source

    CreateGeocodeRequest(string, Area)

    Creates a geocode search request for the given free-formed address string, within the specified boundary.

    Declaration
    public GeocodeRequest CreateGeocodeRequest(string address, Area boundary)
    Parameters
    Type Name Description
    string address

    A string representing the free-formed address.

    Area boundary

    An instance of Area object representing the interested area.

    Returns
    Type Description
    GeocodeRequest

    Returns a GeocodeRequest object created with an address string and a specified boundary.

    See Also
    Area
    View Source

    CreateGeocodeRequest(string)

    Creates a geocode search request for the given free-formed address string.

    Declaration
    public GeocodeRequest CreateGeocodeRequest(string address)
    Parameters
    Type Name Description
    string address

    A string representing free-formed address.

    Returns
    Type Description
    GeocodeRequest

    Returns a GeocodeRequest object created with an address string.

    View Source

    CreateGeocodeRequest(PlaceAddress)

    Creates a geocode search request for the given structured address.

    Declaration
    public GeocodeRequest CreateGeocodeRequest(PlaceAddress address)
    Parameters
    Type Name Description
    PlaceAddress address

    A string representing the address of interest.

    Returns
    Type Description
    GeocodeRequest

    Returns a GeocodeRequest object created with a structured address.

    View Source

    CreateMultiReverseGeocodeRequest(IEnumerable<Geocoordinates>)

    Creates a reverse geocode search request for the given position coordinates list.

    Declaration
    public MultiReverseGeocodeRequest CreateMultiReverseGeocodeRequest(IEnumerable<Geocoordinates> coordinates)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T><Geocoordinates> coordinates

    Coordinates list with [2 ~ 100] coordinates.

    Returns
    Type Description
    MultiReverseGeocodeRequest

    Returns a MultiReverseGeocodeRequest object created with a list of location coordinates.

    View Source

    CreatePlaceSearchRequest(string, Area)

    Creates a place search request for a free-formed address within the boundary.

    Declaration
    public PlaceSearchRequest CreatePlaceSearchRequest(string address, Area boundary)
    Parameters
    Type Name Description
    string address

    A string which represents a free-formed address.

    Area boundary

    An instance of area object representing an area to search interested places.

    Returns
    Type Description
    PlaceSearchRequest

    Returns a PlaceSearchRequest object created with an address string and a specified boundary.

    View Source

    CreatePlaceSearchRequest(Area)

    Creates a place search request for places within a specified boundary.

    Declaration
    public PlaceSearchRequest CreatePlaceSearchRequest(Area boundary)
    Parameters
    Type Name Description
    Area boundary

    An instance of Area object representing and area to search interested places.

    Returns
    Type Description
    PlaceSearchRequest

    Returns a PlaceSearchRequest object created with a specified boundary.

    View Source

    CreatePlaceSearchRequest(Geocoordinates, int)

    Creates a place search request for a specified search radius around a given coordinates position.

    Declaration
    public PlaceSearchRequest CreatePlaceSearchRequest(Geocoordinates coordinates, int distance)
    Parameters
    Type Name Description
    Geocoordinates coordinates

    Geographical coordinates of the center.

    int distance

    A double value representing the radius of an area to search places.

    Returns
    Type Description
    PlaceSearchRequest

    Returns a PlaceSearchRequest object created with the location coordinates and search radius.

    View Source

    CreateReverseGeocodeRequest(double, double)

    Creates a reverse geocode search request for the given latitude and longitude.

    Declaration
    public ReverseGeocodeRequest CreateReverseGeocodeRequest(double latitude, double longitude)
    Parameters
    Type Name Description
    double latitude

    Latitude of the interested place.

    double longitude

    Longitude of the interested place.

    Returns
    Type Description
    ReverseGeocodeRequest

    Returns a ReverseGeocodeRequest object created with the location coordinates.

    View Source

    CreateRouteSearchRequest(Geocoordinates, Geocoordinates)

    Creates a route search request for the origin and destination points.

    Declaration
    public RouteSearchRequest CreateRouteSearchRequest(Geocoordinates from, Geocoordinates to)
    Parameters
    Type Name Description
    Geocoordinates from

    Starting point.

    Geocoordinates to

    Destination.

    Returns
    Type Description
    RouteSearchRequest

    Returns a RouteSearchRequest object created with the origin and destination coordinates.

    View Source

    Dispose()

    Releases all the resources used by this object.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

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

    Declaration
    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

    ~MapService()

    Destroy the MapService object.

    Declaration
    protected ~MapService()
    View Source

    IsSupported(ServiceData)

    Checks if the maps service supports a given data feature.

    Declaration
    public bool IsSupported(ServiceData data)
    Parameters
    Type Name Description
    ServiceData data

    Data feature to check.

    Returns
    Type Description
    bool

    Returns true if the maps service supports a data feature, otherwise false.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the required feature is not supported.

    System.UnauthorizedAccessException

    Thrown when application does not have some privilege to access this method.

    View Source

    IsSupported(ServiceRequestType)

    Checks if the maps service supports the given request.

    Declaration
    public bool IsSupported(ServiceRequestType type)
    Parameters
    Type Name Description
    ServiceRequestType type

    Request type to check

    Returns
    Type Description
    bool

    Returns true if the maps service supports a request, otherwise false.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the required feature is not supported.

    System.UnauthorizedAccessException

    Thrown when application does not have some privilege to access this method.

    View Source

    RequestUserConsent()

    Gets the user's consent to use maps data.

    Declaration
    public Task<bool> RequestUserConsent()
    Returns
    Type Description
    System.Threading.Tasks.Task<TResult><bool>

    Returns true if user agreed that the application can use maps data, otherwise false.

    Exceptions
    Type Condition
    System.NotSupportedException

    Thrown when the required feature is not supported.

    System.UnauthorizedAccessException

    Thrown when application does not have some privilege to access this method.

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX