ApiNotActivatedMapError for simple html page using google-places-api

前端 未结 5 924
执念已碎
执念已碎 2020-12-07 11:30

I\'m trying to create a simple html page (I\'d later like to add an autocomplete input there) that include google-places-api. I have an api-key (which is enabled) but I stil

5条回答
  •  余生分开走
    2020-12-07 12:07

    Assuming you already have a application created under google developer console, Follow the below steps

    1. Go to the following link https://console.cloud.google.com/apis/dashboard? you will be getting the below page
    2. Click on ENABLE APIS AND SERVICES you will be directed to following page
    3. Select the desired option - in this case "Maps JavaScript API"
    4. Click ENABLE button as below,

    Note: Please use a server to load the html file

提交回复
热议问题