Class DirectionsStep
Represents a step in directions result.
Inheritance
System.Object
DirectionsStep
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:GoogleMaps.Directions
Assembly:GoogleMaps.dll
Syntax
public class DirectionsStep : IScriptDescriptorData
Properties
Distance
Gets or sets the distance.
Declaration
public Distance Distance { get; set; }
Property Value
Type | Description |
---|---|
Distance | The distance. |
Duration
Gets or sets the duration.
Declaration
public Duration Duration { get; set; }
Property Value
Type | Description |
---|---|
Duration | The duration. |
EndLocation
Gets or sets the end location.
Declaration
public LatLng EndLocation { get; set; }
Property Value
Type | Description |
---|---|
LatLng | The end location. |
Instructions
Gets or sets the instructions.
Declaration
public string Instructions { get; set; }
Property Value
Type | Description |
---|---|
System.String | The instructions. |
StartLocation
Gets or sets the start location.
Declaration
public LatLng StartLocation { get; set; }
Property Value
Type | Description |
---|---|
LatLng | The start location. |
Methods
FromScriptData(IDictionary<String, Object>)
Retrieves an instance from script data.
Declaration
public static DirectionsStep FromScriptData(IDictionary<string, object> data)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | data | The data. |
Returns
Type | Description |
---|---|
DirectionsStep |
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> |