Expand description

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§

  • Contains the Avoid enum and its associated traits. It is used to route around features such as ferries, highways, and tolls.
  • 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.
  • 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.
  • 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.
  • 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.
  • Contains the TransitRoutePreference enum and its associated traits. It is used to prioritize fewer bus transfers or less walking is when generating transit directions.
  • Contains the UnitSystem enum and its associated traits. It is used specify whether imperial or metric units are used in Directions responses.
  • 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§

  • 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.