title: react-geocode - get address from lat/lng with referrer restricted API?
body: <p>I am trying to use <a href="https://www.npmjs.com/package/react-geocode" rel="nofollow noreferrer">react-geocode</a> to get a user's address from their lat/lng coordinates, but unfortunately I am getting the error <code>API keys with referrer restrictions cannot be used with this API.</code> Is it possible to get <code>react-geocode</code> to use a different API which does allow referrer restrictions? Otherwise how would I go about doing this, as I cannot remove the referrer restrictions for my API key. Is there a way to reverse geocode lat/lng coordinates using the Google Maps API which I am already using to display my map anyway?</p>
  
  <pre><code>import Geocode from "react-geocode";
  
  Geocode.setApiKey("AIzaSyDsb7F-VyBJn7r4LilYH_lRHBpPfgyUga8");
  Geocode.enableDebug();
  
  Geocode.fromLatLng("48.8583701", "2.2922926").then(
    response =&gt; {
      const address = response.results[0].formatted_address;
      console.log(address);
    },
    error =&gt; {
      console.error(error);
    }
  );
  </code></pre>
  
  <h1><a href="https://codesandbox.io/s/broken-firefly-6erqc" rel="nofollow noreferrer">CodeSandbox</a></h1>