batch_interpret_weather_codes
Interpret multiple WMO weather codes in a single batch call to efficiently process weather data for multiple locations. Get icon URLs and interpretations with one request instead of separate calls.
Instructions
Interpret multiple WMO weather codes in a single call.
Instead of calling interpret_weather_code multiple times (one per code), pass all codes at once. This is much more efficient when processing weather data for multiple locations.
Args: weather_codes: Comma-separated WMO weather code integers (0-99). Example: "3,51,61,95" or "0, 3, 45, 80"
Returns: BatchWeatherCodeResponse: Pydantic model with: - results: List of interpretations in same order as input (each includes an icon URL) - total_codes: Number of codes processed
Map icon tip:
Each result includes an icon field — a PNG URL for the weather condition.
When building a GeoJSON FeatureCollection for a map, put each result's icon
in the corresponding feature's properties.icon so the map shows weather
icons instead of default blue pins.
Example: # After batch forecast returns codes for multiple cities: result = await batch_interpret_weather_codes("3,51,61,95") # Returns all interpretations in one call instead of 4 separate calls
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weather_codes | Yes |