Google Places是否在互联网接入(wlan、termina、no、ecc)上存储信息?
我在R中使用了这个查询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
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调用更容易。