Reputation: 157
Using the Google Places API I cannot seem to get the description of a place whether through a nearby_search or a details_search. Please look at the attached picture for what I am wanting to pull from the JSON. This information must be coming from somewhere, it's just a question of where.
This has been asked here: Displaying a Place Description on Google Places API for iOS but the answers are not adequate and link to documentation that I've read many times over and can't seem to find it.
Upvotes: 10
Views: 4579
Reputation: 8433
This was added to the places API as PlaceEditorialSummary just last month.
It is not yet in any of the SDKs, so you need to do a raw HTTP request to get the info. Examples are here.
I couldn't find any issues tracking adding that field to the SDKs, so I created one.
Upvotes: 0
Reputation: 32178
Unfortunately, the mentioned description/summary is not available via the Places API at the moment.
There is a corresponding feature request in the public issue tracker:
https://issuetracker.google.com/issues/35827225
Please star the feature request to express your interest and subscribe to further notifications from Google.
Upvotes: 10
Reputation: 111
I believe what you're looking for is the review_summary
field, part of the extensions
parameter which was unfortunately deprecated a little over a month ago.
You could try HTML parsing the section-editorial
div class.
Upvotes: 1