Class Directions
Wrapper around the Mapbox Directions API. The Mapbox Directions API will show you how to get where you're going.
Inheritance
System.Object
Directions
Namespace:Mapbox.Directions
Assembly:Mapbox.Directions.dll
Syntax
public sealed class Directions : object
Constructors
Directions(IFileSource)
Initializes a new instance of the Directions class.
Declaration
public Directions(IFileSource fileSource)
Parameters
| Type | Name | Description |
|---|---|---|
| IFileSource | fileSource | Network access abstraction. |
Methods
Query(DirectionResource, Action<DirectionsResponse>)
Performs asynchronously a directions lookup.
Declaration
public IAsyncRequest Query(DirectionResource direction, Action<DirectionsResponse> callback)
Parameters
| Type | Name | Description |
|---|---|---|
| DirectionResource | direction | Direction resource. |
| Action<DirectionsResponse> | callback | Callback to be called after the request is completed. |
Returns
| Type | Description |
|---|---|
| IAsyncRequest | Returns a IAsyncRequest that can be used for canceling a pending request. This handle can be completely ignored if there is no intention of ever canceling the request. |