[][src]Module google_maps::directions::response

Resources (enums, structs) for processing the Directions API response from the Google Maps Platform. Look in here for more information about the data returned from Google's server and how to parse it with your program.

Modules

directions_distance

A representation of distance as a numeric value and a display string.

directions_duration

A representation of duration as a numeric value and a display string.

driving_maneuver

Contains the DrivingManeuver enum and its associated traits. It is often used to determine which icon to display for the current step.

geocoded_waypoint
geocoder_status

Contains the GeocoderStatus enum and its associated traits. It indicates the status resulting from geocoding operations.

leg

A single leg consisting of a set of steps in a DirectionsResult. Some fields in the leg may not be returned for all requests.

overview_polyline

An encoded polyline representation of the route.

polyline

An encoded polyline representation of the route.

route

A single route containing a set of legs.

status

Contains the Status enum and its associated traits. It may contain debugging information to help you track down why the service request failed.

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.

transit_agency

Transit directions return additional information

transit_currency

Contains the TransitCurrency enum and its associated traits. It is used to specify a currency. Included for use with the transit fares returned by Google Maps Directions API.

transit_details

Transit directions return additional information.

transit_fare

Contains the total fare (that is, the total ticket costs) on this route.

transit_line

Contains the type of vehicle used on this line.

transit_stop

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

transit_time

A representation of time as a Date object, a localized string, and a time zone.

transit_vehicle

Contains the type of vehicle used on this line.

Structs

Response

Directions responses contain the following root elements.