[][src]Module google_maps::directions::request

Look in this module for documentation on building your Directions API query. In particular, look at the Request struct for examples of the builder pattern. This module contains the tools (enums, structs, methods) for building your Google Maps Platform request.

Modules

avoid

Contains the Avoid enum and its associated traits. It is used to route around features such as ferries, highways, and tolls.

departure_time

Contains the DepartureTime enum and its associated traits. It is used to specify when the user would like to depart for traffic modelling and transit directions.

location

Contains the Location enum and its associated traits. It is used to specify origin and destination locations in the form of a text address, latitude/longitude pair, or Google Place ID.

traffic_model

Contains the TrafficModel enum and its associated traits. It is used to select a traffic model that is as accurate as possible, optimistic, or pessimistic.

transit_mode

Contains the TransitMode enum and its associated traits. It is used to prioritize certain transit modes such as bus or subway when generating transit directions.

transit_route_preference

Contains the TransitRoutePreference enum and its associated traits. It is used to prioritize fewer bus transfers or less walking is when generating transit directions.

unit_system

Contains the UnitSystem enum and its associated traits. It is used specify whether imperial or metric units are used in Directions responses.

waypoint

Contains the Waypoint enum and its associated traits. It is used to specify intermediate locations in the form of a text address, a latitude & longitude pair, a Google Place ID, or as an Encoded Polyline.

Structs

Request

Look at this Request struct for documentation on how to build your Directions API query. The methods implemented for this struct are what's used to build your request.