gpt4 book ai didi

yql - 按纬度和经度查询雅虎天气

转载 作者:行者123 更新时间:2023-12-03 19:29:03 30 4
gpt4 key购买 nike

我想使用雅虎查询通过纬度和经度获取一些天气数据。但现在这个查询似乎不可用。查询如下:

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

这个查询是改为新的还是什么?或者它已经不存在了?我上次使用这种格式是在大约 2 个月前,而且效果很好。但现在它无法获取任何数据。 YQL控制台的结果如下:
{
"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."
}
}

我已经做了一些研究,包括这篇文章: How to get Yahoo's woeid by location?

雅虎是否已经终止了用于获取天气的纬度经度查询?

最佳答案

根据最新回复this answer ,你应该切换到表 geo.places并删除 gflags="R"部分。
我在 YQL 控制台中尝试过,它似乎有效:

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

关于yql - 按纬度和经度查询雅虎天气,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35220361/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com