I'd like to be able to add custom info about a place (specifically restaurants) through the API so that this can be queried later down the line by my app. i.e. display this custom info on the ShowInfoWindow. Is this currently possible?
If not what would be the best way of doing this? Seen as I'm already hooked up to Google App Engine/Console, would it be sensible to create a custom database here that I can query for my own custom info as well as the places API for other info?
The Google Places API doesn't provide any way to upload custom fields for places.
So yes, I'd recommend making your own database. Store your custom data for the Places API results keyed by Place IDs to make it easy to fetch your info for any Places API result.
Yes you can add request using HTTP POST request.
Check this link https://developers.google.com/places/web-service/add-place
Related
In regards to the Android Management API and the managed Google Playstore, is there a GET request to retrieve all of the applications within a collection?
For example, if I have these three applications added to the My Work App collection within the managed Google Play iFrame, is there a GET request to access the applications within this collection? If there is another way to retrieve the collection data please advise.
Currently, there is no way to retrieve all the applications in your app collection. If it is possible for you to share your use case, it may be helpful in finding a solution to your problem.
I'm trying to get the values defined in a user created custom form (custom form designed in Outlook for calendar events, pictured below) via Microsofts Graph API.
I've been digging through the documentation for a while now and cannot find anything that would let me do that. I want to get a specific event and get the values defined in the custom form.
Also queried the various extension and schema endpoints and not a trace of the custom data.
Is this even possible with the Graph api?
Based on my test, the values from custom form cannot be obtained by Graph. Although no official docs states this.
If you cannot get the information by the expand=fields too, I'd suggest you to submit a feature request first: https://officespdev.uservoice.com/
How can I generate events for Context Audit? General and DLP. All using apis?
Basically, I'm interested in generating those type of events using the API.
Right now I’m getting the information of the content types using an API as it is shown on this page https://msdn.microsoft.com/office-365/office-365-management-activity-api-reference#start-a-subscription and my objective is to be able to generate events that trigger logs/events for Audit.General and DLP.All.
For example: for generating logs/events for contentType=Audit.AzureActiveDirectory I only had to create a new user through Microsoft graph API https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_users and it was all, in that way I triggered events/information and I can query using request mentioned here https://msdn.microsoft.com/office-365/office-365-management-activity-api-reference#start-a-subscription.
Basically, that is I want to do for Audit.General and DLP. All but I have not found a way to trigger those events.
We are developing a WebApi2 application. Users can use the REST API using their specific API key. I am investigating how to setup Application Insights to be able to see the usage of the REST API endpoints per user.
I have been experimenting with using telemetryclient.TrackPageview(endpoint-ID) and telemetryclient.TrackEvent(endpoint-ID), but I am not sure if this is the right way to go. And how should I pass the user-ID (API-key) in the tracking call? As telemetryclient.Context.User.Id? Or using properties or some other way? I would like to be able to use the user-ID to aggregate/segment the pageviews/events that were registered for that particular user. Any ideas are welcome!
I'd suggest using the built in properties, like context.user.id whenever possible, and then custom properties after that.
Currently in the portal, from the search view you can then find an item for any user, then use the "related items" to view "all telemetry for this user" to see all of the items.
Then can use the App Analytics portal to do queries (click the "analytics" button toolbar in the overview blade for your resource azure portal to go to the AA site for that resource), and that service lets you write much richer queries.
in those queries, it's easiest to group/filter on the "built in" properties, for custom properties you have to write a little bit more complicated queries to parse the values out of custom code.
Is there a way to get Email/Website of a particular place using Google Places API? If this is not possible is there a way other than using Google API?
To retrieve a places website address using Google Places API, you could perform a Places Autocomplete Request with the input parameter value set to the name of the place: e.g.input=Amoeba
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Amoeba&sensor=false&key=your_api_key
Then using the reference from the response you could perform a Places Details Request: e.g.
reference=ClRMAAAAVzPUTLym999EXs4mKkpTqEmzX0a2kfXCUs4enTvWMHDd06VLvlzsGOdfrRd2QvkiRWs4sNkraAAJlMdytt4O4kYGoJZn4ENL5Ig5QYyeJmMSECDOGMO1MnDFtqzdqD8oDk0aFJr8_s-Y946QOz24YubPUsmoC2vl
https://maps.googleapis.com/maps/api/place/details/json?reference=ClRMAAAAVzPUTLym999EXs4mKkpTqEmzX0a2kfXCUs4enTvWMHDd06VLvlzsGOdfrRd2QvkiRWs4sNkraAAJlMdytt4O4kYGoJZn4ENL5Ig5QYyeJmMSECDOGMO1MnDFtqzdqD8oDk0aFJr8_s-Y946QOz24YubPUsmoC2vl&sensor=false&key=you_api_key
This would return the details for Amoeba including if available, the parameter website which would contain the places website address.
Google Places API provides Details requests and responses using your API key.
The tag allows for the google places url for that places
e.g.
http://maps.google.com/maps/place?cid=10704550479004381649
If you wish to harvest website, fax and opening hours information, it can only be done here.
There is no direct api in the Google Places API that will provide that info.
Just as addressComponents are part of the Details response, i assume tags will be added to the Place Details responses from the API to address this problem.
I have been trying to use Google Places API, and I have successful queries, fetching Places details, which has all the address information for the place I want to find, but ironically, there is NO WEBSITE attribute in the returned JSON!
The first version of Local search was MUCH better, and always accurate for searches when you know the business name.