Skip to content

Instantly share code, notes, and snippets.

@sckott
Last active August 29, 2015 14:01
Show Gist options
  • Save sckott/df19977f9378491b6d99 to your computer and use it in GitHub Desktop.
Save sckott/df19977f9378491b6d99 to your computer and use it in GitHub Desktop.
Zillow neighborhood maps in R to map
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Install togeojson

devtools::install_github("ropensci/togeojson")

Define url, convert to geojson

library("togeojson")
url <- 'http://www.zillow.com/static/shp/ZillowNeighborhoods-MT.zip'
file_to_geojson(input=url, method='web', outfilename='zillow_mt')
## Success! File is at ~/zillow_mt.geojson

Throw up as a gist

map_gist("~/zillow_mt.geojson")
## Your gist has been published
## View gist at https://gist.github.com/sckott/ccf5340748969f3a442a
## Embed gist with <script src="https://gist.github.com/sckott/ccf5340748969f3a442a.js"></script>
<script src="https://gist.github.com/sckott/6596e8d1701a3daf68a2.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment