Skip to content

Instantly share code, notes, and snippets.

@pkqk
Last active January 28, 2022 01:49
Show Gist options
  • Save pkqk/4ce3e7ede3d3b196a17e704b6c3a12da to your computer and use it in GitHub Desktop.
Save pkqk/4ce3e7ede3d3b196a17e704b6c3a12da to your computer and use it in GitHub Desktop.
Whale Tales 2022
url=https://www.whaletales2022.org/wp-json/wpgmza/v1/features/base64eJyrVkrLzClJLVKyUqqOUcpNLIjPTIlRsopRMo5R0gEJFGeUFni6FAPFomOBAsmlxSX5uW6ZqTkpELFapVoABaMWvA
curl -k "${url}" | jq '{type: "FeatureCollection", features:[.markers[]|select(.lat != "NA")|{type: "Feature",geometry: {type: "Point", coordinates: [(.lng|tonumber),(.lat|tonumber)]}, properties:{title:.title, link: "https://whaletales2022.org\(.link)"}}]}' > whaletales.geojson
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment