robinkraft / planet-labs-cookbook

planet labs api tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Planet Labs API Cookbook

Tutorials

API Access

These tutorials assume that you have a Planet API key. Currently anyone can sign up for a limited access key at planet.com/products/open-california. This will give you access to free imagery in California only. (Note, Open California approval is not instantanious)

Once you have an API key, add the key to your shell environment:

export PLANET_API_KEY=a3a64774d30c4749826b6be445489d3b # (not a real key)

Development Environment

These tutorials use the following tools:

  • Python 2
  • requests - (pip install requests)
  • cURL
  • jq - a very useful command line tool for maniuplating and displaying JSON.
  • (optional) geojsonio-cli - quickly view geometries in geojson.io

Most examples pipe the JSON api output to jq and filter for a specific field. You may want to also remove the jq filter to familarize yourelf with the complete API objects.

About

planet labs api tutorial