I have been using Google Places Search API to look for permanently closed locations. As it turns out google filters them out from the query results. For example : Cumberland River Hospital shows up as permanently closed on the google maps
Now as a test, I try to search for all hospitals in the same coordinates using googleway package as follows :
library('googleway')
hosps <- google_places(
location = c(36.544690,-85.500820),
keyword = 'hospital',
key = api,
rankby = 'distance',
simplify = TRUE)
and it skips out the "Cumberland River Hospital" from the search results.
However, when I try to search specifically for "Cumberland River Hospital" in the same coordinates Google Places Search API returns information for that particular hospital that includes a flag "permanently_closed" = TRUE indicating that this place is permanently closed.
library('googleway')
pc_hosp <- google_places(
location = c(36.544690,-85.500820),
keyword = "cumberland river hospital",
key = api,
rankby = 'distance',
simplify = TRUE)
Why does Google Places API skip permanently closed location from the regular search results ? Is there a way to include the permanently closed locations along with the regular establishments using Google Places Search API ?