GET api/weather/location?appKey={appKey}&postal={postal}&city={city}&state={state}&country={country}&locationKey={locationKey}&latitude={latitude}&longitude={longitude}&language={language}&deviceId={deviceId}

Get Location Key We can choose fields as per our necessity. appKey is mandatory. deviceId is optional. The other parameters are in combinations of either (postal, country) or (city, country) or (latitude, longitude). ex 1: /api/Weather/Location?appkey,postal,country,deviceId ex 2: /api/Weather/Location?appkey,country,city,deviceId ex 3: /api/Weather/Location?appkey,latitude,longitude,deviceId

Request Information

Parameters

TypeNameDescriptionAdditional information
weatherRequest weatherRequest
Appkey and combinations of either (postal, country) or (city, country) or (latitude, longitude).

Define this parameter in the request URI.

string deviceId
The Device Id. This is an optional parameter

Define this parameter in the request URI.

Response Information

Detailed documentation of response type LocationResponse
Status CodeDescription
200 - OKSuccessful.
500 - InternalServerError When Unexpected Error Occurs:
  • UnknownError
400 - BadRequestWhen input parameters are invalid