admin管理员组

文章数量:1384366

I'm currently working on integrating the Google Maps API into my project and have enabled all required APIs, including:

  • Maps JavaScript API
  • Directions API
  • Geocoding API
  • Places API
  • Distance Matrix API
  • Routes API (including Polyline features)

but the polyline features not working properly as well. even i have enabled every service in google map api. please check the attached image.

other features such as auto suggestion, real time location working perfectly.

it gives this error: Google Maps API – "This API project is not authorized to use this API" (REQUEST_DENIED)

I suspect this could be related to API restrictions, billing issues, or something else I may have overlooked.

Has anyone encountered this issue before? Any insights on how to resolve it would be greatly appreciated!

Thank you in advance!

I'm currently working on integrating the Google Maps API into my project and have enabled all required APIs, including:

  • Maps JavaScript API
  • Directions API
  • Geocoding API
  • Places API
  • Distance Matrix API
  • Routes API (including Polyline features)

but the polyline features not working properly as well. even i have enabled every service in google map api. please check the attached image.

other features such as auto suggestion, real time location working perfectly.

it gives this error: Google Maps API – "This API project is not authorized to use this API" (REQUEST_DENIED)

I suspect this could be related to API restrictions, billing issues, or something else I may have overlooked.

Has anyone encountered this issue before? Any insights on how to resolve it would be greatly appreciated!

Thank you in advance!

Share Improve this question asked Mar 18 at 4:34 opuopu 812 bronze badges 0
Add a comment  | 

2 Answers 2

Reset to default 3

Short-term workaround

  1. Use this link to visit the now-hidden legacy Places API service.

  2. Ensure that you're in the correct account and project.

  3. Click "Enable" to enable the legacy Places API.

Long-term fix

Since March 1st, 2025, the Distance Matrix API, Directions API, and Places API are in "Legacy" status and no longer appear on the API list. From the developer docs on each of them (only present in English version):

This product or feature is in Legacy status and cannot be enabled for new usage.

The Distance Matrix API and the Directions API have been replaced by the Routes API. The Places API has also been replaced, by the Places API (new).

You'll need to update your code to use the new APIs since the old ones can no longer be easily enabled and will completely stop working soon.

You can access the legacy API and enable it here: https://console.cloud.google/apis/library/places-backend.googleapis Once enabled, you will be able to manage the API as usual in the Maps console.

本文标签: