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
read / write
address String
the formated 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 geopoint
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
Sublocality name
read / write
subregion String
Subregion
read / write
timestamp int
The timestamp
read / write

Methods

details() String
Convert this geopoint to detailled 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 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