Title: Google Map API Key
Last modified: July 5, 2023

---

# Google Map API Key

 *  [user9876789](https://wordpress.org/support/users/user9876789/)
 * (@user9876789)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/google-map-api-key-4/)
 * Hello, firstly thank you for creating a great plugin, my client finds it very
   useful. They wish to use the auto complete feature by entering a Google Map key.
 * There is a link in the Phone Orders setting for ‘How to get api key’ – this links
   to [https://docs.algolplus.com/algol_phone_order/common-pro/](https://docs.algolplus.com/algol_phone_order/common-pro/)
   which goes to a 404.
 * I have created a Google Map key with the APIs restricted to Places and Maps and
   this works, however, I would also like to restrict the API key by website / IP
   address for security.
 * However, the Maps API must be restricted by website and the Places API must be
   restricted by IP address (see here – [https://developers.google.com/maps/faq#api-key-restrictions](https://developers.google.com/maps/faq#api-key-restrictions)).
   I am not able to restrict by both, it is either one of the other.
 * When we have had this issue on Google Map functionality I have made, I have had
   to have two separate Google Map fields, one for the Places API and one for the
   Maps API so that the keys can be restricted individually.
 * Would you be able to look into this please or provide a way I can restrict this
   key by website so it can be restricted?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/google-map-api-key-4/#post-16875033)
 * Hello
 * I’m sorry, but my vacations started on this Monday.
 * Can you ping me in 3 weeks ?
 * thanks, Alex
 *  Thread Starter [user9876789](https://wordpress.org/support/users/user9876789/)
 * (@user9876789)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google-map-api-key-4/#post-16926499)
 * Hello, please can this one be looked at when you are back.
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google-map-api-key-4/#post-16927588)
 * hi
 * Could you edit key settings and remove Maps API  ? 
   as I see we don’t use this
   api.
 *  Thread Starter [user9876789](https://wordpress.org/support/users/user9876789/)
 * (@user9876789)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google-map-api-key-4/#post-16927735)
 * Hello when I remove the Maps API it stops working – I get the error on the page
   where you verify the key:
 * _Google Maps Javascript API error: ApiTargetBlockedMapError [https://developers.google.com/maps/documentation/javascript/error-messages#api-target-blocked-map-error](https://developers.google.com/maps/documentation/javascript/error-messages#api-target-blocked-map-error)_
 *  and then on the actual page it gave an error where the box should be, I can’t
   recall exactly what it said as I was rushing to put it back on again, something
   like please enter a valid map key.
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google-map-api-key-4/#post-16928194)
 * hi
   I think we will modify plugin and won’t use “Maps Javascript API” at all.Please,
   submit ticket to [https://algolplus.freshdesk.com/](https://algolplus.freshdesk.com/)
   and we’ll provide beta for tests .
 *  I can’t promise to do it tomorrow as we already have tasks for Friday .
 * thanks, Alex
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google-map-api-key-4/#post-16928213)
 * I’m sorry [@user9876789](https://wordpress.org/support/users/user9876789/) 
   I
   have ito clarify previous message.
 * We use “JavaScript” platform and this platform requires both APIs according to
   [https://developers.google.com/maps/documentation/javascript/places](https://developers.google.com/maps/documentation/javascript/places)
 * “WebService” allows to use only Places API , but it will require us to code own
   autocomplete. I’m unsure if we’ll have time for it.
 *  Thread Starter [user9876789](https://wordpress.org/support/users/user9876789/)
 * (@user9876789)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google-map-api-key-4/#post-16929385)
 * Could a quicker fix be to add another field for a second API key – so one for
   the Maps and one for the Places key? Then if the new Places key isn’t used just
   fallback to the Maps one?
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/google-map-api-key-4/#post-16929522)
 * hi
 * It won’t help , JS library is initialized using ONE key.
 * Look at docs link (in previous reply), it’s just
 *     ```wp-block-code
       <script async    src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places&callback=initMap"></script>
       ```
   

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Google Map API Key’ is closed to new replies.

 * ![](https://ps.w.org/phone-orders-for-woocommerce/assets/icon-256x256.png?rev
   =1937355)
 * [Phone Orders for WooCommerce](https://wordpress.org/plugins/phone-orders-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/phone-orders-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/phone-orders-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/phone-orders-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/phone-orders-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/phone-orders-for-woocommerce/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/google-map-api-key-4/#post-16929522)
 * Status: not resolved