pyufunc.extract_bbox_coordinates#

pyufunc.extract_bbox_coordinates(bbox)#

Extracts bounding box coordinates from a string, tuple, or list.

Parameters:

bbox (str | tuple | list) – Bounding box coordinates in the format “min_latitude, min_longitude, max_latitude, max_longitude” or (min_latitude, min_longitude, max_latitude, max_longitude).

See also

SUMO Documentation: eclipse-sumo/sumo

Example

>>> bbox = (-122.4194, 37.7749, -122.3894, 37.8049)
>>> import pyufunc as pf
>>> pf.extract_bbox_coordinates(bbox)
(37.7749, -122.4194, 37.8049, -122.3894)
Returns:

A tuple containing the coordinates (west, south, east, north).

Return type:

tuple[float, float, float, float]