Constants (GVL)¶
- Attributes:
- qualified_only
- InOut:
- Scope - Name - Type - Initial - Comment - Constant - gc_usiApiKeyLength - USINT- 32 - All API Keys are composed of 32 ASCII characters (representing a HEX Number) - gc_usiMaxLengthCoord - USINT- 16 - Max. length of a string representation of a gps coordinate coefficient - gc_uiMaxUrlLength - UINT- 255 - Max. length of a URL to connect to the API endpoints - gc_usiPostalCodeLength - USINT- 10 - Longest postal codes worldwide: Iran and USA, 10 chars each - gc_usiCountryCodeLength - USINT- 2 - ISO 3166 Country Codes, which must be used here, consist of exactly 2 characters - gc_usiStateCodeLength - USINT- 2 - Always 2 chars long - gc_uiEntryBoundsTableSize - UINT- 49 - Entry bounds for max. 1 current weather data entry + 48 forecast data entries - gc_uiForecastSize - UINT- 48 - Number of forecast entries in the API result - gc_iErrMsgBufferSize - INT- 255 - Max. length of more detailed internal error messages for debugging - gc_sUrlParamBase_Location - STRING- ‘q=’ - — API Params — - gc_sUrlParamBase_ApiKey - STRING- ‘&appid=’ - gc_sUrlParamBase_ZipCode - STRING- ‘zip=’ - gc_sUrlParamBase_Latitude - STRING- ‘lat=’ - gc_sUrlParamBase_Longitude - STRING- ‘&lon=’ - gc_sUrlParam_LimitTo1 - STRING- ‘&limit=1’ - gc_sUrlParam_StandardUnits - STRING- ‘&units=standard’ - gc_sUrlParam_MetricUnits - STRING- ‘&units=metric’ - gc_sUrlParam_ImperialUnits - STRING- ‘&units=imperial’ - gc_sUrlParam_OnlyCurrent - STRING- ‘&exclude=minutely,hourly,daily,alerts’ - gc_sUrlParam_OnlyHourly - STRING- ‘&exclude=current,minutely,daily,alerts’ - gc_sUrlParam_CurAndFore - STRING- ‘&exclude=minutely,daily,alerts’ - gc_sComma - STRING- ‘,’ - — Common characters to reference — - gc_siDefault - SINT- -1 - — Default Attribute Values — REAL and SINT are chosen, because they fit in every other type (for all decimals/integers). Therefore a overflow, or something similar, should not be possible with implicit type conversions. - gc_rDefault - REAL- -1.0 - gc_wsDefault - WSTRING(JSON.GParams.g_diMaxStringSize)- “-” - gc_rDefaultPrecipitation - REAL- 0