sheets2geojson

0.0.4 • Public • Published

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' });

/sheets2geojson/

    Package Sidebar

    Install

    npm i sheets2geojson

    Weekly Downloads

    2

    Version

    0.0.4

    License

    Apache-2.0

    Unpacked Size

    2.07 kB

    Total Files

    4

    Last publish

    Collaborators

    • stevage