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 nodeJS.
Contents
- PHP SDK
- How to get your token
- Contents
- Installation
- Routes
- Examples
- Chart:
- Climatology:
- Current Weather:
- Forecast:
- Monitoring:
- Observed:
- Plan Information:
- Schema/Parameter:
- Tms (Tiles Map Server):
- Headers Configuration
- Response Format
- Payload Types
- WeatherPayload
- StationPayload
- ClimatologyPayload
- CurrentWeatherPayload
- RadiusPayload
- GeometryPayload
-
TmsPayload
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:
Plan Information:
Schema/Parameter:
Tms (Tiles Map Server):
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: int
- longitude: int
- timezone: int
- variables: array
- startDate: string
- endDate: string
StationPayload
- stationId: string
- layer: string
- variables: array
- startDate: string
- endDate: string
ClimatologyPayload
- localeId: string
- stationId: string
- latitude: int
- longitude: int
- variables: array
CurrentWeatherPayload
- localeId: string
- stationId: string
- latitude: int
- longitude: int
- timezone: int
- variables: array
RadiusPayload
- localeId: string
- stationId: string
- latitude: int
- longitude: int
- startDate: string
- endDate: string
- radius: int
GeometryPayload
- startDate: string
- endDate: string
- radius: int
- geometry: string
TmsPayload
- server: string
- mode: string
- variable: string
- aggregation: string
- x: int
- y: int
- z: int
- istep: string
- fstep: string