4 ms·
Fun project! I also used Clojure for a transit status project - calling the REST API of my local bike share system to display how many bikes were in the neares
by markc 7y ago
Fun project! I also used Clojure for a transit status project - calling the REST API of my local bike share system to display how many bikes were in the nearest station. Clojure is great for exploring and transforming that kind of data.
One small tip for the author: clojure.data.csv would simplify csv handling. Its readme includes a simple routine to transform the data to maps.
- mycall 7y agoCan you track which bikes move to which station?
- markc 7y agoNo, because that data isn’t available in the public API.
- flaie 7y agoAuthor here, thank you for the comment, you're right in the latest code I replaced it with clojure.data.csv but for the article I kept it that way to show that you don't need dependencies for such little utilities, split, map and zipmap and we're done.