Skip to content

Instantly share code, notes, and snippets.

@zackham
Created November 12, 2011 00:55
Show Gist options
  • Save zackham/1359823 to your computer and use it in GitHub Desktop.
Save zackham/1359823 to your computer and use it in GitHub Desktop.
(ns datafun.core
(:require [com.twinql.clojure.http :as http])
(:use [cheshire.core]))
(defn fetch-url [url]
(:content (http/get (java.net.URI. url) :as :string)))
(def route (parse-string (fetch-url "http://ridewithgps.com/routes/815146.json") true))
(def points (:track_points route))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment