Preface
With traffic and weather datasets ready, the next step is to link each freeway gantry to its closest weather station using geographic coordinates.
Gantry Locations
Download gantry latitude and longitude from the open data portal.
Matching Algorithm
Combine gantry and station coordinates, then compute distances using a simplified Pythagorean formula—sufficient for short ranges within Taiwan.
|
|
The resulting mapping lets us attach weather features from the nearest station to each gantry for model training.
Summary
This preprocessing step ensures that traffic records can be enriched with corresponding meteorological data.