Line 11: |
Line 11: |
| [[File:Api-logo.png|link=https://api.canada.ca/en/homepage]] | | [[File:Api-logo.png|link=https://api.canada.ca/en/homepage]] |
| https://api.canada.ca/en/homepage | | https://api.canada.ca/en/homepage |
| + | |
| + | == REST API (Search) == |
| + | Default result format is human-readable HTML. Appending &format=json' or '=xml' to URL behaves as expected. |
| + | Each collection has a unique set of search fields here: |
| + | https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/collections/NAPL |
| + | https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/collections/RCMImageProducts |
| + | https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/collections/Radarsat1 |
| + | |
| + | SPATIAL (e.g. Ottawa) |
| + | <code style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=CATALOG_IMAGE.THE_GEOM_4326%20INTERSECTS%20POLYGON%20((-76.06440000000001%2046.2587,%20-75.9843%2046.2592,%20-75.9843%2046.2261,%20-76.0634%2046.2256,%20-76.06440000000001%2046.2587))&format=json</code> |
| + | |
| + | TEMPORAL (timestamp e.g. 2000 - 2005) |
| + | <code style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=CATALOG_IMAGE.START_DATETIME>'2000-01-01' AND CATALOG_IMAGE.START_DATETIME<'2005-01-01'</code> |
| + | |
| + | CATALOG_IMAGE.PUBLIC_GOOD (boolean e.g. CATALOG_IMAGE.PUBLIC_GOOD) |
| + | <code style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=CATALOG_IMAGE.PUBLIC_GOOD=TRUE</code> |
| + | |
| + | NAPL ROLL / PHOTO (string e.g. A128_0032) |
| + | <code style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=ROLL.ROLL_NUMBER='A128' AND PHOTO.PHOTO_NUMBER='0032</code> |
| | | |
| == OpenSearch API (for RADARSAT-1 and NAPL) == | | == OpenSearch API (for RADARSAT-1 and NAPL) == |