Constructor
new GSSRoute(distance, travelTime)
Parameters:
Name | Type | Description |
---|---|---|
distance |
Number | The distance between origin and destination. |
travelTime |
Number | The time required to travel. |
Methods
getDistance() → {Number}
Returns the complete distance of the route
Returns:
distance
- Type
- Number
getPolyline() → {Array.<GSSLatLng>}
Returns an array of latitude and longitude points to be travelled to reach destination.
Returns:
An array of latitude and longitude.
- Type
- Array.<GSSLatLng>
getRouteSegments() → {Array.<GSSRouteSegment>}
Returns the route segments in the route.
Returns:
Returns the route segments that form the route.
- Type
- Array.<GSSRouteSegment>
getTravelTime() → {Number}
Returns the estimated travel time on the route.
Returns:
travelTime
- Type
- Number