Table of Contents

Namespace GoogleMapsApi.Entities.Directions.Response

Classes

DirectionsResponse

Response from the Google Directions API containing one or more computed routes from origin to destination.

Distance
Duration

duration indicates the total duration of this leg These fields may be absent if the duration is unknown.

Leg

Each element in the legs array specifies a single leg of the journey from the origin to the destination in the calculated route. For routes that contain no waypoints, the route will consist of a single "leg," but for routes that define one or more waypoints, the route will consist of one or more legs, corresponding to the specific legs of the journey.

Line
OverviewPolyline

Contains the encoded and decoded data returned in the overview_polyline field.

PointsDecodingException
Route

When the Directions API returns results, it places them within a (JSON) routes array. Even if the service returns no results (such as if the origin and/or destination doesn't exist) it still returns an empty routes array. (XML responses consist of zero or more route elements.) Each element of the routes array contains a single result from the specified origin and destination. This route may consist of one or more legs depending on whether any waypoints were specified. As well, the route also contains copyright and warning information which must be displayed to the user in addition to the routing information.

Step

Each element in the steps array defines a single step of the calculated directions. A step is the most atomic unit of a direction's route, containing a single step describing a specific, single instruction on the journey. E.g. "Turn left at W. 4th St." The step not only describes the instruction but also contains distance and duration information relating to how this step relates to the following step. For example, a step denoted as "Merge onto I-80 West" may contain a duration of "37 miles" and "40 minutes," indicating that the next step is 37 miles/40 minutes from this step.

Stop

Contains information about the stop/station for this part of the trip

TransitAgency

Information about the transit agency. Note: You must display the names and URLs of the transit agencies servicing the trip results.

TransitDetails
Vehicle

Enums

DirectionsStatusCodes
VehicleType