nitrite_spatial 1.0.0 nitrite_spatial: ^1.0.0 copied to clipboard
Spatial extension for Nitrite database.
Nitrite Spatial #
Nitrite Spatial is a spatial indexing and search module for Nitrite database. It uses JTS Topology Suite port of the dart package dart_jts for spatial indexing and search.
Getting started #
To use Nitrite Spatial, add the following dependency in your pubspec.yaml
file:
dependencies:
nitrite_spatial: ^[version]
Usage #
To use Nitrite Spatial, you need to create a SpatialModule
and pass it to Nitrite builder.
// create a spatial module
var spatialModule = SpatialModule();
// initialization using builder
var db = await Nitrite.builder()
.loadModule(spatialModule)
.openOrCreate(username: 'user', password: 'pass123');
Additional information #
For additional information visit the Spatial module documentation.