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 02 Answers
Reset to default 3Short-term workaround
Use this link to visit the now-hidden legacy Places API service.
Ensure that you're in the correct account and project.
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.
本文标签:
版权声明:本文标题:javascript - Google Maps API – "This API project is not authorized to use this API" (REQUEST_DENIED) - Stack O 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744525566a2610726.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论