It seems that there's been a change in the Google Maps API. Google Places has now changed to Google+ Local. My question is an extension of this one here:
Google places API: from CID to reference?
His question was to store CIDs inside his database to be able to drop a single pin linking to the known place inside his map.
Example: http://maps.google.com/maps?cid=998657413562662319
It can be linked directly using the CID parameter, which will automatically drop the pin and link to the place.
In the past, clicking on the Places link on the map will bring you here:
Link: maps.google.com/maps/place?cid=998657413562662319
However, that has now changed. It will now link to Google+ instead:
Link: http://plus.google.com/100968423062387177527/about
(sorry, I'm limited to 2 hyperlinks)
My question is, how do you retrieve the CID now? What I intend to do is manually search the places beforehand using the normal Google Maps. I want to then retrieve the CID of these places and store it in my database manually. However, the CID is no longer available. What can I do?
This answer is copying from the poster's comments following the original question, just to allow the question to be answered, because it looks like the user has not yet acquired sufficient reputation to self-answer a question. It's also here to make it clear to other StackOverflow users that the question has been addressed:
The CID can be retrieved from the Google+ Local page simply by clicking on the marker on the map.
this is no longer the way to find a CID.
one option is to use this service:
https://cidfinder.view3.com/
you give them the google+ url and they will return the CID
another manual way to do it is clicking "view source"
and searching for "CID"
you'll find something like this:
div role=button data-cid="18434216952359358766"
so the value of "data-cid" is the cid you're looking for.
Related
I have two websites on the same domain: example.com/fr and example.com/us. Each website has its own Google Analytics Property. I'd like to record page view data in each website's respective Analytics property.
Since there may be many more websites and Analytics Properties in future I thought the best way to manage this would be to create a custom variable of type RegEx Table to map Page URLs to Analytics Property Ids, like this:
*example\.com/us* maps to: UA-123456789-0
*example\.com/fr* maps to: UA-123456789-1
etc
…then use that variable as the value of the 'Google Analytics Settings' field in a new Universal Analytics Tag. I feel like I've set this up properly but it just will not log any data in Analytics whatsoever. I've tried it with even the loosest RegEx patterns e.g *example\.com* and even * and still nothing gets into Analytics.
I've tried a similar thing using a Lookup Table (as opposed to a RegEx Table) and that works as expected, but I believe a look-up table is limited to matching only an exact URL, so if I map http://example.com/us/ to UA-123456789-0 (my US site's Analytics Property Id) it works great when I visit that page exactly, but when I visit http://example.com/us/test/ it doesn't log anything as the URL isn't matched exactly in the lookup. So I know the principle of what I'm doing works with a Lookup Table, but it seems the same approach doesn't work with a RegEx Table.
I wanted to ask:
It is possible to use a Regex table for outputting an Analytics Property Id?
If so, any pointers as to what I might have done wrong?
If not, are there any other neat options? (Otherwise I'm potentially going to have to set up a lot more variables/events/tags if I need to log the same things on each site to different Analytics Properties - it'd involve adding the same conditions onto pretty much every tag.
Many thanks.
As prompted by the comment from #EikePierstorff, it seems that it is possible to use a Regex Table as a lookup for determining the Analytics Property Id to use based on URL. The simple issue was incorrect RegEx expressions.
The Dynamic Links documentation states:
If you don't need to track click data and you don't care if the links are long, you can manually construct Dynamic Links using URL parameters
I'd prefer to use the long URLs (easier dynamic creation) but the above docs imply I'll lose click data. The campaign parameters can still be given to this URL, and the link is still hosted at Firebase, so it's not clear to me which analytics we'll lose here. Does anyone know the full details on this statement?
Firebase team responded that the UTM data is still recorded, it's just the click count which is lost in the Firebase console.
I am using link to generate deep linking. I am using their public API's endpoint to generate links.
Here is their endpoint: https://api.branch.io/v1/url
I append my branch key and data that I need to associate in this link. Everything is working fine but I need to expire this link within one hour.
Reading up here: https://github.com/BranchMetrics/branch-deep-linking-public-api#creating-a-deep-linking-url
I added "duration" key also, but it didnt expire the link.
It will be great if anyone could help me in figuring out how to expire branch.io link.
Alex from Branch.io here: the duration parameter is used for something different, so it's not going to be able to do what you want. We don't have a built-in feature to expire links, but you could create something close to it yourself:
Add a custom link parameter containing a timestamp for when the link was created.
Check for that timestamp when handling the link at the destination, and do something different if it is more than an hour old. I'm guessing this would be inside your app, and also on whatever fallback URL you have specified for when the app isn't installed or the user is on desktop.
Mail from branch.io support team suggested this answer as below:
If you found out about the $exp_date parameter from here then the
parameters in that list are only used for iOS Spotlight Indexing but
will be used by Branch in the future. A better solution than
utilizing $exp_date is to code logic into your client to determine
what to do with link data based on date. This way, your deep links
will always work and always carry data through, and you won't have to
worry about users clicking empty links.
This way, you would include date as an extra meta key/value pair, and
examine this date in your client when receiving link params to
determine if you want to honor the link's contents or not.
I would like to use the api like airbnb. I have search and read all posts/stackoveflow/google group that i can. I couldn't find the answer
In general i would like to do the following:
Would like the user to have the ability to insert advertise with full address
I would like to search in my db by city/street/country and radius according to users ads
Does i have to use api key? I have found autocomplete example without the api key and i works fine
Hope it makes sense.. I have looked on this Google group thread and this stackoverflow thread.. But i am not sure if this flow is allowed and optimise.
Thanks
I am trying to create a work around for Google not allowing anyone to add to a global calendar, so I started doing research and found eventbot, which allows me to add a meeting based on an email that I send.
Here is what I imagine, but I don't know how to work it.
I have two different global calendars
Using a QR Code and that email address eventbot gave me, the code is scanned, the type in the needed subject line, and the event is created on my personal calendar.
Here comes where I am in need of advice:
Each event will have a phrase (Sisters/Brothers), if my calendar sees the word "Sisters", it will change the default calendar from my personal to the "Sisters" Calendar, or "Brothers" same thing.
It seems like a simple enough task, I am just not familiar enough with Google to know where to start, or to put my script in my google account. I also don't know if there is an API I could use.
Has anyone else thought of this? Any ideas on where to begin?
I found something that works better for me and is a better approch, but doesn't answer my original question:
http://librariansonthefly.blogspot.com/2013/12/creating-google-calendar-appointments.html