All Projects → mapbox → geojson-summary

mapbox / geojson-summary

Licence: BSD-2-Clause license
Generate a plain-english summary of what is in a GeoJSON file.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to geojson-summary

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

Build Status

geojson-summary

Generate a plain-english summary of what is in a GeoJSON file.

install

npm install geojson-summary

api

summary(geojson, options)

Given a GeoJSON object, return an object with sentence (string) and parts (array of strings) members describing the object.

Options:

  • types: an object of type to name mappings like the default:
{
    Point: [' point', ' points'],
    Polygon: [' polygon', ' polygons'],
    LineString: [' line', ' lines']
}

example

summary([{
    type: 'Feature',
    properties: {},
    geometry: { "type": "Polygon",
      "coordinates": [
        [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]
        ]
     }
}])

// Returns:
/*
{
    sentence: '1 polygon',
    parts: ['1 polygon']
}
*/
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].