简体   繁体   English

googleway,雷达参数现已弃用

[英]googleway, the radar argument is now deprecated

Attempting to use googleway package in r to list retirement villages within a specified radius of a location. 尝试在R中使用googleway软件包列出位置指定半径内的退休村。 Get the radar argument is now deprecated error message and null results as a consequence. 现在,不赞成使用雷达参数,并显示错误消息,结果为空。

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
```

There's nothing wrong with the code you've written, and that 'message' you get is not an error, it's a message, but it probably should be removed - I've made an issue to remove it here 您编写的代码没有任何问题,并且您得到的“消息”不是错误,它是一条消息,但是可能应该将其删除-我在此处将其删除时遇到了问题

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" 

Are you sure the API key you're using is enabled on the Places API? 您确定您使用的API密钥已在Places API上启用吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM