var urls = { "auckland": "http://metservice.com/publicData/inshoreForecastAuckland_Auckland_Onehunga", "bay-of-islands": "http://metservice.com/publicData/inshoreForecastNorthland_Opua", "bay-of-plenty": "http://metservice.com/publicData/inshoreForecastBay-of-Plenty_Tauranga_Whakatane", "coromandel": "http://metservice.com/publicData/inshoreForecastCoromandel_Tauranga", "lake-rotorua": "http://metservice.com/publicData/inshoreForecastLakesLake-Rotorua", "lake-taupo": "http://metservice.com/publicData/inshoreForecastLakesLake-Taupo", "hawke-bay": "http://metservice.com/publicData/inshoreForecastHawke-Bay_Napier", "kapiti": "http://metservice.com/publicData/inshoreForecastKapiti_Karehana-Bay", "mana": "http://metservice.com/publicData/inshoreForecastMana_Karehana-Bay", "wellington": "http://metservice.com/publicData/inshoreForecastWellington_Wellington_Karehana-Bay", "christchurch": "http://metservice.com/publicData/inshoreForecastChristchurch_Lyttelton" } var costal = [ 'plenty', 'abel', 'colville', 'grey', 'brett', 'milford', 'kaipara', 'puysegur', 'raglan', 'foveaux', 'stephens', 'chalmers', 'cook', 'rangitata', 'castlepoint', 'conway', 'portland', 'chatham-islands' ].map(function (e) { urls[e] = 'http://metservice.com/publicData/coastalForecast'+e }) //pressure charts urls.tasman_charts = "http://metservice.com/publicData/tasmanSeaCombinedCharts" urls.pacific_charts = "http://metservice.com/publicData/swPacificChartsCombined" //high seas urls.subtropics = 'http://metservice.com/publicData/oceanicForecastSubtropic' urls.forties = 'http://metservice.com/publicData/oceanicForecastForties' urls.southern = 'http://metservice.com/publicData/oceanicForecastSouthern' urls.pacific = 'http://metservice.com/publicData/oceanicForecastPacific' module.exports = urls