Support » Plugin: WP Store Locator » Google Application Restriction prevents creating coordinates

  • neok123

    (@neok123)


    Hi all,

    When I put a website restriction on my API key, then Store Locator is unable to generate the coordinates.

    I added the following restriction on Google Cloud Platform:
    *.mydomain.com/*

    This means that the key will only accept requests from my own website. However, this will lead to Store locator not being able to generate coordinates from address and thus no marker.

    Does anyone know if there is a domain I need to add to also use the key?

    Best regards,
    Neok

Viewing 1 replies (of 1 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you try domain.com/* instead of *.domain.com/*

    If you click on ‘show response’ on the WPSL settings page, do any errors show up?

    The restriction for the server API key needs to be set to your domain, and for the browser key to current domain.

    This means that the key will only accept requests from my own website. However, this will lead to Store locator not being able to generate coordinates from address and thus no marker.

    I’m not sure I’m following this? A request is made from your own sever to the remote Google server, and this returns the coordinates that are used in the store locator.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.