Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Request for Enabling and Identifying Toll Gates in Dubai, UAE for Ride-Hailing App

Sailo
New Member
I am facing an issue with the Routes Preferred API for my project. Despite enabling the API through the Google Cloud Console, I am still encountering the following error:

The API has been successfully enabled as per the instructions provided in the error message, and I've ensured that the correct API key is being used in the request. However, the error persists, indicating that the service is still not active for my project.

Here is what I've already tried:

  1. Ensured the Routes Preferred API is enabled via the 
  2. Waited for several minutes to allow the change to propagate.
  3. Verified the API key and permissions are correctly set up.

Could you please assist me in resolving this issue? I would appreciate any guidance on additional steps I should take or further troubleshooting I can perform.

Thank you for your support.


{
"error": {
"code": 403,
"message": "Routes Preferred API has not been used in project xxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/routespreferred.googleapis.com/overview?project=xxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "SERVICE_DISABLED",
"domain": "googleapis.com",
"metadata": {
"service": "routespreferred.googleapis.com",
"containerInfo": "xxxx",
"consumer": "projects/xxxx",
"serviceTitle": "Routes Preferred API"
}
},
{
"@type": "type.googleapis.com/google.rpc.LocalizedMessage",
"locale": "en-US",
"message": "Routes Preferred API has not been used in project xxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/routespreferred.googleapis.com/overview?project=xxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
},
{
"@type": "type.googleapis.com/google.rpc.Help",
"links": [
{
"description": "Google developers console API activation",
}
]
}
]
}
}
1 1 95
1 REPLY 1

Hi @Sailo

Welcome to Google Cloud Community! 

The error message "Routes Preferred API has not been used in project xxxx before or it is disabled" indicates that the Google Cloud project xxxx is not authorized to access the Routes Preferred API. 

This is a permission denial (status": "PERMISSION_DENIED") that prevents your application or code from using the API's functionalities. The ("reason":"SERVICE_DISABLED") API service is not active for the specified project.

Note: The Routes Preferred API is offered via a select customer program. Contact our sales team to explore eligibility. 
62bcAam2fCmFwk2.png

If you need further assistance, you can always file a case with our Google Cloud Support team.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.