CarLocation
@CarProtocol
class CarLocation
Represents a geographical location with a latitude and a longitude.
Summary
Public functions |
|
|---|---|
java-static CarLocation |
Returns a new instance of a |
java-static CarLocation |
Returns a new instance of a |
Boolean |
|
Double |
Returns the latitude of the location, in degrees. |
Double |
Returns the longitude of the location, in degrees. |
Int |
hashCode() |
String! |
toString() |
Public functions
create
java-static fun create(location: Location): CarLocation
Returns a new instance of a CarLocation with the same latitude and longitude contained in the given Location.
| Throws | |
|---|---|
java.lang.NullPointerException |
if |
create
java-static fun create(latitude: Double, longitude: Double): CarLocation
Returns a new instance of a CarLocation.
getLatitude
fun getLatitude(): Double
Returns the latitude of the location, in degrees.
getLongitude
fun getLongitude(): Double
Returns the longitude of the location, in degrees.