Skip to content

Commit

Permalink
changed temporal params to begin and end
Browse files Browse the repository at this point in the history
  • Loading branch information
johnweng001 committed Jun 14, 2023
1 parent 34c0510 commit bd12a98
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 bd12a98

Please sign in to comment.