question

LIUXingqiang-4154 avatar image
0 Votes"
LIUXingqiang-4154 asked rbrundritt answered

Azure Map weather service for china

hello, Azure team

i want to know whether the weather service in Azure Map could be used in china.
currently, if i query the china city's location, seems can not get related weather data through the restful API.
e.g.:
GET https://atlas.microsoft.com/weather/currentConditions/json?api-version=1.0&query=118.641268,35.125679&subscription-key=*

azure-maps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

rbrundritt avatar image
1 Vote"
rbrundritt answered

Your latitude and longitude coordinates are reversed in your query. The docs state

Coordinates of the location for which current conditions information is requested. The applicable query is specified as a comma separated string composed by latitude followed by longitude e.g. "47.641268,-122.125679".

Modifying your query to the following works: https://atlas.microsoft.com/weather/currentConditions/json?api-version=1.0&query=35.125679,118.641268&subscription-key=




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.