GeoPoint class Null safety

A class to hold geo point data structure

Constructors

GeoPoint({required double latitude, required double longitude, String? name, int? id, String? slug, int? timestamp, double? altitude, double? speed, double? accuracy, double? heading, String? country, String? locality, String? sublocality, String? number, String? postalCode, String? region, double? speedAccuracy, String? street, String? subregion, List<File>? images})
Default constructor: needs latitude and longitude
GeoPoint.fromJson(Map<String, dynamic> json)
Build this geo point from json data Default constructor: needs latitude and longitude
GeoPoint.fromLatLng({required LatLng point, String? name})
Get a GeoPoint from LatLng coordinates

Properties

accuracy double?
The accuracy of the measurement
read / write
address String
the formatted address of the GeoPoint
read-only
altitude double?
The altitude of the geoPoint
read / write
country String?
Country
read / write
hashCode int
The hash code for this object.
read-only, inherited
heading double?
The heading
read / write
id int?
The id of the geoPoint
read / write
images List<File>?
A list of images can be attached to the geo point
read / write
latitude double
A latitude coordinate
final
locality String?
Locality name
read / write
longitude double
A longitude coordinate
final
name String?
The name of the geoPoint
read / write
number String?
Number in the street
read / write
point LatLng
the LatLng of the GeoPoint
read-only
postalCode String?
Local postal code
read / write
region String?
Region
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
slug String?
A string without spaces nor special characters. Can be used to define file paths
read / write
speed double?
The speed
read / write
speedAccuracy double?
The accuracy of the speed
read / write
street String?
Street name
read / write
sublocality String?
Sub locality name
read / write
subregion String?
Subregion
read / write
timestamp int?
The timestamp
read / write

Methods

details() String
Convert this geo point to detailed string
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toGeoJsonCoordinatesString() String
Convert to a geojson coordinates string
toGeoJsonFeatureString() String
Convert to a geojson feature string
toLatLng({bool ignoreErrors = false}) LatLng?
Convert this GeoPoint to a LatLng object
toMap({bool withId = true}) Map<String, dynamic>
Get a json map from this geo point
toString() String
Convert this geo point to string
override
toStringsMap({bool withId = true}) Map<String, String>
Get a strings map from this geo point

Operators

operator ==(Object other) bool
The equality operator.
inherited