title: How to get the coordinates from the address using google map
body: <p>I'm trying to get the coordinates from the address which user input,using <code>flutter_google_places</code> but here is gives me error</p>
  <pre><code> {candidates: [], error_message: You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account, status: REQUEST_DENIED}
  </code></pre>
  <p>here is my code</p>
  <pre><code>static Future&lt;String&gt; getPlaceId(String input) async {
      final String url =
          &quot;https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=$input&amp;inputtype=textquery&amp;key$googleApiKey&quot;;
  
      var response = await http.get(Uri.parse(url));
      Map&lt;String, dynamic&gt; json = jsonDecode(response.body);
      print(json);
      var placeId = json['candidates'][0]['place_id'] as String;
  
      return placeId;
    }
  </code></pre>
  <p>i added the key too, but it gives me this error, please help how to do this or this is there any other to get the coordinates from user input address.</p>