Skip to content

Instantly share code, notes, and snippets.

@nhoag
Last active November 12, 2015 19:30
Show Gist options
  • Save nhoag/9995803 to your computer and use it in GitHub Desktop.
Save nhoag/9995803 to your computer and use it in GitHub Desktop.
2014-04-05 18:15 UTC
Display the source blob
Display the rendered blob
Raw
{
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-69.975103,
41.830183
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Common Grackle (Bronzed)",
"Scientific Name": "Quiscalus quiscula",
"Location": "US-MA-Eastham-54-88 Samoset Rd"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-70.140514,
41.700008
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Common Raven",
"Scientific Name": "Corvus corax",
"Location": "US-MA-Dennis - 41.7000x-70.1405 - Apr 5, 2014, 8:42 AM"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-70.8108926,
42.2600131
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Harlequin Duck",
"Scientific Name": "Histrionicus histrionicus",
"Location": "Jerusalem Rd./Atlantic Ave., Cohasset"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-72.5959826,
42.0489894
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Glossy Ibis",
"Scientific Name": "Plegadis falcinellus",
"Location": "west road fields"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-70.8472896,
41.6411207
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Pectoral Sandpiper",
"Scientific Name": "Calidris melanotos",
"Location": "Shaws Cove Road"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-70.8472896,
41.6411207
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Pectoral Sandpiper",
"Scientific Name": "Calidris melanotos",
"Location": "Shaws Cove Road"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-70.2240207,
41.6349798
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Laughing Gull",
"Scientific Name": "Leucophaeus atricilla",
"Location": "Sea Gull Beach, Yarmouth"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-71.3491201,
42.5266299
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Great Egret",
"Scientific Name": "Ardea alba",
"Location": "Carlisle School"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-72.4993133,
42.3556989
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Northern Shrike",
"Scientific Name": "Lanius excubitor",
"Location": "Dagorlad"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-70.1129007,
41.6840342
]
},
"properties": {
"marker-symbol": "marker",
"Common Name": "Laughing Gull",
"Scientific Name": "Leucophaeus atricilla",
"Location": "Bell's Neck Conservation Area"
}
}
],
"type": "FeatureCollection"
}
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