Displaying a Place Description on Google Places API for iOS - ios

My apologies if this has been answered already. I cannot find it and I'm very new to the GooglePlaces API for iOS.
Question: How do I get a place's description using the Places API and display on an iOS app?
I'm not sure if this is even possible but I'd like to find out. Please see the attached image as to what I mean by place "description."
Google Place Description Example

You have to make Place Details request which is an HTTP URL of the following form with required parameter:
https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=YOUR_API_KEY
key (YOUR_API_KEY) — Your application's API key. This key identifies your application for purposes of quota management and so that places added from your application are made immediately available to your app.
placeid (ChIJN1t_tDeuEmsRUsoyG83frY4) — A textual identifier that uniquely identifies a place, returned from a Place Search. For more information about place IDs, see the place ID overview.
OR
reference — A textual identifier that uniquely identifies a place, returned from a Place Search.
You can request output in JSON or XML format;
All above info from below site, please go through it:
https://developers.google.com/places/web-service/details

Related

Get a review link with Google My Business API

Is there a way to get the link of a review using the GMB APIs?
The closest to what I need is this:
https://www.google.com/maps/contrib/113400145807499011881/place/ChIJSRSm38NhLxMRBgg2EGMZqKc/
Where the first ID (113400145807499011881) is the ID of the user who left the review, and the second ID (ChIJSRSm38NhLxMRBgg2EGMZqKc) is the place ID.
However, the review object returned by the API does not seem to contain enough information to obtain the reviewer user ID.
Thank you,
Guido
I was searching for a way to get the url to the review overview for a specific location via the API too.
After checking the links, IDs ect. in the API Responses and lots of documentations an tuturials i found NO way to get the link over tha API.
BUT a workarround with a few manual steps can help to find the link (I know that is not a final answer to the question, but maybe it is still helpfull)
go to google search, and search for you Location/ Company that contains the reviews
on the right side you should see a pannel that shows the current stars for your location and a link "xxxx Google-Rezensionen"
klick on this link and copy the url in the browser
(optional remove parameters like "&client" ect.
Check this youtube-video of the Step by Step Tuturial to see a tuturial how you can do this.
newReviewUrl is the Parameter if someone read this:
https://developers.google.com/my-business/reference/rest/v4/accounts.locations#urlattributevalue

How do you build a Ruby on Rails API project WITHOUT an API key?

I have some experience building ROR projects with APIs for Google Maps, Weather Underground, etc. All of these sites had a login section with an API key. I now have a project to complete that requires an API for Github Jobs API. I have looked and looked and there is no API key provided on that page or on the regular Github API page. I have searched online at length and watched about 3 tutorials, yet I am at a loss about how to accomplish this without an API key. I would really appreciate some guidance. Thanks so much!!
Github Jobs API it's open and doesn't need API key to use, you only need to make GET requests as described here
URL: https://jobs.github.com
REQUEST: GET /positions.json
You can send a lot of parameters as query params:
description — A search term, such as "ruby" or "java". This parameter is aliased to search.
location — A city name, zip code, or other location search term.
lat — A specific latitude. If used, you must also send long and must not send location.
long — A specific longitude. If used, you must also send lat and must not send location.
full_time — If you want to limit results to full time positions set this parameter to 'true'.
Some examples of requests:
https://jobs.github.com/positions.json?description=python&location=sf&full_time=true
https://jobs.github.com/positions.json?search=ruby
https://jobs.github.com/positions.json?lat=37.3229978&long=-122.0321823
https://jobs.github.com/positions.json?location=sp&full_time=true
For use pagination just add page= at the final of query params:
https://jobs.github.com/positions.json?description=ruby&page=1
You can check all the documentation of API here

Google Places iOS SDK: How to Get Point of Interest Based on Text Search

If you go to google.com and search "Attractions in London", in the result page on the first line you will see a list of Point of Interest (POI) with its name, photo, and description.
I want to get this list of POI on my iOS app, without having the user typing "Attractions in London"; I will pre-load this list as suggested places in London. I've read through the Google Places API for IOS here: https://developers.google.com/places/ios-api/start. But I could not find any sample to search by text.
The only way I found is by accessing the Google Place Web Service API here: https://developers.google.com/places/web-service/search and do the text search. Get the JSON result and map it to my custom google place object.
Does anybody has experience doing this using client-site API iOS SDK? Not sure if I missed anything in their guide, or it's not documented or Web Service API the only way..
Thanks in advance!

Is html_attributions needed for unused photo content from Google Places Web Service API?

I'm working on an iOS app that utilizes Google's Web Service API. When searching for places, each result contains a "photos" field. Within this photos field is a "html_attributions" field. I see that this "must be displayed" when searching for information about it, but I have not seen any conditions.
My question is, if I do not actually use the photo_reference/height/width fields inside the photos field, do I still need to display the html_attributions field to the user or is that only if content within the photos field is utilized/displayed?
I have yet to see any other location specific attributions using the web service for google places. Is there something else I might be missing?
Thanks for any and all help!
The html_attributions inside the photos field only applies to that photo, not the rest of the search / details response.
The documentation on Photo References says (emphasis added by me):
if the returned photo element includes a value in the html_attributions field, you will have to include the additional attribution in your application wherever you display the image.
Also, the documentation for Place Search Responses and Place Details Responses also describes the html_attributions on the root of the response differently to the one embedded inside the photos.
So yes, if you're not using the photo data, you don't have to display the attributions for that data.

Blackberry Code

I have having difficulties protecting my blackberry application persistent data with ControlledAccess object.
According to http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/system/PersistentObject.html, I need a PersistentObject, CodeSignKey, and ControlledAccess objects to work. I have everything except one piece:
CodeSignKey codeSigningKey = CodeSigningKey.get( "ACME" );
here, I don't know what to replace for "ACME". Is this the PIN code I chose as I filled out the Code Sign Key? Is it my package name, output file name?
The Blackberry API documentation doesn't seem to say anything about this particularly important parameter.
Help please, thanks.
You'll want to create your own key using the BlackBerry Signing Authority Tool. See this KB article for the full details.

Resources