Skip to content

Instantly share code, notes, and snippets.

@parklander
Forked from nhoag/birds.geojson
Last active November 12, 2015 19:42
Show Gist options
  • Save parklander/65359106c865af0c1bcc to your computer and use it in GitHub Desktop.
Save parklander/65359106c865af0c1bcc to your computer and use it in GitHub Desktop.
2014-04-05 18:15 UTC
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.
curl -s http://ebird.org/ws1.1/data/notable/region/recent\?rtype\=subnational1\&r\=US-ND\&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