Is it possible to use Maps and place API with same API KEY

前端 未结 5 717
忘掉有多难
忘掉有多难 2020-12-04 02:19

I was tiring to build an app which uses google maps for showing places and Pace API for searching places. but it is not being possible to build the app with two different AP

5条回答
  •  Happy的楠姐
    2020-12-04 02:33

    Yes you can use the Same Key for Both Functionality.

    Note : Make sure when you Create API Key You need to Enable both API Google Map and Google Places API.

    From Google Console. Where you have Created your Project. That's It.

    After that Both API will Work with Single API Key.

    EDIT 1:

    1. Create Project using this Link If you havn't Created your Project in Google Console.

    2. Then after select created project from list of projects you have.

    3. It will show you All the APIS List. From that Enable APIS which you need to use in your Project.

    4. Then add your Generated API Key in Manifest Android. That's It.

提交回复
热议问题