GeoComplete widget: Can't find address based on business name

  • Profile Image
    fivegoodfriends
    Asked on September 04, 2017 at 01:23 AM

    I am trying to use the GeoComplete widget @ https://form.jotform.co/72457761328867.

    However, the results seem to be filtered in some way.

    I have selected Worldwide search.

     

    Expected:

    1. Search for "yum yum peking duck"

    2. Find "Yum Yum Peking Duck, Scotts Road, Darra, Queensland, Australia"

     

    Actual:

    1. Search for "yum yum peking duck"

    2. Find no results

     

    I have created a fiddle @ https://jsfiddle.net/aldhsu/577ty391/ from the Google template that is able to produce the desired result.

    Diffing the request URLs leads to me believe it may have something to do with the 'geocode' parameter. 

     

    Any ideas?

  • Profile Image
    Charlie
    Answered on September 04, 2017 at 06:23 AM

    Hi,

    I can only presume that the GeoComplete widget has a limited range or is fetching addresses using a different query compared to the main search functionality of Google Maps. Here's my result of testing:

    Here's my test form: https://form.jotformpro.com/72462673666971

    The text "yum yum p" won't show up the "Yum Yum Peking" in the list. 

     

    However, the road can be properly searched:

     

    I can only presume that it might be related to the business location. Compared to the main Google Maps search which can properly view the business. 

     

    Let me forward this to our developers to make improvements on the widget. 

  • Profile Image
    fivegoodfriendsbot
    Answered on September 19, 2017 at 08:17 PM

    I have checked the GeoComplete code and the Google API docs. 

    In the GeoComplete code there is this: 

    var h = $("#geocomplete")

          , i = {

            types: ["geocode"]

        }

    Note this is minified code.

    From the Google Maps API documentation:

    https://developers.google.com/places/web-service/supported_types

    geocode instructs the Place Autocomplete service to return only geocoding results, rather than business results. Generally, you use this request to disambiguate results where the location specified may be indeterminate.


    Is it possible to allow the type to be user specified by a string? It would greatly improve the functionality of the GeoComplete widget. 

  • Profile Image
    Jan
    Answered on September 19, 2017 at 10:12 PM

    Thank you for the additional information.

    Unfortunately, we do not have any update yet regarding this issue. As of right now, the issue is still being worked on. I will contact the developer assigned to this thread and I will ask for any update.