Mappls SDK enables the developer to access current weather conditions around India with below list paramenters:
- Air quality index
- Temperature
- Humidity
- Wind
- Visibility
try{
const weatherResponse = await MapplsGL.RestApi.weather(params);
//Do something with result
}catch(e){
//error logs
console.log(e);
}
location (Double, Double)
: Location of the place.
tempUnit (String)
: Unit of temperature. Below are the available value:- WeatherCriteria.UNIT_CELSIUS: for centigrate(°C)
- WeatherCriteria.UNIT_FARENHEIT: for farenheit (F)
theme (String)
: This parameter is used to define the theme of icon. Below are the available value:- WeatherCriteria.THEME_LIGHT (Default)
- WeatherCriteria.THEME_DARK
size (String )
: This parameter is used to define the size of icon. Below are the available value:- WeatherCriteria.SIZE_36PX (Default)
- WeatherCriteria.SIZE_24PX
unitType (String)
: This parameter defines the unit type on the basis of which weather forecast information is sought for. Below are the available value:- WeatherCriteria.UNIT_TYPE_DAY
- WeatherCriteria.UNIT_TYPE_HOUR
unit (Integer)
: This parameter is the value for which forecast information is sought for. Valid values are:- For Days
1
5
10
- For Hours
1
24
- For Days
- 200: To denote a successful API call.
- 204: To denote the API was a success but no results we’re found.
- 400: Bad Request, User made an error while creating a valid request.
- 401: Unauthorized, Developer’s key is not allowed to send a request with restricted parameters.
- 403: Forbidden, Developer’s key has hit its daily/hourly limit.
- 500: Internal Server Error, the request caused an error in our systems.
- 503: Service Unavailable, during our maintenance break or server downtimes.
- 200: Success.
- 204: No matches we’re found for the provided query.
- 400: Something’s just not right with the request.
- 401: Access Denied.
- 403: Services for this key has been suspended due to daily/hourly transactions limit.
- 500: Something went wrong.
- 503: Maintenance Break.
data
(WeatherData
)
-
temperature
(WeatherTemperature
)value
(Double
): Temperature value.For eg:31.3unit
(String
): Temperature unit.For eg:"°C"
-
weatherCondition
(WeatherCondition
): Weather condition infoweatherId
(Integer
): Id of Weather condition. For eg:5weatherText
(String
): Weather condition info text.For eg:"Hazy sunshine"weatherDescription
(String
): Description of weather For eg: "Total cloud cover between 20%-60%"weatherIcon
(String
): Weather condition icon url.realFeelWeatherText
(String
):Description of weather For eg:"Feels Like 41.0 °C"
-
airQuality
(AirQuality
): Air Quality infoairQualityIndex
(Integer
): Give the value of air quality index. For eg:104airQualityIndexText
(String
): Description for AQI given. For eg: "Unhealthy for Sensitive Groups"airQualityIndexUnit
(String
): Gives the values of airquality index unit. For eg: "PM2.5"
-
humidity
(Humidity
): Humidity inforelHumidity
(Integer
): Provides the value for humidity. For Eg: 65indoorRelHumidity
(Integer
): Provide value for indoor relative humidity . For eg: 65
-
wind
(Wind
): Wind InfowindSpeed
(Double
):For Eg:12.8windSpeedUnit
(String
):For Eg: "KM/H"windAngle
(Integer
):For Eg: 338windAngleUnit
(String
): For Eg: "NNW"
-
visibility
(WeatherVisibility
): Visibility Infovalue
(Integer
): Visibilty value. For eg: 2unit
(String
): Unit of Visibilty value. For eg: "KM"
-
forecastData
(List<ForecastData
>): This feature is available for your solutions to get forecast details. The API is able to populate current weather condition andforecast
of1
,5
&10
days (depending on input)or hours based forecast for1
hr and24
hrs.
-
hour
(String
): Value Returned when request is made for hours. For eg: "26/09/2022 18:00", -
date
(String
): Value Returned when request is made for multiple day/days. For eg: "28/09/2022", -
day
(String
): Represents day name when request is made for multiple day/days. For eg: "Wednesday". -
temperature
(WeatherTemperature
):minTemperature
(Double
): Minimum temperature value for the day/night.For eg:31.3minTemperatureUnit
(String
): Minimum Temperature Unit. For eg:"°C"maxTemperature
(Double
): Maximum Temperature value for the day/night.For eg:31.3maxTemperatureUnit
(String
): Maximum Temperature Unit. For eg:"°C"
-
weatherCondition
(WeatherCondition
)weatherIdDay
(Integer
): Shows the ID of the day For Eg: 1weatherTextDay
(String
): Shows the forcast description for the day For Eg: "Sunny"weatherIconDay
(String
): Shows the forcast icon for day For Eg: "1.png"weatherIdNight
(Integer
): Shows the ID of the night For Eg: 33weatherTextNight
(String
): Shows the forcast description for the night For Eg: "Clear"weatherIconNight
(String
): Shows the forcast icon for the night For Eg: "33.png"
For any queries and support, please contact:
Email us at [email protected]Support Need support? contact us!