Download the PHP package stormgeo/advisorcore without Composer
On this page you can find all versions of the php package stormgeo/advisorcore. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package advisorcore
PHP SDK
Advisor Software Development Kit for PHP.
Contents
- PHP SDK
- How to get your token
- Contents
- Installation
- Routes
- Examples
- Chart:
- Climatology:
- Current Weather:
- Forecast:
- Monitoring:
- Observed:
- Stations:
- Plan Information:
- Pmtiles:
- Schema/Parameter:
- Static Map:
- Storage:
- Tms (Tiles Map Server):
- Headers Configuration
- Response Format
- Payload Types
- WeatherPayload
- StationPayload
- StationsLastDataPayload
- ClimatologyPayload
- CurrentWeatherPayload
- RadiusPayload
- GeometryPayload
- LightningLitePayload
- PmtilesPayload
- TmsPayload
- PlanInfoPayload
- PlanLocalePayload
- RequestDetailsPayload
- StorageListPayload
- StorageDownloadPayload
-
StaticMapPayload
Installation
To install this package, use the following command:
Make sure you're using php 7 or higher. Using earlier php versions may result in unexpected behavior or incompatibilities.
Routes
First you need to import the SDK on your application and instancy the AdvisorCore class setting up your access token and needed configurations:
Examples
Chart:
Climatology:
Current Weather:
Forecast:
Monitoring:
Observed:
Stations:
Plan Information:
Schema/Parameter:
Static Map:
Storage:
Tms (Tiles Map Server):
Pmtiles:
Headers Configuration
You can also set headers to translate the error descriptions or to receive the response in a different format type. This functionality is only available for some routes, consult the API documentation to find out which routes have this functionality.
Available languages:
- en-US (default)
- pt-BR
- es-ES
Available response types:
- application/json (default)
- application/xml
- text/csv
Example:
Response Format
All the methods returns the same pattern:
Payload Types
WeatherPayload
- localeId: string
- stationId: string
- latitude: float
- longitude: float
- timezone: int
- variables: array
- startDate: string
- endDate: string
StationPayload
- stationId: string
- layer: string
- timezone: int
- variables: array
- startDate: string
- endDate: string
StationsLastDataPayload
- stationIds: array
(optional) - variables: array
(optional)
ClimatologyPayload
- localeId: string
- stationId: string
- latitude: float
- longitude: float
- variables: array
CurrentWeatherPayload
- localeId: string
- stationId: string
- latitude: float
- longitude: float
- timezone: int
- variables: array
RadiusPayload
- localeId: string
- stationId: string
- latitude: float
- longitude: float
- startDate: string
- endDate: string
- radius: int
GeometryPayload
- startDate: string
- endDate: string
- radius: int
- geometry: string
LightningLitePayload
- startDate: string
- endDate: string
- radius: int
- geometry: string
- page: int
- pageSize: int
- sources: array
TmsPayload
- server: string
- mode: string
- variable: string
- aggregation: string
- x: int
- y: int
- z: int
- istep: string
- fstep: string
- timezone: int
PmtilesPayload
- mode: string
- model: string
- aggregation: string
- variable: string
- istep: string
- fstep: string
- maxZoom: int
- timezone: int
- cmap: string
- dynamicElevation: string
- dynamicType: string
- dynamicVariable: string
PlanInfoPayload
- timezone: int
PlanLocalePayload
- localeId: int
- stationId: string
- latitude: string
- longitude: string
RequestDetailsPayload
- page: int
- pageSize: int
- path: string
- status: string
- startDate: string
- endDate: string
StorageListPayload
- page: int
- pageSize: int
- startDate: string
- endDate: string
- fileName: string
- fileExtension: string
- fileTypes: string[]
StorageDownloadPayload
- fileName: string
- accessKey: string
StaticMapPayload
- startate: string
- endDate: string
- aggregation: string
- model: string
- lonmin: float
- latmin: float
- lonmax: float
- latmax: float
- dpi: int
- title: bool
- titlevariable: string
- hours: int
- type: string
- category: string
- variable: string