Top Level Namespace

Defined Under Namespace

Modules: WeatherPup

Constant Summary collapse

VALID_US_ZIP_CODES =

Read in a YAML file that contains all the valid US zip codes – provided by www.aggdata.com

YAML.load(File.read("./lib/weatherpup/valid_us_zip_codes.yml"))
APPID =
"e4ece4d3cbcfdd05d69889c6753d57da"
NORTH_RANGE_PART1 =

These are the ranges that will allow me to figure out the direction indicator is when I get back information from the weather API for the wind direction in degrees

338..360
NORTH_RANGE_PART2 =
0..22
NORTHEAST_RANGE =
23..67
EAST_RANGE =
68..112
SOUTHEAST_RANGE =
113..157
SOUTH_RANGE =
158..202
SOUTHWEST_RANGE =
203..247
WEST_RANGE =
248..292
NORTHWEST_RANGE =
293..337
VALID_LAT_RANGE =

These are the ranges that will allow me to validate if a lat or long value is valid

-90.0..90.0
VALID_LONG_RANGE =
-180.0..180.0