Why Address Map Locator is not searching address?

  • Profile Image
    matthewread
    Asked on July 07, 2019 at 10:25 PM

    My Address Map Locator widget stays static and does not search for a location that is typed into the Address field.

    I enter an address and there is no autofill or suggested fill drop down, and pressing enter does not initiate any type of search.

  • Profile Image
    roneet
    Answered on July 08, 2019 at 02:57 AM

    On checking your Form I noticed this console error:

    1526410225Screen Shot 2018-05-15 at 8.46


    So could you please try generating a new API key one more time from that widget and see if that changes anything?

    To generate the API, please go to this link:

    https://developers.google.com/maps/documentation/javascript/get-api-key

    Let us know how it goes.

    Thanks.


  • Profile Image
    matthewread
    Answered on July 09, 2019 at 02:52 AM

    Hi,


    The new key provided the same errors.

    Which API libraries need to be enabled in order to use this widget?


    I currently have the following enabled;

    JavaScript API

    Geocoding API

    Geolocation API


    The error I get is "This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console"

  • Profile Image
    AndrewHag
    Answered on July 09, 2019 at 03:28 AM

    It seems you have already added the API key. I see that the widget is working fine without any issue. There are no console errors also.

    1562657292Owners Instruction Form - Goog

    Let us know if you need any further assistance.

  • Profile Image
    matthewread
    Answered on July 09, 2019 at 06:54 PM

    Please let me know which API libraries this widget requires so that I can turn the irrelevant ones off.

  • Profile Image
    jonathan
    Answered on July 09, 2019 at 08:54 PM

    Actually any of the google API keys on your account should work.

    https://developers.google.com/maps/documentation/javascript/get-api-key

    or

    https://console.developers.google.com/projectselector/apis/credentials


    I also test/checked your form and the map locator widget is working properly.


    Let us know if you need further assistance.






  • Profile Image
    matthewread
    Answered on July 09, 2019 at 11:14 PM

    When I load the form, the widget correctly displays my rough location, but I want to be able to search for an address in the "Address" field and for that to then update the map. I can not get this work.

    There have been a number of responses to this thread with screenshots of the map working, but I can only assume this is of the initial load and not of a search?

    Your help is greatly appreciated.

  • Profile Image
    AndrewHag
    Answered on July 10, 2019 at 12:30 AM

    I am able to replicate the issue. I can see the issue happens on your form due to restrictions on the used API, I would recommend you to please check that on your end. You may set the restrictions to none.

    156273291015053270331.png

  • Profile Image
    matthewread
    Answered on July 10, 2019 at 01:08 AM

    Thanks Andrew, but my key restriction is already set to none as per your screenshot.

    What else would be causing the error?

  • Profile Image
    roneet
    Answered on July 10, 2019 at 02:40 AM

    On testing the Form, I noticed there were no errors in the console and the widget seems to work correctly. I think there are some daily limits on your API as soon as you exceed the API the widget stops working. This is the reason that some of my colleagues is able to replicate and some could not.

    1562740567form.gif

    Let us know if you have daily limits on your Google API.

    Thanks.

  • Profile Image
    matthewread
    Answered on July 10, 2019 at 02:46 AM

    Hi Roneet,

    We have a paid account so we do not have daily limits as we simply pay for the extra requests.

    I am able to move the pin just as you have shown in your snippet.

    The problem is that I want to be able to type in an address, and have the map place the pin on that new location.

    My form requires people to input their address, and the whole purpose of using this widget is to validate what they type in by showing them the location on the map.

  • Profile Image
    jherwin
    Answered on July 10, 2019 at 04:10 AM

    How about using the GPS Location widget? That may work for your needs.

    I think your google map API key is not working as expected. Please try to generate a new one by following this video/screencast: Click this link to see the video.

    Please give it a try and let us know how it goes.