CSV to GeoJSON

grapefruit-league-mapI was excited last week when GitHub announced support for in-repository rendering of GeoJSON. I had a few CSV files with points in them, and I wanted to try out this new feature.

I couldn’t find an easy way to do it! There was this python script. There was this NPM Package. And more python.

So I wrote my own solution.

http://csv.togeojson.com

  • I’m just using two JS libraries (see the Github Readme for links and licenses)
  • Your CSV does not get uploaded to my server – it’s all in-browser.
  • Only supports points for now.

It was a simple tool that I threw together. I hope you will find it useful.

A few random GeoJSON resources I found:

2 thoughts on “CSV to GeoJSON

  1. Great idea. :-)

    I tried it with each of the snippets below. No response. :-\

    ident; latitude; longitude
    My place; 39.0;- 073.8

    “event”,”latitude”,”longitude”
    “My plance”, “39.0”,”-073.8″

Comments are closed.