Overview
turf_pip is a lightweight Dart library designed to determine whether a geographic point lies within a polygon. It implements the point-in-polygon algorithm, commonly used in spatial analysis and mapping applications. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, making it suitable for cross-platform geospatial logic. It is ideal for use cases involving location-based services, map interactions, or spatial data validation. The library is simple to integrate via Flutter's pub package manager.
Use cases
- Geolocation validation
- Map-based filtering
- Spatial data analysis
- Interactive map features
- Location-aware applications
- GIS processing
Key features
- Point-in-polygon detection
- Cross-platform support
- Lightweight and fast
- Easy integration with Flutter
- Pure Dart implementation
- No external dependencies
Suitable for
- Flutter developers working with maps
- Applications requiring spatial queries
- Backend or frontend geospatial logic
- Mobile and web apps with location features
- Developers seeking minimal footprint utilities
Considerations
- Limited to 2D point and polygon geometry
- Does not support complex geometries like multipolygons
- No coordinate transformation or projection handling
- Assumes input coordinates are in WGS84 (lat/lon) format
- Not optimized for high-frequency real-time checks