# Spatial4j

Canonical: https://gisforweb.com/tools/spatial4j/

General purpose geospatial library for Java, a LocationTech project.

Spatial4j is a Java library whose core capabilities are shape types that work in both Euclidean and geodesic (on-sphere) world models, distance and area calculations, and reading and writing WKT and GeoJSON. It provides grid-based spatial indexes such as geohash and custom cell sizes, and is used inside projects including Elasticsearch, Apache Lucene and Netty. It is a LocationTech project of the Eclipse Foundation, alongside GeoTools.

## Details

- Type: library

- Categories: analysis, vector

- Open source: Yes

- Pricing model: open-source

- License: Apache-2.0

- Platforms: linux, macos, windows

## Features

- Shapes for Euclidean and geodesic models

- Distance, area and bearing calculations

- WKT and GeoJSON reading and writing

- Geohash and custom grid spatial indexes

- Used inside Elasticsearch and Netty

- LocationTech project of the Eclipse Foundation

## Project sources

- Website: https://projects.eclipse.org/projects/locationtech.spatial4j

- Documentation: https://locationtech.github.io/spatial4j/

- Repository: https://github.com/locationtech/spatial4j

Directory descriptions are summaries. Verify current capabilities and terms with the project sources.
