Return to site

New Generated Google Maps Api Key Not Working

broken image

 

 

 

31 rows  Feb 26, 2020  The API key included in the script element that loads the API is not found. Jan 26, 2020  Google Maps API error: RefererNotAllowedMapErrorYou’ve defined website URLs in wrong format as HTTP referrer or your website that has problem with Google Map is not defined as HTTP referral at all and has to be added to the list of allowed websites (if you are using HTTP referrals that are allowed to use your API key).The best format of. A lot of website owners around the world use Google Maps widget on Contact page as a handy tool to display maps with offices, departments, or other locations, important for customers. If you are using a standard widget by Google or some other plugin with Google Maps API by side developers, then starting July, 16 you may find that Google Maps are not working on your website.ContentsWhy my Google Maps widget stopped working?

One of the main reasons Google Maps stopped working on your site may be the changes in Google policies concerning the work of Google Maps, announced on 16 July. More specifically, from now on to display Google Maps on your website you need to get a Google Maps API key. This is a kind of token, connecting your widget and Google Maps API.Beginning July, 16 Google Maps will not work without Google Maps API key.

The process of getting the key is not too complicated and will require 15 minutes of your time and your billing data to start an account, in case you don’t have one. Elfsight Team has come up with a simple and handy guide on how to get Google Maps API key. Just follow the steps and you will be done.Video tutorial: How to get Google maps API key in 1 minute?

You may see the announcement and study it in more details on Google Maps Platform Blog.The easiest way to get Google Maps working on website

One of the simplest ways to resume the work of Google Maps on your website is to use a special widget. The are lots of Google Maps widgets created by third-party developers. While searching for one, consider its simplicity of use, responsiveness, and customization. For example, you may take a look at Elfsight Google Maps widget. It was designed to suit your needs in any use case and has a number of solid advantages:

*It’s simple and intuitive, requiring no coding skills;

*Customization options are diverse and allow to configure a unique widget;

*You can add unlimited new locations to the map;

*Create location list to enumerate all your offices;

*Choose widget size, controls, and map layers.

To add the widget to your website, go to our demo. Simply adjust the settings of the widget to your needs and register to get your installation code. Paste this code into the desired place of your website, for example to Contact page. It will take you a couple of minutes to configure your custom widget with maps, markers, and list.Tip: Your modern and handy maps widget will help more customers to find their way to you.The advantages of 3rd party Google Map plugins

Plugins for Google Maps developed by the third party may be quite beneficial for your website, since they have a number of advantages compared to the standard Google Maps widget.1. Intuitive and easy to work with

Developed for a wide range of users, they are simple and don’t require special knowledge and skills for installation and adjusting. For example, no coding from the client side is needed, which is very handy.2. Increased customization opportunities

Side widgets offer much wider customization, to help user configure a widget to his or her requirements in terms of space, layout, style, and other. The multiple settings allow creating a unique and really effective widget for any use case.3. Devoted customer support

Independent web-developing firms tend to be very attentive to their clients, aimed to grow their number and increase loyalty. They support customers and provide help in a wide range of issues, up to free installation for the widget, which is really convenient.New Generated Google Maps Api Key Not Working YoutubeThe website map tool that is working for you

So, starting with July, 16 the work of your website Google maps has changed, and you need to adapt to these changes. If you want to save your time and add an interactive map, look for an intuitive and working solution. Pay attention to Elfsight Google Maps widget, it is not only simple to add and responsive, but offers diverse customization options for the best result.Try an easy and customizable Google Maps widgetRight here, try this live demo and reveal all the potential of Elfsight Google Maps for you.New Users: Before you can start using the Google Maps Platform APIs and SDKs, you must sign up and create a billing account.To learn more, see Get Started with Google Maps Platform.

To use the Maps Embed API you must have an API key. The API key is a unique identifier that isused to authenticate requests associated with your project for usage and billing purposes.Get the API keyNew Generated Google Maps Api Key Not Working On Mac

You must have at least one API key associated with your project.

To get an API key:

*Visit the Google Cloud Platform Console. 

* Click the project drop-down and select or create the project for which you want to add an API key. 

* Click the menu button and select APIs & Services > Credentials. 

* On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key. 

* Click Close. The new API key is listed on the Credentials page under API keys.  (Remember to restrict the API key before using it in production.) Add the API key to your request

You must include an API key with every Maps Embed API request.In the following example, replace YOUR_API_KEY withyour API key.

 For more information about MODE and parameters options in the code above, see Forming the URL for the Maps Embed API.Restrict the API key

We strongly recommend that you restrict your API key. Restrictions provide added security and helpensure only authorized requests are made with your API key. There are two restrictions. You shouldset both:

*Application restriction: Limits usage of the API key to either websites (HTTP referrers), web servers (IP addresses), or mobile apps (Android apps or iOS apps). You can select only one restriction from this category, based on the platform of the API or SDK (see GMP APIs by Platform). 

Note: If you need to call web, web service, and/or mobile APIs from the same (client-side) app, create and restrict multiple keys.

*API restriction: Limits usage of the API key to one or more APIs or SDKs. Requests to an API or SDK associated with the API key will be processed. Requests to an API or SDK not associated with the API key will fail. (The API or SDK must be enabled and must support the application restriction.)

To restrict an API key:Google Maps Api Key For Website

*Go to the Google Cloud Platform Console.

* Click the project drop-down select the project that contains the API key you want to secure. 

* Click the menu button and select APIs & Services > Credentials. 

* On the Credentials page, click the name of the API key that you want to secure. 

* On the Restrict and rename API key page, set the restrictions:

*Application restrictions

*Select HTTP referrers (web sites).

*Add the referrers.

*API restrictions

*Select Restrict key.

*Click Select APIs and select Maps Embed API.  (If the Maps Embed API is not listed, you need to enable it.) 

* Click SAVE. 

 

 

 

 

broken image