Skip to main content
< All Topics
Print

Weather Underground PWS Integration

id: weather-underground

title: “Weather Underground PWS Integration”

version: 1.0

last_updated: 2026-02-11

api_name: “Weather Underground Personal Weather Stations”

priority: P1

phase: 1

keywords: [weather, PWS, station-discovery]

endpoint: “https://api.weather.com/v2/pws/observations/current”

authentication: API key required

Weather Underground PWS Integration

Overview

Purpose: Discover nearest personal weather stations to user location.

Existing: Single station (KGAATLAN1017) hardcoded
Enhancement: Station discovery by coordinates


Station Discovery

\\\`swift class WeatherStationDiscoveryService { func findNearestStations(latitude: Double, longitude: Double, limit: Int = 5) async throws -> [WeatherStation] { // Query WU API for stations near coordinates let url = “https://api.weather.com/v3/location/near?geocode=\(latitude),\(longitude)&product=pws&format=json”

let response = try await URLSession.shared.data(from: URL(string: url)!) return try parseStations(response) } } \\\`


Status: Enhancement for Phase 1
Owner: Backend Developer
Cost: Uses existing WU API key

Table of Contents