GeoPoint class

A class to hold geopoint 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 geopoint from json data
GeoPoint.fromLatLng({required LatLng point, String? name})
Get a GeoPoint from LatLng coordinates

Properties

accuracy double?
The accuracy of the mesurement
getter/setter pair
address String
the formated address of the GeoPoint
no setter
altitude double?
The altitude of the geopoint
getter/setter pair
country String?
Country
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
heading double?
The heading
getter/setter pair
id int?
The id of the geopoint
getter/setter pair
images List<File>?
A list of images can be attached to the geopoint
getter/setter pair
latitude double?
A latitude coordinate
final
locality String?
Locality name
getter/setter pair
longitude double?
A longitude coordinate
final
name String?
The name of the geopoint
getter/setter pair
number String?
Number in the street
getter/setter pair
point → LatLng
the LatLng of the GeoPoint
no setter
postalCode String?
Local postal code
getter/setter pair
region String?
Region
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String?
A string without spaces nor special characters. Can be used to define file paths
getter/setter pair
speed double?
The speed
getter/setter pair
speedAccuracy double?
The accuracy of the speed
getter/setter pair
street String?
Street name
getter/setter pair
sublocality String?
Sublocality name
getter/setter pair
subregion String?
Subregion
getter/setter pair
timestamp int?
The timestamp
getter/setter pair

Methods

details() String
Convert this geopoint to detailled string
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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 geopoint
toString() String
Convert this geopoint to string
override
toStringsMap({bool withId = true}) Map<String, String>
Get a strings map from this geopoint

Operators

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