PostGIS: Spatial database extension for PostgreSQL. Turf.js: Geospatial analysis in JavaScript, in the browser or Node.
| PostGIS | Turf.js | |
|---|---|---|
| Category | Spatial Analysis & GeoAI | Map Libraries & SDKs |
| Pricing model | Open source | Open source |
| Starts at | Free | Free |
| Free tier | — | — |
| Open source | Yes | Yes |
| Software licence | GPL-2.0 | MIT |
| API | — | — |
| Platforms | Linux, Windows, macOS | JavaScript |
| Made by | — | — |
| Commercial use | Allowed | Allowed |
| Export / print images | Allowed | Allowed |
| Offline / caching | Allowed | Allowed |
| Visits from MapTools | 3 | 3 |
| Visit | Visit |
PostGIS features
- Geometry, geography and raster types
- Spatial indexes
- Hundreds of ST_ functions
- Topology and routing (pgRouting)
Turf.js features
- Buffers, unions and intersections
- Distance, area and bearing
- Point-in-polygon and clustering
- Works in browser and Node.js
Summary based on public information. Check each provider's current pricing and terms.