Skip to content

Commit

Permalink
Merge pull request #93 from Canadian-Geospatial-Platform/stacfilter-fix
Browse files Browse the repository at this point in the history
changed temporal params to begin and end
  • Loading branch information
johnweng001 authored Jun 14, 2023
2 parents 17569fb + bd12a98 commit 767ed34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/search/geosearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ const GeoSearch = (
searchParams.east = boundbox._northEast.lng;
}
if (spatArray.indexOf('TEMPORALEXTENT') > -1) {
searchParams.datetime = `${spatfilters.startDate}|${spatfilters.endDate}`;
searchParams.begin = `${spatfilters.startDate}`;
searchParams.end = `${spatfilters.endDate}`;
}
//aParams.datetime = spatialArray;
} else if (aParams.type_filter) {
Expand Down Expand Up @@ -1421,7 +1422,8 @@ interface SearchParams {
foundational?: 'true';
sort?: string;
stac?: string;
datetime?: string;
begin?: string;
end?: string;
bbox?: string;
}
interface KOSearchParams {
Expand Down

0 comments on commit 767ed34

Please sign in to comment.