Packagecom.google.maps.services
Classpublic class Step

Objects of this class are created by the Directions object to store information about a single step within a route in a directions result. This class does not have a public constructor. Clients should not directly create objects of this class.



Public Properties
 PropertyDefined by
  descriptionHtml : String
[read-only] An HTML string containing the description of this step.
Step
  distance : Number
[read-only] The total distance of this step in meters.
Step
  distanceHtml : String
[read-only] The total distance of this step in a localized string representation in the units that are predominant in the starting country of this set of directions.
Step
  duration : Number
[read-only] The total time of this step in seconds.
Step
  durationHtml : String
[read-only] The total time of this step in a localized string representation.
Step
  latLng : LatLng
[read-only] The first point along the polyline for this step.
Step
  polylineIndex : uint
[read-only] The index of the first point along the polyline for this step.
Step
Public Methods
 MethodDefined by
  
Step()
Constructor.
Step
Property detail
descriptionHtmlproperty
descriptionHtml:String  [read-only]

An HTML string containing the description of this step.

Implementation
    public function get descriptionHtml():String
distanceproperty 
distance:Number  [read-only]

The total distance of this step in meters.

Implementation
    public function get distance():Number
distanceHtmlproperty 
distanceHtml:String  [read-only]

The total distance of this step in a localized string representation in the units that are predominant in the starting country of this set of directions.

Implementation
    public function get distanceHtml():String
durationproperty 
duration:Number  [read-only]

The total time of this step in seconds.

Implementation
    public function get duration():Number
durationHtmlproperty 
durationHtml:String  [read-only]

The total time of this step in a localized string representation.

Implementation
    public function get durationHtml():String
latLngproperty 
latLng:LatLng  [read-only]

The first point along the polyline for this step.

Implementation
    public function get latLng():LatLng
polylineIndexproperty 
polylineIndex:uint  [read-only]

The index of the first point along the polyline for this step.

Implementation
    public function get polylineIndex():uint
Constructor detail
Step()constructor
public function Step()

Constructor. Creates an empty step object.