geojsonio: I/O for GeoJSON


Convert various data formats to/from GeoJSON or TopoJSON. This package focuses mostly on converting lists, data.frame's, numeric, SpatialPolygons, SpatialPolygonsDataFrame, and more to GeoJSON with the help of rgdal and friends. You can currently read TopoJSON - writing TopoJSON will come in a future version of this package.

Package organization

The core functions in this package are organized first around what you're working with or want to get, geojson or topojson, then convert to or read from various formats:

Other interesting functions:

All of the above functions have methods for various classes, including numeric vectors, data.frame, list, SpatialPolygons, SpatialLines, SpatialPoints, and many more - which will try to do the right thing based on the data you give as input.


Scott Chamberlain

Andy Teucher

Questions? Problems? Suggestions? or email at

All documentation is copyright its authors; we didn't write any of that.