[問題] 畫城市地圖出現OVER QUERY LIMIT情況

作者: ktjoe (ktjoe)   2018-04-06 00:08:14
朋友沒有ptt帳號 代朋友詢問
因為朋友剛接觸R不久
希望板上高手能用好理解的方式為他解惑
先謝謝大家了!
=====================
[問題] 畫城市地圖出現OVER QUERY LIMIT情況
[問題類型]:
程式諮詢
[軟體熟悉度]:
入門
[問題敘述]:
想畫香港地圖但是出現OVER QUERY LIMIT, 輸入其他城市也是同樣情況, 但是當把
location換成國家的時候就沒有這個問題
[程式範例]:
library(ggmap)
library(ggplot2)
map <- get_map(location = "Hong Kong", zoom = 10, scale = 2, maptype =
"roadmap", source = "google", force = ifelse(source == "google", TRUE, TRUE),
messaging = FALSE, urlonly = FALSE, filename = "ggmapTemp", crop = TRUE,
color = "color", language = "en-EN", api_key)
以下是error:
Error in data.frame(ll.lat = ll[1], ll.lon = ll[2], ur.lat = ur[1], ur.lon =
ur[2]) : arguments imply differing number of rows: 0, 1 In addition: Warning
message: geocode failed with status OVER_QUERY_LIMIT, location = "Hong Kong"
試過用geocodeQueryCheck() 來查是否超過2500的上限, 但結果顯示還有24xx的限額
請問可以如何畫出城市的地圖, 謝謝
[關鍵字]:
地圖
=====================
作者: clansoda (小笨)   2018-04-06 10:15:00
我google了一下,好像是每秒query太多次你可能要找找看有沒有參數可以調整

Links booklink

Contact Us: admin [ a t ] ucptt.com