Module Expr Str ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad If NameLoad body If CompareNotIn NameLoad ListLoad Str Str Str Str body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore BinOpAdd Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Str If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad NameLoad body Raise Call NameLoad Str If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Str NameLoad Index Str decorator_list
N/A N/A Performs requests to the Google Maps Directions API. googlemaps convert directions N/A N/A client origin destination mode waypoints alternatives avoid language units region departure_time arrival_time optimize_waypoints transit_mode transit_routing_preference traffic_model N/A None None False None None None None None None False None None None N/A N/A Get directions between an origin point and a destination point.

    :param origin: The address or latitude/longitude value from which you wish
        to calculate directions.
    :type origin: string, dict, list, or tuple

    :param destination: The address or latitude/longitude value from which
        you wish to calculate directions.
    :type destination: string, dict, list, or tuple

    :param mode: Specifies the mode of transport to use when calculating
        directions. One of "driving", "walking", "bicycling" or "transit"
    :type mode: string

    :param waypoints: Specifies an array of waypoints. Waypoints alter a
        route by routing it through the specified location(s).
    :type waypoints: a single location, or a list of locations, where a
        location is a string, dict, list, or tuple

    :param alternatives: If True, more than one route may be returned in the
        response.
    :type alternatives: bool

    :param avoid: Indicates that the calculated route(s) should avoid the
        indicated features.
    :type avoid: list or string

    :param language: The language in which to return results.
    :type language: string

    :param units: Specifies the unit system to use when displaying results.
        "metric" or "imperial"
    :type units: string

    :param region: The region code, specified as a ccTLD ("top-level domain"
        two-character value.
    :type region: string

    :param departure_time: Specifies the desired time of departure.
    :type departure_time: int or datetime.datetime

    :param arrival_time: Specifies the desired time of arrival for transit
        directions. Note: you can't specify both departure_time and
        arrival_time.
    :type arrival_time: int or datetime.datetime

    :param optimize_waypoints: Optimize the provided route by rearranging the
        waypoints in a more efficient order.
    :type optimize_waypoints: bool

    :param transit_mode: Specifies one or more preferred modes of transit.
        This parameter may only be specified for requests where the mode is
        transit. Valid values are "bus", "subway", "train", "tram", "rail".
        "rail" is equivalent to ["train", "tram", "subway"].
    :type transit_mode: string or list of strings

    :param transit_routing_preference: Specifies preferences for transit
        requests. Valid values are "less_walking" or "fewer_transfers"
    :type transit_routing_preference: string

    :param traffic_model: Specifies the predictive travel time model to use.
        Valid values are "best_guess" or "optimistic" or "pessimistic".
        The traffic_model parameter may only be specified for requests where
        the travel mode is driving, and where the request includes a
        departure_time.
    :type units: string

    :rtype: list of routes
     N/A params N/A origin destination N/A N/A convert latlng origin N/A N/A convert latlng destination N/A mode N/A N/A N/A mode N/A driving walking bicycling transit N/A N/A N/A ValueError Invalid travel mode. N/A N/A params N/A mode mode N/A waypoints N/A N/A waypoints N/A N/A convert location_list waypoints N/A optimize_waypoints N/A N/A waypoints N/A optimize:true| waypoints N/A N/A params N/A waypoints waypoints N/A alternatives N/A N/A N/A params N/A alternatives true N/A avoid N/A N/A N/A params N/A avoid N/A N/A convert join_list | avoid N/A language N/A N/A N/A params N/A language language N/A units N/A N/A N/A params N/A units units N/A region N/A N/A N/A params N/A region region N/A departure_time N/A N/A N/A params N/A departure_time N/A N/A convert time departure_time N/A arrival_time N/A N/A N/A params N/A arrival_time N/A N/A convert time arrival_time N/A N/A departure_time arrival_time N/A N/A N/A ValueError Should not specify both departure_time andarrival_time. N/A transit_mode N/A N/A N/A params N/A transit_mode N/A N/A convert join_list | transit_mode N/A transit_routing_preference N/A N/A N/A params N/A transit_routing_preference transit_routing_preference N/A traffic_model N/A N/A N/A params N/A traffic_model traffic_model N/A N/A N/A N/A client _get /maps/api/directions/json params N/A routes N/A