<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## 根據坐標查天氣(停售) ![](https://img.kancloud.cn/39/ad/39adaf227b128836bf06dfc400e855b7_236x239.png =x120) > 通過坐標查詢對應坐標區域信息,再根據區域查詢對應的天氣情況。使用場景:手機端通過gps定位查詢天氣。 ## 接口費用( [點擊購買](https://market.topthink.com/product/125)) > 最低 0.0003元/次 ## 接口調用([調用須知](https://docs.topthink.com/think-api/1835086)) ### 請求地址 ``` GET https://api.topthink.com/weather/coords ``` ### 請求參數 | 參數名稱 | 類型 | 必須 | 描述 | | --- | --- | --- | --- | | appCode| string|是|用戶授權碼,參考[API調用](https://docs.topthink.com/think-api/1835086) | | from | String | 是 | 輸入的坐標類型: 1:標準GPS設備獲取的角度坐標,國際標準,WGS84坐標系; 2:GPS獲取的米制坐標、sogou地圖所用坐標; 3:google地圖、高徳、soso地圖、aliyun地圖、mapabc地圖和amap地圖所用坐標,也稱為火星坐標系GCJ02。 4:3中列表地圖坐標對應的米制坐標 5:百度地圖采用的經緯度坐標,也稱為Bd09坐標系。 6:百度地圖采用的米制坐標 7:mapbar地圖坐標; 8:51地圖坐標 | | lng | String | 是 | 經度值 | | lat | String | 是 | 緯度值 | | needMoreDay | String | 否 | 是否需要返回7天數據中的后4天。1為返回,0為不返回。 | | needIndex | String | 否 | 是否需要返回指數數據,比如穿衣指數、紫外線指數等。1為返回,0為不返回。 | | needHourData | String | 否 | 是否需要每小時數據的累積數組。由于本系統是半小時刷一次實時狀態, 因此實時數組最大長度為48。每天0點長度初始化為0. 1為需要 0為不 | | need3HourForcast | String | 否 | 是否需要當天每3/6/8小時一次的天氣預報列表。1為需要,0為不需要。注意f1是3小時間隔,但f2到f7的間隔可能是6或8小時。| | needAlarm | String | 否 | 是否需要天氣預警。1為需要,0為不需要。 | ### 返回`data`參數 見返回示例 ## SDK調用 ``` $client = new Client("YourAppCode"); $result = $client->weatherCoords() ->withFrom(5) ->withLng('116.2278') ->withLat('40.242266') ->request(); dump($result); ``` 返回結果示例: ``` { "code": 0, "message": "成功", "data":{ "cityInfo": { "c0":"110114", "c1": "101010700", "c10": "3", "c11": "010", "c12": "102200", "c15": "80", "c16": "AZ9010", "c17": "+8", "c2": "changping", "c3": "昌平", "c4": "beijing", "c5": "北京", "c6": "beijing", "c7": "北京", "c8": "china", "c9": "中國", "latitude": 40.206, "longitude": 116.165 }, "now": { "aqi": "71", "aqiDetail": { "aqi": "71", "area": "北京", "area_code": "beijing", "co": "0.817", "no2": "52", "o3": "33", "o3_8h": "9", "pm10": "56", "pm2_5": "51", "primary_pollutant": "顆粒物(PM2.5)", "quality": "良", "so2": "3" }, "sd": "70%", "temperature": "15", "temperature_time": "18:30", "weather": "晴", "weather_pic": "http://appimg.showapi.com/images/weather/icon/day/00.png", "wind_direction": "北風", "wind_power": "1級" }, "f1": { "air_press": "1008 hPa", "day": "20151023", "day_air_temperature": "18", "day_weather": "晴", "day_weather_pic": "http://app1.showapi.com/weather/icon/day/00.png", "day_wind_direction": "無持續風向", "day_wind_power": "微風<10m/h", "jiangshui": "3%", "night_air_temperature": "9", "night_weather": "晴", "night_weather_pic": "http://app1.showapi.com/weather/icon/night/00.png", "night_wind_direction": "無持續風向", "night_wind_power": "微風<10m/h", "sun_begin_end": "06:35|17:23", "weekday": 5, "ziwaixian": "中等", "index": { "beauty": { "desc": "請選用中性保濕型霜類化妝品。", "title": "保濕" }, "clothes": { "desc": "建議穿薄外套或牛仔褲等服裝。", "title": "較舒適" }, "cold": { "desc": "晝夜溫差大,易感冒。", "title": "易發" }, "comfort": { "desc": "白天不冷不熱,風力不大。", "title": "舒適" }, "glass": { "desc": "白天根據戶外光線情況佩戴太陽鏡", "title": "需要" }, "sports": { "desc": "戶外運動請注意防曬。", "title": "較適宜" }, "travel": { "desc": "天氣較好,絲毫不會影響您出行的心情。", "title": "適宜" }, "uv": { "desc": "輻射較弱,涂擦SPF12-15、PA+護膚品。", "title": "弱" }, "wash_car": { "desc": "無雨且風力較小,易保持清潔度。", "title": "較適宜" } }, "alarmList": [ { "city": "", "issueContent": "大風藍色預警:預計23日23時到24日08時:大連、錦州、營口、盤錦、葫蘆島地區陸地偏北風6級,陣風7級;渤海、渤海海峽、黃海北部偏北風7級,陣風8級。大連、丹東、錦州、營口、盤錦、葫蘆島附近海域和航線將受影響,請注意防范。省氣象災害預警中心10月23日16時35分發布", "issueTime": "2015-10-23 16:40:00", "province": "遼寧省", "signalLevel": "藍色", "signalType": "大風" } ], "3hourForcast": [ { "hour": "20時-23時 ", "temperature": "12℃/10℃", "weather": "晴", "weather_pic": "http://app1.showapi.com/weather/icon/night/00.png", "wind_direction": "無持續風向", "wind_power": "微風" }, { "hour": "23時-02時 ", "temperature": "10℃/9℃", "weather": "晴", "weather_pic": "http://app1.showapi.com/weather/icon/night/00.png", "wind_direction": "無持續風向", "wind_power": "微風" }, { "hour": "02時-05時 ", "temperature": "10℃/9℃", "weather": "晴", "weather_pic": "http://app1.showapi.com/weather/icon/night/00.png", "wind_direction": "無持續風向", "wind_power": "微風" }, { "hour": "05時-08時 ", "temperature": "13℃/10℃", "weather": "晴", "weather_pic": "http://app1.showapi.com/weather/icon/day/00.png", "wind_direction": "無持續風向", "wind_power": "微風" } ] }, "f1": { "air_press": "1008 hPa", "day": "20151023", "day_air_temperature": "18", "day_weather": "晴", "day_weather_pic": "http://app1.showapi.com/weather/icon/day/00.png", "day_wind_direction": "無持續風向", "day_wind_power": "微風<10m/h", "jiangshui": "3%", "night_air_temperature": "9", "night_weather": "晴", "night_weather_pic": "http://app1.showapi.com/weather/icon/night/00.png", "night_wind_direction": "無持續風向", "night_wind_power": "微風<10m/h", "sun_begin_end": "06:35|17:23", "weekday": 5, "ziwaixian": "中等", "index": { "beauty": { "desc": "請選用中性保濕型霜類化妝品。", "title": "保濕" }, "clothes": { "desc": "建議穿薄外套或牛仔褲等服裝。", "title": "較舒適" }, "cold": { "desc": "晝夜溫差大,易感冒。", "title": "易發" }, "comfort": { "desc": "白天不冷不熱,風力不大。", "title": "舒適" }, "glass": { "desc": "白天根據戶外光線情況佩戴太陽鏡", "title": "需要" }, "sports": { "desc": "戶外運動請注意防曬。", "title": "較適宜" }, "travel": { "desc": "天氣較好,絲毫不會影響您出行的心情。", "title": "適宜" }, "uv": { "desc": "輻射較弱,涂擦SPF12-15、PA+護膚品。", "title": "弱" }, "wash_car": { "desc": "無雨且風力較小,易保持清潔度。", "title": "較適宜" } }, "alarmList": [ { "city": "", "issueContent": "大風藍色預警:預計23日23時到24日08時:大連、錦州、營口、盤錦、葫蘆島地區陸地偏北風6級,陣風7級;渤海、渤海海峽、黃海北部偏北風7級,陣風8級。大連、丹東、錦州、營口、盤錦、葫蘆島附近海域和航線將受影響,請注意防范。省氣象災害預警中心10月23日16時35分發布", "issueTime": "2015-10-23 16:40:00", "province": "遼寧省", "signalLevel": "藍色", "signalType": "大風" } ], "3hourForcast": [ { "hour": "20時-23時 ", "temperature": "12℃/10℃", "weather": "晴", "weather_pic": "http://app1.showapi.com/weather/icon/night/00.png", "wind_direction": "無持續風向", "wind_power": "微風" }, { "hour": "23時-02時 ", "temperature": "10℃/9℃", "weather": "晴", "weather_pic": "http://app1.showapi.com/weather/icon/night/00.png", "wind_direction": "無持續風向", "wind_power": "微風" }, { "hour": "02時-05時 ", "temperature": "10℃/9℃", "weather": "晴", "weather_pic": "http://app1.showapi.com/weather/icon/night/00.png", "wind_direction": "無持續風向", "wind_power": "微風" }, { "hour": "05時-08時 ", "temperature": "13℃/10℃", "weather": "晴", "weather_pic": "http://app1.showapi.com/weather/icon/day/00.png", "wind_direction": "無持續風向", "wind_power": "微風" } ] }, "hourDataList": [ { "aqi": "53", "aqiDetail": {}, "sd": "85%", "temperature": "9", "temperature_time": "00:00", "weather": "多云", "weather_pic": "http://appimg.showapi.com/images/weather/icon/night/01.png", "wind_direction": "北風", "wind_power": "1級" }, { "aqi": "53", "aqiDetail": {}, "sd": "81%", "temperature": "10", "temperature_time": "00:30", "weather": "多云", "weather_pic": "http://appimg.showapi.com/images/weather/icon/night/01.png", "wind_direction": "北風", "wind_power": "1級" } ], } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看