New Form Layout:"City" part of address not being added when using Google Address Lookup

  • Profile Image
    BxClinic
    Asked on December 14, 2017 at 06:36 AM

    Hi Guys,

    What an amazing new feature the Google address auto-complete is - well done!


    There is a bug, however, when populating the "City" field when using UK addresses. The city simply doesn't get put into the field. Here's a screencast illustrating the issue with a couple of addresses: http://take.ms/cAPpd


    Hope that helps

    As always, much respect - Jotform rocks!

    James

  • Profile Image
    Ardian_L
    Answered on December 14, 2017 at 09:31 AM

    Hi,

    Thank you very much. I was able to replicate the issue for addresses in UK, I tried some addresses in other countries and it worked fine.

    I have submitted the issue to our developers and you will be notified in this thread as soon as possible.

  • Profile Image
    BxClinic
    Answered on December 14, 2017 at 09:35 AM

    Thanks Ardian,

    It may be a bit more complex than first imagined - here are a couple of other addresses in London which show odd behaviour: http://take.ms/W0SL4


    Cheers

    James

  • Profile Image
    Ardian_L
    Answered on December 14, 2017 at 09:41 AM

    Hi,

    Thank you for adding the second link, I will append the second link to the request.


  • Profile Image
    asil
    Answered on December 15, 2017 at 07:51 AM

    We are continuously improving our address behavior. There was a problem regarding address handling for Great Britain and it should be working now as expected.

    1513342246asd.gif

  • Profile Image
    BxClinic
    Answered on December 15, 2017 at 10:50 AM

    Hi Asil,

    Almost fixed! The County is now showing "England" and the Country is showing "United Kingdom" !! (County should be blank as they are no longer considered as a valid part of the address) : http://take.ms/rDKwz

    Here's the correct way of formatting the address: http://take.ms/yxWvt


  • Profile Image
    Ardian_L
    Answered on December 15, 2017 at 12:25 PM

    I will ask again from the developers to check the functionality. In meanwhile you may hide the county field until this is fixed. 

    We are sorry for any inconvenience caused.

  • Profile Image
    asil
    Answered on December 18, 2017 at 08:18 AM

    Hi James,

    We are using Google's autocomplete API in our product to predict addresses. "State / Province" field, or "County" field in your form, is being used for first-order civil entity below the country level which is administrative_area_level_1 for Google Maps(You can find more information here). For your search term "12 Lord Nelson Drive", Google Maps returns following information.

    1513602851Screen Shot 2017-12-18 at 16.1

    Since "England" is returned as administrative_area_level_1, we are using that value in "State/Province" field. There are infinitely many different address types for countries so that we are relying purely on Google.

    Sorry for any inconvenience, thank you.

  • Profile Image
    BxClinic
    Answered on December 18, 2017 at 08:33 AM

    Thanks for the explanation, Asil. I've had problems integrating Google's address autocomplete in the past - which is why we decided to use CraftyClicks instead for a different project. But I appreciate that the Google solution is free!

    That said, the implementation seems to have been changed over the weekend. Look at this:


    1513603998The Easiest Online Form Builde

  • Profile Image
    asil
    Answered on December 18, 2017 at 08:53 AM

    Hi James,

    We are using Google to ensure that our users will get what they see at Maps without any hassle. Like CraftyClicks, Google's both autocomplete and maps API is paid for commercial usage.

    For your question about city handling, there was a problem with it and it should be working correctly now.

    Thank you.


  • Profile Image
    BxClinic
    Answered on December 18, 2017 at 08:58 AM

    Thanks Asil,

    Unless it's a cache problem, it's not fixed - using the address I showed in the above screenshot, the City is not being autopopulated, the "County" is being put into the "City" field, and the "Country" (England) is being put into the "County" field!!!



  • Profile Image
    asil
    Answered on December 18, 2017 at 09:00 AM

    It must be a cache problem. Can you delete cache and try again.

    1513605598asd1.gif

  • Profile Image
    BxClinic
    Answered on December 18, 2017 at 09:20 AM

    Yep, all sorted - thanks!

  • Profile Image
    Ardian_L
    Answered on December 18, 2017 at 09:56 AM

    In Behalf of my colleagues you are welcome, please let us know if you have any other question.