Class Geolocation
- java.lang.Object
-
- oracle.cloud.bots.mobile.core.payload.Geolocation
-
public class Geolocation extends java.lang.Object
An object that represents the location coordinates of a location message.
-
-
Constructor Summary
Constructors Constructor Description Geolocation(double latitude, double longitude)
Creates an object for the location coordinates of a location message.Geolocation(double latitude, double longitude, java.lang.String url, java.lang.String title)
Creates an object for the location coordinates of a location message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getLatitude()
The GPS coordinate's latitude valuedouble
getLongitude()
The GPS coordinate's longitude valuejava.lang.String
getTitle()
A title for the locationjava.lang.String
getUrl()
A URL for displaying a map of the locationvoid
setLatitude(double latitude)
Sets the GPS coordinate's latitude valuevoid
setLongitude(double longitude)
Sets the GPS coordinate's longitude valuevoid
setTitle(java.lang.String title)
Sets a title for the locationvoid
setUrl(java.lang.String url)
Sets a URL for displaying a map of the location
-
-
-
Constructor Detail
-
Geolocation
public Geolocation(double latitude, double longitude)
Creates an object for the location coordinates of a location message.- Parameters:
latitude
- The GPS coordinate's latitude valuelongitude
- The GPS coordinate's longitude value
-
Geolocation
public Geolocation(double latitude, double longitude, java.lang.String url, java.lang.String title)
Creates an object for the location coordinates of a location message.- Parameters:
latitude
- The GPS coordinate's latitude valuelongitude
- The GPS coordinate's longitude valueurl
- A URL for displaying a map of the locationtitle
- A title for the location
-
-
Method Detail
-
getLatitude
public double getLatitude()
The GPS coordinate's latitude value- Returns:
- The GPS coordinate's latitude value
-
setLatitude
public void setLatitude(double latitude)
Sets the GPS coordinate's latitude value- Parameters:
latitude
- The GPS coordinate's latitude value
-
getLongitude
public double getLongitude()
The GPS coordinate's longitude value- Returns:
- The GPS coordinate's longitude value
-
setLongitude
public void setLongitude(double longitude)
Sets the GPS coordinate's longitude value- Parameters:
longitude
- The GPS coordinate's longitude value
-
getUrl
public java.lang.String getUrl()
A URL for displaying a map of the location- Returns:
- A URL for displaying a map of the location
-
setUrl
public void setUrl(java.lang.String url)
Sets a URL for displaying a map of the location- Parameters:
url
- A URL for displaying a map of the location
-
getTitle
public java.lang.String getTitle()
A title for the location- Returns:
- A title for the location
-
setTitle
public void setTitle(java.lang.String title)
Sets a title for the location- Parameters:
title
- A title for the location
-
-