雅虎经纬度天气查询 [英] Yahoo Weather Query by Latitude and Longitude

查看:129
本文介绍了雅虎经纬度天气查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Yahoo查询通过经度和纬度获取一些天气数据.但似乎此查询现在不可用.查询如下:

I want to fetch some weather data via latitude and longitude using yahoo query. but it seems this query is not available now. the query is below:

select * from weather.forecast where woeid in (SELECT woeid FROM geo.placefinder WHERE text="{lat},{lon}" and gflags="R")

此查询是否已更改为新查询?还是不存在了?我上次使用这种格式的时间大约是2个月前,效果很好.但现在它无法获取任何数据. YQL控制台的结果如下:

is this query is changed to new one or something? or it didn't exist anymore? last time I use this format was about 2 months ago and it worked well. but now it can't fetch any data. result from YQL console is as below:

{
 "error": {
  "lang": "en-US",
  "description": "Tenant 'query_yahooapis_com' access to 'Resource [tenantName=query_yahooapis_com, type=TABLE, name=geo.placefinder, locatorType=FILE, url=/home/y/share/manhattan/application/tenantBundles/yql_query_yahooapis_com_manhattan_v2/YQL-INF/restdefs/geo.placefinder.xml, useUrl=false]' is denied."
 }
}

我已经进行了一些研究,包括这篇文章:如何获取Yahoo的祸根按位置?

I already make some research, including this post: How to get Yahoo's woeid by location?

是真的,雅虎已经终止了此纬度经度查询以获取天气吗?

Is that true that yahoo already terminate this latitude longitude query for fetching weather?

推荐答案

根据对部分. 我在YQL控制台中尝试过,它似乎可以工作:

According to the latest reply to this answer, you should switch to the table geo.places and remove the gflags="R" part. I tried it in the YQL console and it seems to work:

select * from weather.forecast where woeid in (SELECT woeid FROM geo.places WHERE text="(latitude,longitude)")

这篇关于雅虎经纬度天气查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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