Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-chemla committed Jun 25, 2024
1 parent b4aecc3 commit 826e2de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ Search satellite Imagery Archive on aggregators via their respective APIs (offic
- Cleanup: search-utilities, make each search extends a search object class, polygon aoi be a single feature search param, each geojson feature be a real geojson feature (search input, results)
- Put API search in its own ts module, eventually yield results the way loaders.gl does it
- Use CloudFlare Proxy to avoid bandwidth usage to go up. See the [official doc](https://vercel.com/guides/using-cloudflare-with-vercel) or [here](https://akashrajpurohit.com/blog/how-to-setup-cloudflare-proxy-for-your-website-hosted-on-vercel-or-netlify/)

### Long Term

- Helps order making/deep-links when available (no deep-links for any platform when checked unfortunately): make selection, export requests email with scene IDs, permalinks. Maxar sends post request to https://api.discover.digitalglobe.com/v1/store , head-aerospace is not very clean. EOS has clean permalinks.
- Not really useful: Offer ability to Cancel ongoing request/promise cancellation. Promise resolve will always execute after ky get/post request finally resolves
- Not really useful: [intro-js](https://github.com/usablica/intro.js) or [reactour](https://reactour.vercel.app/) (or react-joyride) guided steps walkthrough/onboarding guides
- Set notification (define aoi and receive weekly notifications, or as soon as result appears). Would require user accounts and db and not be purely client-side.
- Order archive imagery via API (no tasking)

#### Serverless Proxy server - STAC conversion

Expand All @@ -71,14 +78,6 @@ Resources:
- See how to deploy serverless next-js on [azure functions](https://learn.microsoft.com/en-us/azure/static-web-apps/deploy-nextjs-hybrid) or also [here](https://www.erwinsmit.com/nextjs-on-azure-functions/)
- [Vercel Serverless on Vite framework](https://vercel.com/docs/frameworks/vite#serverless-functions)

### Long Term

- Helps order making/deep-links when available (no deep-links for any platform when checked unfortunately): make selection, export requests email with scene IDs, permalinks. Maxar sends post request to https://api.discover.digitalglobe.com/v1/store
, head-aerospace is not very clean. EOS has clean permalinks.
- Order archive imagery via API (no tasking)
- Not really useful: Offer ability to Cancel ongoing request/promise. Promise resolve will always execute after ky get/post request finally resolves
- Not really useful: intro-js or react-joyride guided steps walkthrough

Never

- [SH EO browser](https://apps.sentinel-hub.com/eo-browser) / [SentinelHub](https://www.sentinel-hub.com/develop/api/) not interested in being integrated even via their own api
Expand Down
2 changes: 2 additions & 0 deletions src/archive-apis/search-maxar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import { log } from '../utilities'

const MAXAR_LIMIT = 500
const MAXAR_SEARCH_URL = 'https://api.discover.digitalglobe.com/v1/services/ImageServer/query'
// SecureWatch being sunset and replaced by MGP (free/pro) https://xpress.maxar.com/
//Url with Bearer auth header https://api.maxar.com/discovery/v1/search?collections=ge01,wv02,wv03-vnir&bbox=2.331694939750504,48.84547226270402,2.3702118182411462,48.86031571777056&datetime=2021-08-03T00%3A00%3A00Z%2F2023-08-03T23%3A59%3A59Z&where=eo%3Acloud_cover%20%3C%3D%2020%20and%20view%3Aoff_nadir%20%3C%3D%2030%20and%20view%3Asun_elevation_max%20%3E%3D%200&orderby=datetime%20DESC&limit=50&page=1

// CORS needed to reach maxar api server
const searchMaxar = async (searchSettings, maxarApikey, searchPolygon = null, setters = null, maxarBearerJson = null, maxarNextLinks = null): Promise<any> => {
Expand Down
1 change: 1 addition & 0 deletions src/archive-apis/search-skyfi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { parse as wkt_parse, stringify as wkt_stringify } from 'wellknown'
/* -------------- */
/* SKYFI */
/* -------------- */
// API Docs: https://app.skyfi.com/platform-api/redoc
// App: https://app.skyfi.com/explore
// POST on https://app.skyfi.com/api/archive-available
// Payload: {"clientType":"DESKTOP","fromDate":"2018-12-31T23:00:00.000Z","toDate":"2023-01-24T10:21:44.465Z","maxCloudCoveragePercent":20,"resolutions":["VERY HIGH","HIGH"],"sensors":["DAY","NIGHT","MULTISPECTRAL"],"imageCropping":{"wktString":"POLYGON((-77.05679665567264 38.899388312735795,-77.02040942302703 38.899388312735795,-77.02040942302703 38.92503663542644,-77.05679665567264 38.92503663542644,-77.05679665567264 38.899388312735795))"},"page":0,"pageSize":25}
Expand Down

0 comments on commit 826e2de

Please sign in to comment.