GeoLocation

public class GeoLocation : Codable

Represents geolocation information according to W3C Geolocation API Specification.

This version of the specification allows one attribute of type GeoCoordinates and a timestamp.

Attributes.

  • Contains a set of geographic coordinates together with their associated accuracy, as well as a set of other optional attributes such as altitude and speed.

    Declaration

    Swift

    public var coords: GeoCoordinates
  • Represents the time when the GeoLocation object was acquired and is represented as a number of milliseconds, either as an absolute time (relative to some epoch) or as a relative amount of time.

    Declaration

    Swift

    public var timestamp: Double

Initializers.

Codable methods.

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws