Azure Map weather service for china

LIU Xingqiang 1 Reputation point
2021-06-16T03:28:55.893+00:00

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
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
737 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 18,686 Reputation points Microsoft Employee
    2021-06-16T13:42:36.93+00:00

    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=

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.