Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Places API - closed POIs?

Google Maps seems to have information about whether a place is closed (permanently closed) or opened, but it seems like this information is not available in Google Places API. Does anyone know if it is possible to retrieve this information?

like image 652
SamTan Avatar asked Apr 16 '13 16:04

SamTan


1 Answers

permanently_closed is a boolean flag indicating whether the place has permanently shut down (value true). If the place is not permanently closed, the flag is absent from the response. https://developers.google.com/places/web-service/details#PlaceDetailsResults (2015+)

Also, Places Autocomplete API will prefer places that are not permanently closed, although you might still get one if there's no better match for user input.

like image 187
miguev Avatar answered Oct 02 '22 22:10

miguev