Skip to content

stevage/sheets2geojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert a Google Sheet to GeoJSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published