public static class DirectionsApiRequest.Waypoint
extends java.lang.Object
| Constructor and Description |
|---|
Waypoint(LatLng location)
Constructs a stopover Waypoint using a Latlng location.
|
Waypoint(LatLng location,
boolean isStopover)
Constructs a Waypoint using a LatLng location.
|
Waypoint(java.lang.String location)
Constructs a stopover Waypoint using a String address.
|
Waypoint(java.lang.String location,
boolean isStopover)
Constructs a Waypoint using a String address.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Gets the String representation of this Waypoint, as an API request parameter fragment.
|
public Waypoint(java.lang.String location)
location - Any address or location recognized by the Google Maps API.public Waypoint(java.lang.String location,
boolean isStopover)
location - Any address or location recognized by the Google Maps API.isStopover - Whether this waypoint is a stopover waypoint.public Waypoint(LatLng location)
location - The LatLng coordinates of this waypoint.public Waypoint(LatLng location, boolean isStopover)
location - The LatLng coordinates of this waypoint.isStopover - Whether this waypoint is a stopover waypoint.