# manuelbieh/geolib

Zero dependency library to provide some basic geo functions

Repository: https://github.com/manuelbieh/geolib
Canonical: https://ross.abutalabs.com/products/geolib
Language: JavaScript
License: MIT
License Family: permissive
Topics: geolib, wgs84, distance, geography, geojson, sexagesimal, latlng, hacktoberfest
Last push: 2026-04-03T01:52:18+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 75, release rhythm 45, longevity 100
- inputs: {"age_days": 5507, "days_push": 153, "days_rel": 153, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4278, forks 337 (observed 2026-08-28T04:08:41.098062+00:00)

## What it is
Geolib is a zero-dependency JavaScript/TypeScript library providing basic 2D geospatial operations such as distance calculation (Haversine), coordinate format conversion, and GeoJSON support. It works in Node and browsers via UMD or ES module builds with tree-shakeable imports.

## Use cases
- calculate distance between two gps coordinates in javascript
- convert decimal latitude longitude to sexagesimal format
- compute distance between geojson points
- find nearest coordinate to a location
- measure how far a user is from a store in meters

## When to choose
- you need lightweight, zero-dependency geo math in Node or the browser
- you want tree-shakeable functions and TypeScript type definitions
- you work with decimal or sexagesimal coordinates and GeoJSON input

## When to avoid
- you need 3D calculations including altitude or elevation
- you need advanced geospatial analysis like polygons, routing, or projections
- you need extremely high-precision geodesic computations (e.g. Vincenty/GeographicLib)

## Facets
- artifact type: library
- maturity: stable
- function: geospatial, math
- domain: developer-tools
- platform: browser
- tags: geojson, wgs84, haversine, coordinates, zero-dependency, sexagesimal, maps, geospatial, nodejs, javascript, typescript

## Member repositories
- manuelbieh/geolib (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:41.098062+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:59.334419+00:00, confidence not recorded.
  - readme: https://github.com/manuelbieh/geolib (fetched 2026-08-28T04:08:41.098062+00:00, sha d36b45a25ed6)
  - registry_npm: https://registry.npmjs.org/geolib (fetched 2026-08-29T09:11:37.394228+00:00, sha cf7bc66e5269)
- Data as of 2026-08-30T08:39:29.467469+00:00.
