ltmv
Retrieve the latest 10-minute mean visibility readings from Hong Kong automatic weather stations, with data available in JSON or CSV format.
Instructions
Latest 10-minute Mean Visibility (LTMV) API Request
Parameters:
lang: 'en', 'tc', or 'sc' (Language option, default: en)
rformat: 'json' or 'csv' (Response format, default: csv)
Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=LTMV&lang=en&rformat=json
Response Keys (JSON format):
type: Array with data type ["10-minute Visibility"]
fields: Array with field names ["Automatic Weather Station", "Mean Visibility (km)"]
data: Array of arrays with visibility data
legend: Array with station information
Response Keys (CSV format):
Type: Data type line
Header row: Automatic Weather Station,Mean Visibility (km)
Data rows: Actual visibility data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language for the response: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese) | en |
| rformat | No | Output format: 'json' or 'csv' (default: 'csv') | csv |