What is the `sensor` parameter for in the Google Places API?

Google Places-Api

Google Places-Api Problem Overview


The Google Places API requests have a sensor parameter? How does this parameter affect the results?

Google Places-Api Solutions


Solution 1 - Google Places-Api

Edit: The sensor parameter is no longer required, and will now be ignored if it's used.

The parameter doesn't impact the results. It's a parameter that Google is required to collect for Google's data providers who charge differently based on whether the request uses a sensor or not.

see Google docs

Solution 2 - Google Places-Api

The Google Maps docs have been updated and as of June 2014 and the &sensor parameter is no longer required for JavaScript or Web Service API calls. The parameter will now be ignored if passed along with any request.

docs - https://developers.google.com/maps/documentation/javascript/tutorial

Solution 3 - Google Places-Api

Just to be more clear. If your script tag looks like this:

<script src='//maps.googleapis.com/maps/api/js?sensor=false'></script>

Then you should change it to the following to remove this warning:

<script src='//maps.googleapis.com/maps/api/js'></script>

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTN.View Question on Stackoverflow
Solution 1 - Google Places-ApiMano MarksView Answer on Stackoverflow
Solution 2 - Google Places-ApicrsierraView Answer on Stackoverflow
Solution 3 - Google Places-ApiSplaktarView Answer on Stackoverflow