gpt4 book ai didi

r - ggmap 400 错误请求

转载 作者:行者123 更新时间:2023-12-02 13:23:02 25 4
gpt4 key购买 nike

我以前用过这个,而且一直有效:

library("ggmap")
newmap2<-get_openstreetmap(bbox = c(left = -71.2612362452596,
bottom = 42.3308503846824, right = -71.0475647202879,
top = 42.4560226746649), scale=80000)

现在,我只能得到以下错误消息:

在 download.file(url, destfile = destfile, Quiet = !messaging, mode = "wb") 中:URL“http://tile.openstreetmap.org/cgi-bin/export?bbox=-71.2612362452596,42.3308503846824,-71.0475647202879,42.4560226746649&scale=80000&format=png”:状态为“400 错误请求”

我使用了 ggmap v.2.6.1(来自 CRAN)和 2.7(来自 GITHUB)包。任何帮助表示赞赏。G

最佳答案

该过程似乎非常消耗资源,这就是代码不起作用的原因。阅读此处的讨论:更新链接:https://help.openstreetmap.org/questions/25637/i-am-receiving-a-blank-page-http11-400-bad-request-after-requesting-a-data-export

引用链接:

Background: The export feature needs much processing power, which our servers are short of (just donated resources!). It could be that it works during a low load time

我使用“google”作为 map 源尝试了相同的位置边界框,它起作用了:

newmap4 <- get_map(location = c(-71.2612362452596,42.3308503846824
,-71.0475647202879,42.4560226746649), source = 'google')

关于r - ggmap 400 错误请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41526370/

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