Instantly share code, notes, and snippets.

@nhoag /birds.geojson
Last active Nov 12, 2015

Embed
What would you like to do?
2014-04-05 18:15 UTC
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
curl -s http://ebird.org/ws1.1/data/notable/region/recent\?rtype\=subnational1\&r\=US-MA\&fmt\=json\&back\=1 \
| jq -c '[.[] | {type: "Feature", geometry: {type: "Point", coordinates: [.lng, .lat]}, properties: {"marker-symbol": "marker", "Common Name": .comName, "Scientific Name": .sciName, "Location": .locName}}]' \
| jq '. | {"type": "FeatureCollection", "features": [.[]]}' \
| gist -o -f birds.geojson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment