util

command
v0.0.0-...-1854f0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 15 Imported by: 0

README

UTIL: update METAR stations

updateStations.go updates the METAR stations list.

It combines lists from aviationweather.gov and ourairports.com web sites.

Change the dataFile variable to the actual path where your ad_list.go file lives, typically path/to/the/sources/data/ad_list.go. The program will insert the updated data into ad_list.go

const (
	// Change dataFile path to where this ad_list.go lives
	dataFile       string = "/home/jeanluc/golang/src/jeanluc/metar/data/ad_list.go"
	noaaURL        string = "https://www.aviationweather.gov/docs/metar/stations.txt"
	ourairportsURL string = "https://ourairports.com/data/airports.csv"
)

Once updated, you will need to recompile or run metar.go to hardcode the updated stations into the metar binary.

Warning: do not change the var declaration var AdList in ad_list.go as it works as a marker for this program.

Documentation

Overview

Warning: do not change the var declaration `var AdList` in ad_list.go as it works as a marker for this program.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL