GeoPoint class

A class to hold geopoint data structure


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 [...]


accuracy double
The accuracy of the mesurement
read / write
address String
the formated address of the GeoPoint
altitude double
The altitude of the geopoint
read / write
country String
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 geopoint
read / write
latitude double
A latitude coordinate
locality String
Locality name
read / write
longitude double
A longitude coordinate
name String
The name of the geopoint
read / write
number String
Number in the street
read / write
point LatLng
the LatLng of the GeoPoint
postalCode String
Local postal code
read / write
region String
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
Sublocality name
read / write
subregion String
read / write
timestamp int
The timestamp
read / write


details() String
Convert this geopoint to detailled string
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
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
toStringsMap({bool withId = true}) Map<String, String>
Get a strings map from this geopoint [...]


operator ==(Object other) bool
The equality operator. [...]