GeoJson class

Represents a GeoJSON object, commonly used for PostGIS geometry types.

Constructors

GeoJson({required String type, required LatLng coordinates})
GeoJson.fromJson(Map<String, dynamic> json)
Creates a GeoJson object from a JSON map.
factory
GeoJson.fromWKB(String wkbString)
factory

Properties

coordinates → LatLng
The coordinates of the geometry.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The type of geometry (e.g., "Point").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts the GeoJson object to a JSON map.
toString() → String
A string representation of this object.
override
toWKB() → String

Operators

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