0.0.4 • Published 4 years ago

sheets2geojson v0.0.4

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
4 years ago

sheets2geojson

Purpose: fetches a single published Google Sheet and converts it to a GeoJSON of points.

To prepare the Google Sheet:

  1. Format it with a Latitude and Longitude column, plus any other columns
  2. Under File, select "Publish to Web", then publish as CSV.
  3. Copy the URL, and keep just the ID part (no slashes, just letters and numbers)

To call:

import { sheets2geojson } from 'sheets2geojson';
const geojson = await sheets2geojson(id, /* optional */{ latitudeColumn: 'lat', longitudeColumn: 'lng' });
0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago