看板 R_Language 關於我們 聯絡資訊
朋友沒有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的限額 請問可以如何畫出城市的地圖, 謝謝 [關鍵字]: 地圖 ===================== -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 110.28.233.106 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1522944497.A.FAA.html ※ 編輯: ktjoe (110.28.233.106), 04/06/2018 00:24:07
clansoda: 我google了一下,好像是每秒query太多次 04/06 10:15
clansoda: 你可能要找找看有沒有參數可以調整 04/06 10:15
非常謝謝您!我朋友解決問題了! ※ 編輯: ktjoe (39.8.10.181), 04/09/2018 02:31:41