Class DirectionsChangedEventArgs
Class for containing directions event data.
Inheritance
Inherited Members
Namespace:GoogleMaps.Directions
Assembly:GoogleMaps.dll
Syntax
public class DirectionsChangedEventArgs : EventArgs, IScriptDescriptorData
Properties
Distance
A representation of distance as a numeric value and a display string. The total distance covered. This property may be undefined as the distance may be unknown.
Declaration
public Distance Distance { get; set; }
Property Value
Type | Description |
---|---|
Distance | The distance. |
Duration
A representation of duration as a numeric value and a display string. The total duration. This property may be undefined as the duration may be unknown.
Declaration
public Duration Duration { get; set; }
Property Value
Type | Description |
---|---|
Duration | The duration. |
EndAddress
The address of the destination.
Declaration
public string EndAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String | The end address. |
EndLocation
The DirectionsService calculates directions between locations by using the nearest transportation option (usually a road) at the start and end locations. EndLocation indicates the actual geocoded destination, which may be different than the end_location of the last step if, for example, the road is not near the destination of this leg.
Declaration
public LatLng EndLocation { get; set; }
Property Value
Type | Description |
---|---|
LatLng | The end location. |
StartAddress
The address of the origin.
Declaration
public string StartAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String | The start address. |
StartLocation
The DirectionsService calculates directions between locations by using the nearest transportation option (usually a road) at the start and end locations. StartLocation indicates the actual geocoded origin, which may be different than the start_location of the first step if, for example, the road is not near the origin of this leg.
Declaration
public LatLng StartLocation { get; set; }
Property Value
Type | Description |
---|---|
LatLng | The start location. |
Steps
An array of DirectionsSteps, each of which contains information about the individual steps in this leg.
Declaration
public DirectionsStep[] Steps { get; set; }
Property Value
Type | Description |
---|---|
DirectionsStep[] | The steps. |
Methods
FromScriptData(IDictionary<String, Object>)
Retrieves an instance from script data.
Declaration
public static DirectionsChangedEventArgs FromScriptData(IDictionary<string, object> data)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | data | The data. |
Returns
Type | Description |
---|---|
DirectionsChangedEventArgs |
ToScriptData()
Returns the instance as a script data.
Declaration
public IDictionary<string, object> ToScriptData()
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |