Rank cities by Clean Air Score
rank_citiesCities with the highest Clean Air Score (cleanest first), optionally within one state. By default only cities with their own record are ranked, so copied records do not crowd the list. Each city is either an own_record (scored from its own data) or a copied_record (the full record of the nearest scored city, named in source_city, source_state and source_distance_miles). A copied_record describes the source city, not measurements taken in the named city. Values are historical annual data, not the current AQI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of cities, default 10, maximum 25. | |
| state | No | Optional two-letter state code. | |
| own_records_only | No | Default true. Set false to include copied records. |