here_location_services.config.dest_weather_config module

This module defines all the configs which will be required as inputs to Destination Weather API.

class here_location_services.config.dest_weather_config.DestWeatherProduct(**kwargs)[source]

Bases: here_location_services.config.base_config.Bunch

A class to define constant attributes for product parameter identifying the

type of report to obtain.

observation: current weather conditions from the eight closest locations to the specified location

forecast_7days: morning, afternoon, evening and night weather forecasts for the next seven days.

forecast_7days_simple: daily weather forecasts for the next seven days

forecast_hourly: hourly weather forecasts for the next seven days

alerts: forecasted weather alerts for the next 24 hours

nws_alerts: all active watches and warnings for the US and Canada

here_location_services.config.dest_weather_config.DEST_WEATHER_PRODUCT = {'alerts': 'alerts', 'forecast7days': 'forecast7days', 'forecast7daysSimple': 'forecast7daysSimple', 'forecastHourly': 'forecastHourly', 'nwsAlerts': 'nwsAlerts', 'observation': 'observation'}

Use this config for products` of Destination Weather API. Example: for forecastHourly product use DEST_WEATHER_PRODUCT.forecastHourly.

class here_location_services.config.dest_weather_config.DestWeatherUnits(**kwargs)[source]

Bases: here_location_services.config.base_config.Bunch

A class to define constant attributes for units parameter identifying

units of measurement used.

metric: Follow metric system of measurements. Default.

imperial: Follow imperial system of measurements

here_location_services.config.dest_weather_config.DEST_WEATHER_UNITS = {'imperial': 'imperial', 'metric': 'metric'}

Use this config for units` of Destination Weather API. Example: for metric units use DEST_WEATHER_UNITS.metric.

class here_location_services.config.dest_weather_config.WeatherSeverity(**kwargs)[source]

Bases: here_location_services.config.base_config.Bunch

A class to define the severity of the weather event

insignificant: Event doesn’t have significance by nature

no_alerts: There are no alerts for the location

minor: Minor Severity, the event is potentially dangerous but not usual

medium: Medium Severity, the event is dangerous

high: High Severity, The event is very dangerous

emergency: Emergency. Take immediate action to protect life.

here_location_services.config.dest_weather_config.WEATHER_SEVERITY = {'emergency': 5, 'high': 4, 'insignificant': 0, 'medium': 3, 'minor': 2, 'no_alerts': 1}

Use this config for weather_severity` of get weather alerts endpoint. Example: for high severity events use WEATHER_SEVERITY.high.

class here_location_services.config.dest_weather_config.WeatherType(**kwargs)[source]

Bases: here_location_services.config.base_config.Bunch

A class to define the type of the weather event

here_location_services.config.dest_weather_config.WEATHER_TYPE = {'air_quality': 9, 'avalanche': 11, 'civil_danger': 24, 'coastal_event': 23, 'dust_storm': 13, 'earthquake': 14, 'evacuation': 25, 'extremely_high_temperature': 1, 'extremely_low_temperature': 2, 'fire_danger': 15, 'flood': 16, 'fog': 3, 'gigh_uv_index': 18, 'hazardous_material': 26, 'high_waves': 17, 'ice': 4, 'ice_in_waterway': 22, 'low_water': 19, 'radiological_hazard': 27, 'rain': 5, 'shelter_in_place': 28, 'smoke': 20, 'snow': 6, 'thunderstorm': 7, 'tsunami': 12, 'volcanic_ashfall': 10, 'volcano': 21, 'warning': 29, 'wind': 8}

Use this config for weather_type` of get weather alerts endpoint of Destination Weather API. Example: for fog weather type use WEATHER_TYPE.fog.