Location.withCoordinates constructor

Location.withCoordinates(
  1. GeoCoordinates coordinates
)

Creates a new Location instance from the provided GeoCoordinates value. timestamp is initialized with January 1, 1970, 00:00:00 GMT value. The rest of the fields will be initialized to null.

  • coordinates The geographic coordinates of the location.

Implementation

Location.withCoordinates(this.coordinates)
    : bearingInDegrees = null, speedInMetersPerSecond = null, time = null, horizontalAccuracyInMeters = null, verticalAccuracyInMeters = null, bearingAccuracyInDegrees = null, speedAccuracyInMetersPerSecond = null, timestampSinceBoot = null, locationTechnology = null, source = null, gnssTime = null, pitchInDegrees = null;