Validate an iterable with lat/lon coordinate pairs.
(locations: TypeLine)
| 127 | |
| 128 | |
| 129 | def validate_locations(locations: TypeLine) -> List[List[float]]: |
| 130 | """Validate an iterable with lat/lon coordinate pairs.""" |
| 131 | locations = if_pandas_df_convert_to_numpy(locations) |
| 132 | _validate_locations_basics(locations) |
| 133 | return [validate_location(coord_pair) for coord_pair in locations] |
| 134 | |
| 135 | |
| 136 | def validate_multi_locations( |