Class Location

java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.conversations.Location
All Implemented Interfaces:
Jsonable

public final class Location extends JsonableBaseObject
Describes parameters for a Location message in MessageEvent.getLocation().
  • Method Details

    • getLongitude

      public Double getLongitude()
      Longitude of the location.
      Returns:
      The longitude as a Double, or null if unspecified.
    • getLatitude

      public Double getLatitude()
      Latitude of the location.
      Returns:
      The latitude as a Double, or null if unspecified.
    • getName

      public String getName()
      Name of the location.
      Returns:
      The name, or null if unspecified.
    • getAddress

      public String getAddress()
      Full location address.
      Returns:
      The address as a string, or null if unspecified.
    • builder

      public static Location.Builder builder()
      Entry point for constructing an instance of this class.
      Returns:
      A new Builder.