GeoJson class
The main geojson class
Constructors
- GeoJson()
- Default constructor
Properties
-
endSignal
→ Stream<
bool> -
The stream indicating that the parsing is finished
Use it to dispose the class if not needed anymore after parsing
no setter
-
features
↔ List<
GeoJsonFeature> -
All the features
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lines
↔ List<
GeoJsonLine> -
All the lines
getter/setter pair
-
multiLines
↔ List<
GeoJsonMultiLine> -
All the multi lines
getter/setter pair
-
multiPoints
↔ List<
GeoJsonMultiPoint> -
All the multi points
getter/setter pair
-
multiPolygons
↔ List<
GeoJsonMultiPolygon> -
All the multi polygons
getter/setter pair
-
points
↔ List<
GeoJsonPoint> -
All the points
getter/setter pair
-
polygons
↔ List<
GeoJsonPolygon> -
All the polygons
getter/setter pair
-
processedFeatures
→ Stream<
GeoJsonFeature> -
Stream of features that are coming in as they are parsed
Useful for handing the features faster if the file is big
no setter
-
processedLines
→ Stream<
GeoJsonLine> -
Stream of lines that are coming in as they are parsed
no setter
-
processedMultiLines
→ Stream<
GeoJsonMultiLine> -
Stream of multi lines that are coming in as they are parsed
no setter
-
processedMultiPoints
→ Stream<
GeoJsonMultiPoint> -
Stream of multi points that are coming in as they are parsed
no setter
-
processedMultiPolygons
→ Stream<
GeoJsonMultiPolygon> -
Stream of multi polygons that are coming in as they are parsed
no setter
-
processedPoints
→ Stream<
GeoJsonPoint> -
Stream of points that are coming in as they are parsed
no setter
-
processedPolygons
→ Stream<
GeoJsonPolygon> -
Stream of polygons that are coming in as they are parsed
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Dispose the class when finished using it
-
geofenceDistance(
{required GeoJsonPoint point, required List< GeoJsonPoint> points, required num distance, bool disableStream = false, bool verbose = false}) → Future<List< GeoJsonPoint> > - Find all the GeoJsonPoint within a certain distance from a GeoJsonPoint
-
geofencePolygon(
{required GeoJsonPolygon polygon, required List< GeoJsonPoint> points, bool disableStream = false, bool verbose = false}) → Future<List< GeoJsonPoint> > - Find all the GeoJsonPoint located in a GeoJsonPolygon from a list of points
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String data, {String? nameProperty, bool verbose = false, bool disableStream = false}) → Future< void> - Parse the data
-
parseFile(
String path, {String? nameProperty, bool verbose = false, GeoJsonQuery? query, bool disableStream = false}) → Future< void> - Parse the data from a file
-
parseInMainThread(
String data, {String? nameProperty, GeoJsonQuery? query, bool verbose = false, bool disableStream = false}) → Future< void> - Parse the geojson in the main thread not using any isolate: necessary for the web
-
search(
String? data, {required GeoJsonQuery query, String? nameProperty, bool verbose = false, bool disableStream = false}) → Future< void> - Search a GeoJsonFeature by property.
-
searchInFile(
String path, {required GeoJsonQuery query, String? nameProperty, bool verbose = false}) → Future< void> - Search a GeoJsonFeature by property from a file
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited