Reputation: 515
Is it possible to add new place with opening hours via Google Places API Web Service?
I can't find any information about it.
https://developers.google.com/places/web-service/add-place
Thank you in advance
Upvotes: 1
Views: 755
Reputation: 13494
I think it is not possible. As you can see in this document, these are the only information that you can place in the body.
accuracy
— The accuracy of the location signal on which this request is based, expressed in meters.
address
(recommended, to improve chances of passing moderation) — The address of the place you wish to add. If a place has a well-formatted, human-readable address, it is more likely to pass the moderation process for inclusion in the Google Maps database.
language
— The language in which the place's name is being reported. See the list of supported languages and their codes. Note that we often update supported languages so this list may not be exhaustive.
location
(required) — The geographical location, specified as latitude and longitude values, of the place you want to add.
name
(required) — The full text name of the place. Limited to 255 characters.
phone_number
(recommended, to improve chances of passing moderation) — The phone number associated with the place. If a place has a well-formatted phone number, it is more likely to pass the moderation process for inclusion in the Google Maps database.
types
(required) — The category in which this place belongs. While types takes an array, only one type can currently be specified for a place. XML requests require a single <type>
element. See the list of supported types for more information. If none of the supported types are a match for this place, you may specify other.
Hope this helps!
Upvotes: 2
Reputation: 2518
Sorry, no. You can't provide opening hours in Add Place requests to the Google Places API.
Depending on what you need to do, you could try adding the place manually via https://google.com/maps (click "Send feedback" then "Add a missing place").
Upvotes: 2