Skip to content

Instantly share code, notes, and snippets.

Last active November 12, 2015 19:30
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\?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