geojson-coords
Extracts all coordinates from any valid GeoJSON object and returns them as one flat array. Handy when you only need the points and not the structure.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
Share on XLicense: ISC
Overview
geojson-coords is a small JavaScript module that pulls every coordinate out of a GeoJSON object and returns them as one flat array. It accepts any valid GeoJSON root object, collapses nested coordinate arrays and turns a single Point into an entry in the list. It is handy when you only care about the points and not the geometry structure around them. You install it from npm and call a single function.
Key features
- Accepts any valid GeoJSON root object
- Collapses multidimensional coordinate arrays into one list
- Expands Point coordinates into list entries
- Single function API
Best for
Developers who need a plain list of points from GeoJSON, for instance before computing bounds or distances.
- Upstream
- mapbox/geojson-coords
- Fork on GitHub
- Guo-astro/geojson-coords
- Upstream stars
- 33
- Category
- Maps and geospatial
- Language
- JavaScript
- License
- ISC
- Forked
- 2020-11-01
- Sync status
- In syncLast synced 2026-11-09
More in Maps and geospatial
An interactive atlas for exploring Chinese history from 403 BCE to the present. Move through historical periods to see territorial changes, locate places, and connect them with historical events and poetry.
Forked 2026-10-21Last synced 2026-10-25License: GPL-3.0Maps and geospatialGitHub
A Go terminal map viewer and journey planner for recorded activities and planned routes. Inspect tracks, elevation, and playback offline, or use Mapbox for place search and road routing.
Forked 2026-10-19Last synced 2026-11-09License: MITMaps and geospatialGitHub
GeoLibre is a GIS for visualizing and analyzing geospatial data across browser, desktop, mobile, and notebooks. It keeps work local with browser geoprocessing tools.
Forked 2026-10-07Last synced 2026-11-09License: MITMaps and geospatialGitHub
An open source command line toolkit that turns drone, balloon or kite photos into maps, point clouds, 3D models and elevation models. Used for aerial mapping and surveying.
Forked 2026-06-09Last synced 2026-11-09License: AGPL-3.0Maps and geospatialGitHub