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
productparameter identifying the type of report to obtain.
observation: current weather conditions from the eight closest locations to the specified locationforecast_7days: morning, afternoon, evening and night weather forecasts for the next seven days.forecast_7days_simple: daily weather forecasts for the next seven daysforecast_hourly: hourly weather forecasts for the next seven daysalerts: forecasted weather alerts for the next 24 hoursnws_alerts: all active watches and warnings for the US and Canada- A class to define constant attributes for
- 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: forforecastHourlyproduct useDEST_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
unitsparameter identifying units of measurement used.
metric: Follow metric system of measurements. Default.imperial: Follow imperial system of measurements- A class to define constant attributes for
- here_location_services.config.dest_weather_config.DEST_WEATHER_UNITS = {'imperial': 'imperial', 'metric': 'metric'}
Use this config for
units`of Destination Weather API. Example: formetricunits useDEST_WEATHER_UNITS.metric.
- class here_location_services.config.dest_weather_config.WeatherSeverity(**kwargs)[source]
Bases:
here_location_services.config.base_config.BunchA class to define the severity of the weather event
insignificant: Event doesn’t have significance by natureno_alerts: There are no alerts for the locationminor: Minor Severity, the event is potentially dangerous but not usualmedium: Medium Severity, the event is dangeroushigh: High Severity, The event is very dangerousemergency: 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: forhigh severityevents useWEATHER_SEVERITY.high.
- class here_location_services.config.dest_weather_config.WeatherType(**kwargs)[source]
Bases:
here_location_services.config.base_config.BunchA 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: forfogweather type useWEATHER_TYPE.fog.