How do I enable Google Maps Tile API? - google-maps

I found out from here that there is a Google Maps Tile API (official documentation here).
However, I can't seem to find a way to enable this API.
Except for the link found in the question mentioned above, I couldn't find any other reference to this API, anywhere. It's not even listed on the main page of the Maps API (here) or the documentation page.
The API is also not listed in the Developer Console API Library.
I've tried sending a session request (as explained in the documentation) but received this response:
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Access Not Configured. Maps Tile API has not been used in project XXXXXXXXXXXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/tile.googleapis.com/overview?project=XXXXXXXXXXXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/tile.googleapis.com/overview?project=XXXXXXXXXXXX"
}
],
"code": 403,
"message": "Access Not Configured. Maps Tile API has not been used in project XXXXXXXXXXXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/tile.googleapis.com/overview?project=XXXXXXXXXXXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
Following the link to the Developer Console, I receive this message:
The API "tile.googleapis.com" doesn't exist or you don't have
permission to access it
Is this a Google Maps premium feature? Does any one have more information on this API?

The Tile API is not available for Standard plan users. Neither for Premium plan users [1]. It requires a special license. You should contact Google's sales team directly in order to get some additional information regarding Tile API.
[1] https://developers.google.com/maps/premium/overview#package

Related

How to use google directions api for free

I was using Google Directions Api within the limit of 2500 route queries per day which is free. It was working fine. Now out of nowhere it gives this error while requesting the api when it is clearly written in https://developers.google.com/maps/documentation/directions/start
that Client Id is for premium plan.
Downloaded URL: { "error_message" : "You must enable Billing on the Google Cloud Projectassociated to this client ID, at https://console.cloud.google.com/project/_/billing/enable.Learn more at https://developers.google.com/maps/premium/new-plan-migration", "routes" : [], "status" : "REQUEST_DENIED"}
Background task data { "error_message" : "You must enable Billing on the Google Cloud Projectassociated to this client ID, at https://console.cloud.google.com/project/_/billing/enable.Learn more at https://developers.google.com/maps/premium/new-plan-migration", "routes" : [], "status" : "REQUEST_DENIED"}
How can I solve this issue
From the google maps documentation:
Reminder: To use the Directions API, you must include an API key with all API requests and you must enable billing on each of your projects.
I know they used to allow using the API without a key or billing enabled but they changed their policy a while back.
If you are willing to use an alternative to google maps you can look into OSRM (Open Source Routing Machine), this is completely free but requires some setup and you have to host it yourself. We use OSRM for directions and get much better performance hosting it ourselves for a fraction of the cost of googlemaps.

The Google Maps API fails me

I have created a website and Google Maps is failing me to locate the company.
I have generated a KEY API in the Google console and I have introduced it in WordPress through the "Google maps API Key" plugin.
The case is that the map is seen for 1 second, but then it stops showing and the following error message appears: "An error has occurred, this page has not loaded Google Maps correctly." Discover the technical details of the problem in the javascript console ".
The web in question is: https://arsaiguarderia.com/
The map is on the home screen at the bottom and on the contact screen.
I see this:
js?key=A.....Y&ver=3.4:50 Google Maps JavaScript API error: RefererNotAllowedMapError
https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: https://arsaiguarderia.com/
Maybe you need to go to your Google Cloud Platform > API project > API > Credentials > API key name. Then set the HTTP referrers restriction to your web site name.
Looks like its a problem of http referers according to the javascript console, could you make sure your site is not blocked in the google console? Edit your api key and look for application restrictions

Get google maps api usage info

we using some google maps api's, and we wan't to add gapi usage/quotas to our monitoring system. Does Console api has it's own api for retrieving that metrics?
Maybe other solutions?
There is no current API endpoint to get the current quota usage information of your API. The only way to check the quota used by your application is by checking your own Developer Console. You can also see here the traffic (number of request per seconds), and error ratio of the enabled API of your project.

How do I monitor api request quotas or usage?

I am familiar with the Google API Console for monitoring requests quotas, but is there an endpoint or Google API Resource that I can query for poll to get current quota usage information for an enabled API, eg, Google Drive API?
AFAIK, there is no current API endpoint to get/poll the current quota usage information. As I previously mentioned in a related SO question, receiving quota related errors would help you know that you are reaching your quota for the API and that is where your error handling will take over.
To view the quota usage, access your developer console. And you are correct, it is viewable using the console. You can also see traffic ( number of request per seconds), and error ratio of the enabled API of your project.

Maps API keys for geocoding not working anymore?

It seems that the generated keys in the Google API's console are not working anymore. With different keys (tried it with both server and browser key, however the server key is what I need), generated from different accounts I get constantly the following errors:
Error when using server key:
{
"error_message" : "This site or IP is not authorized to use this API key.",
"results" : [],
"status" : "REQUEST_DENIED"
}
Error when using browser key:
{
"error_message" : "The provided API key is expired.",
"results" : [],
"status" : "REQUEST_DENIED"
}
And these are the enabled services on this account/project: http://upload.uprise.nl/et2j
This is the URL I'm trying: https://maps.googleapis.com/maps/api/geocode/json?address=900+Maple+Avenue%2C+L7S+2J8+Burlington+%28Ontario%29%2C+Canada&oe=utf8&sensor=false&key=mykey
Without the key it is working until I reach my daily limit (which causes the OVER_QUERY_LIMIT status).
Are more people experiencing this?
I have faced same issue... But finally got resolved. Google place services will take 10 minutes to make the services available for new API KEY created. Services will stat working after 10 minutes, till then we get error as "The provided API key is expired."
Geocoding is not one of the services available through the developer console at this time, which is why the key does not work (note that geolocation is not the same as geocoding).
Currently you'd need to use client side geocoding (for example in the JS Maps API) -- or purchase more server side geocoding with a maps for business license in order to increase this quota.
The fact it says the key is expired is misleading, and I'll file a bug for that.
EDIT/UPDATE: The geocoding service is now available through the developer console.
Enable
Google Places API Web Service from google console. It's work for me.
If you're switching from the free API services to a Maps API for Business implementation, you must remove the key parameter from your requests. Google Maps API web services will deny requests made with both a client ID and a key.
https://developers.google.com/maps/documentation/business/webservices/
For me Services has started working after 7 minutes.