Parses URL search params and fills in missing information
- Source:
Methods
(inner) convertCoords()
Converts a coordinate to EPSG:25832 if it looks like a WGS84 coordinate
- Source:
(inner) findClosestYear()
Finds the collection closest to a given year
- Source:
(inner) getYearFromCollectionID()
Returns the year number from a collection ID
- Source:
(inner) sanitizeCoords()
Converts lat/lon or x/y coordinates used in URL to `center` parameter
- Source:
(async, inner) sanitizeParams(searchparams, collections)
Adds or modifies URL searchparams according to various edge cases
Parameters:
Name | Type | Description |
---|---|---|
searchparams |
URL | URL object instance with query string (ie. search parameters). |
collections |
Array | List of collection objects from STAC API JSON reponse. |
- Source: