CarLocation


@CarProtocol
class CarLocation


Represents a geographical location with a latitude and a longitude.

Summary

Public functions

java-static CarLocation
create(location: Location)

Returns a new instance of a CarLocation with the same latitude and longitude contained in the given Location.

java-static CarLocation
create(latitude: Double, longitude: Double)

Returns a new instance of a CarLocation.

Boolean
equals(other: Any?)
Double

Returns the latitude of the location, in degrees.

Double

Returns the longitude of the location, in degrees.

Int
String!

Public functions

create

Added in 1.0.0
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 location is null

create

Added in 1.0.0
java-static fun create(latitude: Double, longitude: Double): CarLocation

Returns a new instance of a CarLocation.

equals

fun equals(other: Any?): Boolean

getLatitude

Added in 1.0.0
fun getLatitude(): Double

Returns the latitude of the location, in degrees.

getLongitude

Added in 1.0.0
fun getLongitude(): Double

Returns the longitude of the location, in degrees.

hashCode

fun hashCode(): Int

toString

fun toString(): String!