如何使用Google Map API获取当前位置的天气预报? [英] How to get weather forecast for current location using Google Map API?.

查看:136
本文介绍了如何使用Google Map API获取当前位置的天气预报?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Google Map API获取当前位置的天气预报。



获取当前位置我使用的是HTML 5 Geolocation但我无法获得天气预报对于页面加载上的特定(当前)位置。 Google Weather API会绑定地图中的所有天气。我只需要当前的位置。请帮我看看..谢谢..

解决方案

使用Google Maps API,您只能将WeatherLayer和CloudLayer放到地图上。您无法直接检索特定位置的天气值。有许多其他Weather API可用于提供该功能。请参阅 http://superdevresources.com/weather-forecast-api-for-developing-apps/ [ ^ ]列表。

How to get weather forecast for current location using Google Map API.

For getting Current Location I am using HTML 5 Geolocation but I am unable to get Weather forecast for a particular(Current) Location on the Page Load. Google Weather API binds all the weather in Map. I need for current Location alone. Please help me to find out.. Thanks..

解决方案

Using Google Maps API, you can only get the WeatherLayer and CloudLayer onto the map. You cannot retrieve weather values for a particular location directly. There are a lot of other Weather APIs available that provide that functionality. See http://superdevresources.com/weather-forecast-api-for-developing-apps/[^] for a nice list.


这篇关于如何使用Google Map API获取当前位置的天气预报?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆