Class DirectionsApiRequest.Waypoint

java.lang.Object
ai.nextbillion.maps.DirectionsApiRequest.Waypoint
Enclosing class:
DirectionsApiRequest

public static class DirectionsApiRequest.Waypoint
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor 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.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()
    Gets the String representation of this Waypoint, as an API request parameter fragment.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Waypoint

      public Waypoint​(java.lang.String location)
      Constructs a stopover Waypoint using a String address.
      Parameters:
      location - Any address or location recognized by the Google Maps API.
    • Waypoint

      public Waypoint​(java.lang.String location, boolean isStopover)
      Constructs a Waypoint using a String address.
      Parameters:
      location - Any address or location recognized by the Google Maps API.
      isStopover - Whether this waypoint is a stopover waypoint.
    • Waypoint

      public Waypoint​(LatLng location)
      Constructs a stopover Waypoint using a Latlng location.
      Parameters:
      location - The LatLng coordinates of this waypoint.
    • Waypoint

      public Waypoint​(LatLng location, boolean isStopover)
      Constructs a Waypoint using a LatLng location.
      Parameters:
      location - The LatLng coordinates of this waypoint.
      isStopover - Whether this waypoint is a stopover waypoint.
  • Method Details

    • toString

      public java.lang.String toString()
      Gets the String representation of this Waypoint, as an API request parameter fragment.
      Overrides:
      toString in class java.lang.Object
      Returns:
      The HTTP parameter fragment representing this waypoint.