All Projects → mapbox → geojson-coords

mapbox / geojson-coords

Licence: ISC license
Extract coordinates from GeoJSON.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to geojson-coords

geocode-many
given an array of objects and a transform into a geocodable string, geocode them if possible
Stars: ✭ 13 (-55.17%)
Mutual labels:  banished
iconoblast
App icon dev info burning for iOS and Android.
Stars: ✭ 19 (-34.48%)
Mutual labels:  banished
weekend-picks-template
A template for browsing layers of TileMill maps. Part of the Map Sites templates from MapBox.
Stars: ✭ 24 (-17.24%)
Mutual labels:  banished
locator
A quick and easy way to build maps with markers
Stars: ✭ 30 (+3.45%)
Mutual labels:  banished
streambot
DEPRECATED (SEE README) Robot-assisted deploys to Lambda
Stars: ✭ 39 (+34.48%)
Mutual labels:  banished
node-eio
Control libeio from JavaScript
Stars: ✭ 14 (-51.72%)
Mutual labels:  banished
geojson-summary
Generate a plain-english summary of what is in a GeoJSON file.
Stars: ✭ 31 (+6.9%)
Mutual labels:  banished
mapbox-directions.js
Leaflet plugin for the Mapbox Directions API
Stars: ✭ 55 (+89.66%)
Mutual labels:  banished
grib-doctor
Utilities for handling quirks of weather data grib files.
Stars: ✭ 20 (-31.03%)
Mutual labels:  banished
diversify
Script for quickly creating varying sizes of app icons for iOS project asset catalogs.
Stars: ✭ 58 (+100%)
Mutual labels:  banished
cligj
Click-based argument and option decorators for Python GIS command line programs
Stars: ✭ 35 (+20.69%)
Mutual labels:  banished
cloudwatch-librato
Fetch AWS CloudWatch metrics and submit to Librato Metrics
Stars: ✭ 13 (-55.17%)
Mutual labels:  banished
nepomuk
A public transit router for GTFS feeds (currently only static) written in modern c++
Stars: ✭ 22 (-24.14%)
Mutual labels:  banished

geojson-coords

Extract coordinates from GeoJSON.

install

npm install --save @mapbox/geojson-coords

api

coords(geojson)

Given any valid GeoJSON object, return a single array of coordinates that it contains. Handles any root object, collapses multidimensional coordinate arrays and expands point coordinate arrays.

example

var geojsonCoords = require('@mapbox/geojson-coords');

geojsonCoords({
    "type": "GeometryCollection",
    "geometries": [
        {
            "type": "Point",
            "coordinates": [100.0, 0.0]
        },
        {
            "type": "LineString",
            "coordinates": [ [101.0, 0.0], [102.0, 1.0] ]
        }
    ]
});
// returns [[100, 0], [101, 0], [102, 1]];
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].