Skip Navigation

[Resolved] Am I able to use a restricted Google Maps API key?

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Clayton Chase 3 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2108731
Screen Shot 2021-07-07 at 10.41.42 AM.png

Hey guys,

Can I use a restricted Google Maps API key? Any time I try putting a restriction (even though done properly) I get the follow error. "API keys with referer restrictions cannot be used with this API."

Is there no way to restrict the API key and if not how do you suggest we keep the API key safe? Also, is there an ETA on your Open Streets Map integration?

#2109139

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You can add a key with restrictions (URL referrer restrictions) as the first key, and an unrestricted key as the second key

More info:
- https://toolset.com/course-lesson/creating-a-maps-api-key/#problems-with-displaying-markers-on-google-maps

There is no ETA on open-street maps integration yet. You should keep following our Blog remain updated with latest updates:
- https://toolset.com/blog/

#2110343

Okay, I will try the second API method. Where do I get the second API key? Google is only generating me one API key?

#2111091

This seemed to work. Thanks