Display location descriptions in the Google Places API for iOS

I apologize if an answer has already been given. I cannot find it, and I am very new to the GooglePlaces API for iOS.

Question: How do I get a description of a place using the Places APIs and display it in an iOS application?

I am not sure if this is possible, but I would like to know. Please see the attached image for what I mean by "description".

Google Place Sample Description

+7
ios google-places-api
source share
2 answers

Don’t worry, here are the links you can find to describe places and a list of places.

- This will help you get a list of places based on your input. https://developers.google.com/places/web-service/search

- This will help you get more information about the place https://developers.google.com/places/web-service/details

-3
source share

You need to make a request for location information , which is the HTTP URL of the following form with the required parameter:

https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=YOUR_API_KEY

(YOUR_API_KEY) - Application API key. This key identifies your application for quota management purposes and therefore locations added from your application immediately become available to your application.

placeid (ChIJN1t_tDeuEmsRUsoyG83frY4) - a text identifier that uniquely identifies the place returned from the place search. For more information about place identifiers, see Place Identifier Overview. OR reference - A text identifier that uniquely identifies the location returned from the location search.

You can request output in JSON or XML format;

All of the above sites , go through it : https://developers.google.com/places/web-service/details

-3
source share

All Articles