Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/378.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google Places是否在互联网接入(wlan、termina、no、ecc)上存储信息?_R_Google Places Api - Fatal编程技术网

Google Places是否在互联网接入(wlan、termina、no、ecc)上存储信息?

Google Places是否在互联网接入(wlan、termina、no、ecc)上存储信息?,r,google-places-api,R,Google Places Api,我在R中使用了这个查询 library(jsonlite) library(rcurl) key = MY_OWN_KEY (replace with your Google API key) url1 = "https://maps.googleapis.com/maps/api/place/details/json?placeid=" place_id = 'ChIJy5DkgiBiLxMRFr1YqGYxF30' url2 = gsub(" ", "", paste0(url1, plac

我在R中使用了这个查询

library(jsonlite)
library(rcurl)
key = MY_OWN_KEY (replace with your Google API key)
url1 = "https://maps.googleapis.com/maps/api/place/details/json?placeid="
place_id = 'ChIJy5DkgiBiLxMRFr1YqGYxF30'
url2 = gsub(" ", "", paste0(url1, place_id, "&key=", key))
doc <- fromJSON(url2)
names(doc$result)

[1] "address_components"         "adr_address"                "formatted_address"         
[4] "formatted_phone_number"     "geometry"                   "icon"                      
[7] "id"                         "international_phone_number" "name"                      
[10] "opening_hours"              "photos"                     "place_id"                  
[13] "rating"                     "reference"                  "reviews"                   
[16] "scope"                      "types"                      "url"                       
[19] "utc_offset"                 "vicinity"                   "website" 
library(jsonlite)
图书馆(rcurl)
key=MY_OWN_key(替换为您的Google API密钥)
url1=”https://maps.googleapis.com/maps/api/place/details/json?placeid="
地点id='ChIJy5DkgiBiLxMRFr1YqGYxF30'
url2=gsub(“,”,paste0(url1,place_id,”&key=“,key))
总之,API并没有提供与Google MapsAlso中相同的结果。因此,我的软件包可能会使API调用更容易。