GeoPoint class
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
getter/setter pair
- address → String
-
the formatted 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 geo point
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 GeoPointno 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?
-
Sub locality name
getter/setter pair
- subregion ↔ String?
-
Subregion
getter/setter pair
- timestamp ↔ int?
-
The timestamp
getter/setter pair
Methods
-
details(
) → String - Convert this geo point to detailed 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 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