簡體   English   中英

googleway,雷達參數現已棄用

[英]googleway, the radar argument is now deprecated

嘗試在R中使用googleway軟件包列出位置指定半徑內的退休村。 現在,不贊成使用雷達參數,並顯示錯誤消息,結果為空。

library(googleway)
a <- google_places(location = c(-36.796578,174.768836),search_string = "Retirement Village",radius=10000, key = "key")
a$results$name
```

#Would expect this to give me retirement villages within 10km radius, instead get error message

```> library(googleway)
> a <- google_places(location = c(-36.796578,174.768836),search_string = "Retirement Village",radius=10000, key = "key")
The radar argument is now deprecated
> a$results$name
NULL
```

您編寫的代碼沒有任何問題,並且您得到的“消息”不是錯誤,它是一條消息,但是可能應該將其刪除-我在此處將其刪除時遇到了問題

a <- google_places(
  location = c(-36.796578,174.768836)
  , search_string = "Retirement Village"
  , radius = 10000
  , key = "key"
  )

place_name( a ) 

# [1] "Fairview Lifestyle Village"                       "Eastcliffe Retirement Village"                   
# [3] "Meadowbank Retirement Village"                    "The Poynton - Metlifecare Retirement Village"    
# [5] "The Orchards - Metlifecare Retirement Village"    "Bupa Hugh Green Care Home & Retirement Village"  
#  [7] "Bert Sutcliffe Retirement Village"                "Grace Joel Retirement Village"                   
#  [9] "Bupa Remuera Retirement Village and Care Home"    "7 Saint Vincent - Metlifecare Retirement Village"
# [11] "Remuera Gardens Retirement Village"               "William Sanders Retirement Village"              
# [13] "Puriri Park Retirement Village"                   "Selwyn Village"                                  
# [15] "Aria Bay Retirement Village"                      "Highgrove Village & Patrick Ferry House"         
# [17] "Settlers Albany Retirement Village"               "Knightsbridge Village"                           
# [19] "Remuera Rise"                                     "Northbridge Residential Village" 

您確定您使用的API密鑰已在Places API上啟用嗎?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM