Closed HughParsonage closed 7 years ago
I believe the patch diff failure spurious. Subsequent commit reduced total lines, even though coverage has increased. Coverage miss in current_weather
is only achieved if the server is down (i.e. can't be reproduced).
Thanks @HughParsonage
Merged.
Function now accepts
latlon
argument, returningcurrent_weather
of nearest station (in the internal table) with a message. Useshaversine_distance
(as internal function) to calculate the distance to avoid dependencies on packages. Slightly less accurate but fine for this purpose.Outstanding issues that are not in scope for this PR:
names()
may need to be rethought.