Error "This API project is not authorized to use this API" - while trying to get lat,lng base on address
<h1>I have</h1>

<pre><code>$url = https://maps.googleapis.com/maps/api/geocode/json?address=111+Park+AveFloor+4New+York%2CNY%2C10022%2CUSA&amp;key=***
</code></pre>

<h1>I tried</h1>

<p>making a curl get to get my lat,lng </p>

<pre><code>    $ch = curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
    curl_setopt($ch, CURLOPT_TIMEOUT_MS, 1000);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt($ch, CURLOPT_VERBOSE, TRUE);

    $result = curl_exec($ch);
    $info = curl_getinfo($ch);
    // dd($info);

    curl_close($ch);
    $result =  json_decode($result, true);
    return $result;
</code></pre>

<hr>

<h1>Google Developer Console</h1>

<p><a href="https://i.stack.imgur.com/ngEWz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ngEWz.png" alt="enter image description here"></a></p>

<hr>

<p>It looks like I enable everything more than I should, but when my curl response kept showing </p>

<h1>CURL Result</h1>

<pre><code>array:3 [▼
  "error_message" =&gt; "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console: Learn more: https://code.google.com/apis/console"
  "results" =&gt; []
  "status" =&gt; "REQUEST_DENIED"
]
</code></pre>

<hr>

<h1>Curious ... ?</h1>

<p>What did I forgot/do wrong ?</p>