← Blog

The problem with Google Maps


— #GoogleMaps #API #Updates

Do you use Google Maps on your website? Have you noticed that things are going a little squiffy?

image

Recently, Google rolled out a pay-as-you-go approach to using their APIs. This includes Google Maps.

You can add a Google Map to your page using the embed API or add it to a page using the Javascript API. Whilst the embed API remains free, the Javascript API is now chargeable.

Google Maps - Javascript API

The Javascript API is chargeable per call (approx 0.007 cents per call), which means each time a user hits your site, this counts as a call.

Google give you a free $200 credit per month, which equates to $6-7 dollars per day - or around 1000 API calls.

Whilst this is fine for most smaller sites, if you have a moderate amount of traffic you might start to see a warning that Google Maps isn’t loading properly and is effectively broken.

What can I do?

Take a look at your analytics, if you have a substantial amount of traffic hitting your site then it is time to get your account updated.

You will need to generate an API key and add billing information to your account. All projects will have to have an official API key that is linked to a credit card. 

As soon as you exceed the number of free API requests, you will start to get charged. From your account you can set up a rate limit on your account to prevent being overcharged.

Why don’t I just use the free embed version?

The differences between the embed approach and the javascript approach is that the JS approach gives much more flexibility - colours, custom markers, multiple markets etc.. 

The embed approach only allows the display of a single location or place.

image

This new pricing went into effect in July, for more information on transitioning to this new update head over to the user guide.

Instagram

Twitter

  1. RT @TVBAwards: And this year's entries are now with the judges! The official #TVBAwards2019 judging period has begun. Our best wishes t…

  2. RT @konditorandcook: There's only one way to celebrate #NationalChocolateCakeDay 👀 To win a chocolate cake of your choosing, RT, follow us…

  3. RT @webfoundation: In March 2019 the World Wide Web will be 30 years old. Half of the world’s population will be online. Half will not. T…

  4. We are proud to be have been part of the team that supported the partnership with Mail Boxes Etc. and Sony to promo… https://t.co/Ur4R7nrt26

  5. Agency trends for 2019 https://t.co/iZ1Hcx3rlA

  6. RT @freeagent: Ready to fill out your 2017/18 #SelfAssessment tax return? Here's a list of all the things you need to have to hand: https:/…

  7. RT @CraftCMS: Our second Craft 3.1 webinar today kicks off in 5 minutes! https://t.co/4SXixYzASl #craftcms

  8. RT @andoverfoodbank: Thank you for all the donations you leave at the supermarkets each week. These are critical for keeping stocks up so w…

  9. Get your Christmas parcels and post sent in time! Here is a handy guide from @MailBoxesEtcUK #ChristmasPost https://t.co/E68QEHm8Yb

  10. Thank you for the invitation, it was a great lunch and talk. https://t.co/AKZhkH0aIH