Store Google Places Data [closed] - google-maps

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last month.
Improve this question
We are using Google places API for searching nearby places and we are saving users review against every place in our database for that purpose we need to store some information of place in our database so that we can link those information with Google places API, but as we go through term of use we have found that no one is allowed to store any information of Google places in personal Database.
My question is that can we save Google place ID or just latitude and longitude for mapping purpose?
Is it acceptable by Google Inc.
Or what else I can do to link information from my database with places returned from Google Places API.

I would use the reference property, at one point that didn't persist across sessions, but now it just says, it can always be used, but might not be the same.
https://developers.google.com/maps/documentation/javascript/reference#PlaceResult
reference | string | An opaque string that may be used to retrieve up-to-date information about this Place (via
(via PlacesService.getDetails()). reference contains a unique token that you can use
to retrieve additional information about this Place in a Place Details
request. You can store this token and use it at any time in future to
refresh cached data about this Place, but the same token is not
guaranteed to be returned for any given Place across different
searches.ference contains a unique token that you can use to retrieve
additional information about this Place in a Place Details request.
You can store this token and use it at any time in future to refresh
cached data about this Place, but the same token is not guaranteed to
be returned for any given Place across different searches.

Related

The numbers on online dashboard differs from the downloaded CSV in Google Analytics [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a "very simple" problem.. When i make a custom report in a filtered view in my Analytics account, the numbers i see on the online dashboard differs from the ones, that are downloaded directly from that report into Excel .csv.. We do cross-domain tracking, and the purpose of the filtered view is to see the domains in the view (basic, suggested by analytics help).
What could be the problem? Do any of you suffer from the same problem? This is very annoying, because we can't trust our numbers..
Thank you in advance,
Adam
Your issue may be sampleing level
samplingLevel=DEFAULT
Optional.Use this parameter to set the sampling level (i.e. the number of sessions used to calculate the result) for a reporting query. The allowed values are consistent with the web interface and include: •DEFAULT — Returns response with a sample size that balances speed and accuracy.
•FASTER — Returns a fast response with a smaller sample size.
•HIGHER_PRECISION — Returns a more accurate response using a large sample size, but this may result in the response being slower.
If not supplied, the DEFAULT sampling level will be used.See the Sampling section for details on how to calculate the percentage of sessions that were used for a query.
There is no way to test if this is your problem, because at this time you cant set sampling level when extracting as CSV nor can you set it in the query explorer. But I wrote an application that will extract information into CSV and allows you to select sampling level. Daimto - Google Analytics Export you can use that to test if this is the problem or not.

Can I use HTML geolocation to update a website with where I am located? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Instead of the the location presented is based on the user I want it to update automatically based on where I am.
I could obviously hard-code it but I want it to be automated. I travel quite a bit: when I am in Egypt I want it to say something like "working in Egypt" or when I am home in NYC "working at homebase" etc.
I am not sure how to go about this, I am assuming it can be done with HTML5 and some more but I may be wrong any suggestions welcome.
There are a lot of ways, but they all have in common you have to send your location to somewhere, and that somewhere has to inform that location to your website visitors (or the place where you want to display it).
You can use HTML5 location api to determine your approximate location. For example, you set up a page (not the index page, but one you can authenticate to) that whenever you visit it, you inform your location to it. That's done with a simple
navigator.geolocation.getCurrentPosition(function (location) {
console.log(location);
});
For the second step, you have several ways to go:
Use a backend server to persist that data in somewhere that's not just your notebook. That server can, in turn, store that location in a Database. Then, anyone visiting your website public page could see from where did you updated your location the last time.
Instead of Databases, you can also use websockets to just relay your updates to whomever is visiting your website at a given moment. But that might be just too far fetched for what you need to do.
Use a webservice API to inform others about your location. Automated foursquare checkins? Tweets, Facebook statuses? All of those approaches is unique to the given API, but most social networks allow you to build simple apps to do that.
TL / DR
Yes, you can use HTML5 to guess your approximate location. Nope, with HTML5 alone you can't tell other people where you are.

Does Google ever remove a place from it's API or re-use the placeId? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
In Google Places, each place has a specific placeId. We store this placeId and use it to retrieve information about the place as needed. For this approach to work, we need to confirm:
Is each placeId unique?
Does Google ever re-use a placeId?
Does Google ever delete a place from it's places database?
If they don't delete a place, do they just mark it as "permanently_closed"?
Thanks in advance for any/all help!
Yes, each place has a unique ID.
No google do not re-use IDs. For each place in this world google have unique id for it.
Depends. Here, what google says,
A place can only be deleted if: 1. It was added by the same application
as is requesting its deletion. 2. It has not successfully passed through
the Google Maps moderation process, and is therefore visible only to
the application that added it.
"INVALID_REQUEST" is what you get if you search for a place that has been deleted
Also for more info, here is a small notice from Google:
Note: The id and reference fields are deprecated as of June 24, 2014. They are replaced by the new place ID, a unique identifier that can be used to compare places and to retrieve information about a place. The Places API currently returns a place_id in all responses, and accepts a placeid in the Place Details and Place Delete requests. Soon after June 24, 2015, the API will stop returning the id and reference fields in responses. Some time later, the API will no longer accept the reference in requests. We recommend that you update your code to use the new place ID instead of id and reference as soon as possible.
I hope I answered your questions, for more help, kindly comment, I'll reply.
Reference:
https://developers.google.com/places/documentation/search

Google Maps API for Business limitations [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
Improve this question
Trying to figure out the limitations of the Google Maps API for Business.
It appears that usage limit is 100K loads/day per one Business account (here). A business account can include a number of authorized URLs (up to 100), which can be as general as domains (here). Meanwhile, a single website can load up to 25K loads/day for free (here).
So my main question is - seems the Business account doesn't get you all that much in terms of usage limits - and actually hurts you in case you have several domains (e.g., 8 domains which would have 200K combined limit (25Kx8) in the free case, but only 100K in case of using Business account). Is that how it works?
A smaller question: are there limitations on which URLs can be authorized? (I.e., do they have to be within the same TLD or not)?
If you already have an M4B license I would encourage you to contact M4B Tech Support team:
https://developers.google.com/maps/documentation/business/faq#support
If you do not have access, but are using M4B then fill in this form:
http://support.google.com/enterprisehelp/bin/answer.py?hl=en&answer=142246#q3
There are number of reasons why you would like a M4B license. Some customers buy it for interbal pageviews, some for the increased Web Service quotas and others for the Tech Support and SLAs.
If you would like to know more you can contact the Google Sales team:
http://www.google.com/enterprise/earthmaps/maps.html
Regarding the TLDs, the answer is no. They can be any http or https URLs.
HTH

Googlemap Geocoding legal constraint [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I was reading up the legal stuffs about Google Map and came across a post which pointed out this regulation:
10.12 use or display the Content without a corresponding Google map, unless you are explicitly permitted to do so in the Maps APIs Documentation, the Street View API Documentation, or through written permission from Google (for example, you must not use geocodes obtained through the Service except in conjunction with a Google map, but the Street View API Documentation explicitly permits you to display Street View imagery without a corresponding Google map); or...
However, I also bump into this very nice tutorial on displaying addresses that is within a specific radius of a targeted location:
http://stefanzvonar.com/2012/06/30/setting-up-google-maps-for-asp-net-and-sql-server-with-google-maps-api-v3/
In this tutorial, the database actually stores the Lat Long of an address which is crucial for this feature to work. Presumably, these Lat Long information may also be derived from the help of Google Map. In such scenario, is there a violation occurring? I am not sure if it relates to the regulation state above.
This is a grey area. You are not allowed to store actual data obtained from Google
2. Restrictions on Use
But it is suggested that if the results of geocoding is displayed on a map and the marker moved to the exact location the resulting coordinates are yours to store (I am not a lawyer).
The other option is to obtain to obtain the coordinates from another source eg Geonames