Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. GeoJSON
  3. geojson-js-utils

geojson-js-utils

BSD-2-ClauseJavaScript

JavaScript helper functions for manipulating and analyzing GeoJSON data, including spatial calculations and geometric operations.

GitHubGitHub
403 stars55 forks0 contributors

What is geojson-js-utils?

GeoJSON Utilities for JavaScript is a library of helper functions for manipulating and analyzing GeoJSON data in JavaScript applications. It provides spatial operations like line intersection detection, point-in-polygon testing, and distance calculations using the Haversine formula. The library solves the problem of performing common geographic data manipulations without relying on heavy GIS frameworks.

Target Audience

JavaScript developers working with geographic data in web mapping applications, spatial databases, or data visualization tools. It's particularly useful for those needing lightweight spatial calculations in browser or Node.js environments.

Value Proposition

Developers choose this library because it offers a focused set of GeoJSON utilities with no external dependencies, making it easy to integrate. Its pure JavaScript implementation and MIT license provide flexibility for both open-source and commercial projects.

Overview

JavaScript helper functions for manipulating GeoJSON

Use Cases

Best For

  • Filtering geographic search results by radius after bounding box queries
  • Determining if user locations fall within defined geographic boundaries
  • Calculating distances between coordinates for proximity-based features
  • Detecting intersections between geographic features like roads or boundaries
  • Finding centroids of geographic areas for visualization or analysis
  • Performing lightweight spatial operations in browser-based mapping applications

Not Ideal For

  • Projects requiring advanced GIS operations like spatial joins, concave hulls, or 3D coordinate support
  • Applications with large datasets needing high-performance spatial indexing or optimized calculations
  • Teams looking for an actively maintained library with modern ES6+ modules and TypeScript definitions

Pros & Cons

Pros

Lightweight and Dependency-Free

The library is designed as a pure JavaScript utility with no external dependencies, making it easy to integrate without bloating projects, as emphasized in its focus on lightweight spatial calculations.

Essential Spatial Functions

It provides core operations like point-in-polygon testing and Haversine distance calculation, with clear examples in the README for tasks such as filtering by radius or detecting line intersections.

Easy Integration

Can be loaded directly in browsers or via npm with simple require statements, as shown in the usage examples, lowering the barrier to entry for developers.

MIT Licensed Flexibility

The MIT license allows unrestricted use in both open-source and commercial projects, providing legal flexibility without licensing concerns.

Cons

Limited Feature Scope

It only covers basic GeoJSON operations and lacks advanced capabilities like spatial indexing, buffer generation, or support for complex geometries such as MultiPolygon, which are common in modern GIS applications.

Outdated Maintenance

The project shows minimal recent updates and may not be actively maintained, risking compatibility issues with newer JavaScript environments and missing bug fixes or performance improvements.

Minimal Documentation

Beyond basic examples, the README lacks comprehensive API documentation, error handling guides, or tutorials, forcing developers to rely on source code inspection for advanced use.

Frequently Asked Questions

Quick Stats

Stars403
Forks55
Contributors0
Open Issues13
Last commit9 years ago
CreatedSince 2010

Tags

#web-mapping#geojson#javascript-utilities#geographic-data#geometry#mapping#spatial-analysis

Built With

J
JavaScript

Included in

GeoJSON2.5k
Auto-fetched 7 hours ago

Related Projects

Turf.jsTurf.js

A modular geospatial engine written in JavaScript and TypeScript

Stars10,415
Forks1,014
Last commit18 hours ago
geojson-mergegeojson-merge

Merge multiple GeoJSON files into one FeatureCollection.

Stars244
Forks33
Last commit1 year ago
simplify-geojsonsimplify-geojson

apply the ramer-douglas-peucker line simplification to geojson features or feature collections in JS or on the CLI

Stars182
Forks18
Last commit4 years ago
geojson-rewindgeojson-rewind

enforce polygon ring winding order for geojson

Stars133
Forks35
Last commit24 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub