Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix url
  • Loading branch information
charcey committed Jul 29, 2025
commit 31cbf825d243b12c2f51798c050666064e0ab314
2 changes: 1 addition & 1 deletion planet/cli/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ def request_pv(var_type, var_id, geometry, start_time, end_time, pretty):
more details.
"""
res = subscription_request.planetary_variable_source(
var_type,
var_id,
geometry,
start_time,
var_type=var_type,
end_time=end_time,
)
echo_json(res, pretty)
Expand Down
2 changes: 1 addition & 1 deletion planet/clients/destinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from ..constants import PLANET_BASE_URL


BASE_URL = f'{PLANET_BASE_URL}/public/destinations/v1/'
BASE_URL = f'{PLANET_BASE_URL}/destinations/v1/'

LOGGER = logging.getLogger()

Expand Down
8 changes: 4 additions & 4 deletions planet/subscription_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ def catalog_source(


def planetary_variable_source(
var_type: Optional[str],
var_id: str,
geometry: Union[dict, str],
start_time: datetime,
var_type: Optional[str] = None,
end_time: Optional[datetime] = None,
) -> dict:
"""Construct a Planetary Variable subscription source.
Expand All @@ -297,16 +297,16 @@ def planetary_variable_source(
Note: this function does not validate variable types and ids.

Parameters:
var_type: Planetary Variable type. See documentation for all
available types. Used to be a required parameter but
is now optional and can be 'None'.
var_id: A Planetary Variable ID. See documenation for all
available IDs.
geometry: The area of interest of the subscription that will be
used to determine matches. May be a geojson-like dict or a
Features API geometry reference (string)
start_time: The start time of the subscription. This time can be
in the past or future.
var_type: Planetary Variable type. See documentation for all
available types. Used to be a required parameter but
is now optional and can be 'None'.
end_time: The end time of the subscription. This time can be in
the past or future, and must be after the start_time.

Expand Down
Loading