{"id":6624581,"date":"2015-10-07T19:39:51","date_gmt":"2015-10-07T19:39:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/google-api-key-1\/"},"modified":"2016-08-30T18:52:33","modified_gmt":"2016-08-30T18:52:33","slug":"google-api-key-1","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/google-api-key-1\/","title":{"rendered":"google api key"},"content":{"rendered":"<p>I have install BGMP on a shared web hosting.<br \/>\nIf i add a placemark the geocoding return a error quota.<\/p>\n<p>Is it possible to add a admin option api key for use the feature google api key.<\/p>\n<p>I have change in the core.php the request on google to https and i have add my api key. This change work fine but it is a workaround.<\/p>\n<p>$geocodeResponse = wp_remote_get(&#8216;https:\/\/maps.googleapis.com\/maps\/api\/geocode\/json?address=&#8217;. str_replace( &#8216; &#8216;, &#8216;+&#8217;, $address ) .&#8217;&amp;key=API_KEY&#8217; );<\/p>\n<p>$geocodeResponse = wp_remote_get( &#8216;https:\/\/maps.googleapis.com\/maps\/api\/geocode\/json?latlng=&#8217;. $latitude .&#8217;,&#8217;. $longitude .&#8217;&amp;key=API_KEY&#8217; );<\/p>\n<p>THX<\/p>\n<p>Auban<\/p>\n<p>https:\/\/wordpress.org\/plugins\/basic-google-maps-placemarks\/<\/p>\n","protected":false},"template":"","class_list":["post-6624581","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6624581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6624581\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6624581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}