Skip to content
pubscout

geojson

1.0.0, released 5 years ago by an unverified publisher

Utilities to parse GeoJSON data with a reactive API, search, and geofencing.

Repository archived
$ flutter pub add geojson
Source repository

What it does

Parses GeoJSON data structures into Dart objects using isolates by default to avoid blocking the main thread. Provides reactive streams for features as they are parsed, alongside search capabilities and geofencing functions for points in polygons or within distances.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to parse GeoJSON files or strings in a Flutter or Dart application.
  • You want to process large geographical datasets reactively using streams.
  • You need built-in geofencing or property search capabilities over GeoJSON data.

Skip it when

  • You are looking for full interactive map widgets (use a dedicated mapping package instead).

Strengths

  • Parses data in an isolate to prevent UI jank.
  • Reactive API with streams for individual geometry types.
  • Includes search and geofencing utilities.

Weaknesses

  • None documented

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4

not documented

final geo = GeoJson();
geo.processedLines.listen((GeoJsonLine line) {
  print(line.name);
});
final data = await rootBundle.loadString('assets/data.geojson');
await geo.parse(data);

Alternatives

Packages that do the same job and could replace geojson.

  • geobase

    Geospatial data structures, geometry calculations, geodesy, projections, and vector formats in Dart.

  • carp_background_location

    Background location tracking for Android and iOS using background_locator_2

  • geocore

    Geospatial data structures and parsers for GeoJSON and WKT in Dart.

  • geojson_vi

    Library for parsing, creating, and manipulating GeoJSON data per RFC 7946

Works with

Packages commonly used together with geojson: ones it builds on, ones built on it, and its own family.