Skip to content

Geolocation

Geolocation data as latitude and longitude in decimal degrees within the World Geodetic System 1984.

Data type CarpDataTypes.GEOLOCATION.

Inheritance
Annotations

Constructors

Geolocation.fromJson

Geolocation.fromJson(
  1. Map<String, dynamic> json
)

Geolocation

Geolocation({
  1. double latitude = 0,
  2. double longitude = 0,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

latitude

double latitude
getter/setter pair

Latitude in GPS coordinates.

longitude

double longitude
getter/setter pair

Longitude in GPS coordinates.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.