C# Class UsingBingMaps.Helpers.RouteCalculator

Helper class for simplifying the process of calculating a route asynchronously, using Bing maps web services.
Exibir arquivo Open project: ProjPossibility/CSUN-MobileMapMagnifier Class Usage Examples

Public Methods

Method Description
CalculateAsync ( ) : void
RouteCalculator ( CredentialsProvider credentialsProvider, Location to, Location from, Dispatcher uiDispatcher, Action routeFound ) : System
RouteCalculator ( CredentialsProvider credentialsProvider, string to, string from, Dispatcher uiDispatcher, Action routeFound ) : System

Private Methods

Method Description
CalculateRoute ( GeocodeResult locations = null ) : void

Calculates a route, based on geocode resuls.

GeocodeAddress ( string address, RoutingState state ) : void
GeocodeResultToWaypoint ( GeocodeResult result ) : Waypoint
client_GeocodeCompleted ( object sender, GeocodeCompletedEventArgs e ) : void
client_RouteCompleted ( object sender, CalculateRouteCompletedEventArgs e ) : void

Method Details

CalculateAsync() public method

public CalculateAsync ( ) : void
return void

RouteCalculator() public method

public RouteCalculator ( CredentialsProvider credentialsProvider, Location to, Location from, Dispatcher uiDispatcher, Action routeFound ) : System
credentialsProvider CredentialsProvider
to Location
from Location
uiDispatcher System.Windows.Threading.Dispatcher
routeFound Action
return System

RouteCalculator() public method

public RouteCalculator ( CredentialsProvider credentialsProvider, string to, string from, Dispatcher uiDispatcher, Action routeFound ) : System
credentialsProvider CredentialsProvider
to string
from string
uiDispatcher System.Windows.Threading.Dispatcher
routeFound Action
return System