• Hi.

    I use “Brilliant Geocoder for Gravity Forms” and I want to show latitude and longitude when users enter their address.

    But there are multiple fields in the Gravity Forms!

    Indeed, user enter street address, city, ZIP and country but in “Geocoding Source Fields” I can use only one field (like street address). But in my country, a same street address can exists in multiple city.

    How to solve this problem?

    Thanks for your help.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Michael Moore

    (@stuporglue)

    Hi nobduck,

    How many Geocoding Source Fields show up depends on which geocoder you have selected.

    Changing Geocoder Engine

    If you don’t see the options you’re expecting on the form settings page be sure to enter your geocoder engine API keys into the Gravity Forms settings page.

    Thread Starter nobduck

    (@nobduck)

    Hi Michael.

    Thanks for your reply!

    I’d forgot to select the Geocoder engine in the Settings of the form.
    Thats’ why I couldn’t select more than one field.

    It ok now 😉

    Where are those settings??? I don’t have such option in plugin setting tab…

    Plugin Author Michael Moore

    (@stuporglue)

    Hi @mariuszo!

    The Plugin Settings tab should let you set the geocoder API keys. The API keys apply to all forms you create in Gravity Forms.

    Which geocoder to use can be changed for each Gravity Form, and the setting is at or near the bottom of each individual form’s settings page.

    I found it – temporary blindeness, sorry…
    All API keys are inserted, but geocoding for GMaps still don’t work 🙁

    Plugin Author Michael Moore

    (@stuporglue)

    Can you open your browser console and copy any JavaScript errors that show up when you try to use the Google Maps geocoder?

    Thanks,
    Michael

    No errors at all, URL is: http://dworzecroku.pl/zgloszenie/

    I just noticed that even if GMaps are set as a source form still shows map from OpenStreetMap

    Plugin Author Michael Moore

    (@stuporglue)

    @mariuszo,

    Are you comfortable editing JavaScript files?

    Would you be able to edit this file to test a fix?

    http://dworzecroku.pl/wp-content/plugins/brilliant-geocoder-gravity-forms/geocoders/google_maps_api.js

    If you can, please change

    success_callback( success );

    to

    success_callback( geojson );

    And let me know if the Google geocoder works?

    If you’re not comfortable editing JavaScript files, I will bundle up a custom version of the plugin for you to test.

    Thanks,
    Michael

    Hi!
    I can edit script file, no problem.
    But now something new: suddenly I started to got following errors:

    Warning: Illegal string offset 'OSM Nominatim simple query' in /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/class-geocoder-gravity-settings.php on line 244
    
    Warning: Illegal string offset 'OSM Nominatim full address' in /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/class-geocoder-gravity-settings.php on line 244
    
    Warning: Illegal string offset 'Geocod.io full address' in /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/class-geocoder-gravity-settings.php on line 244
    
    Warning: Illegal string offset 'Geocod.io simple query' in /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/class-geocoder-gravity-settings.php on line 244
    
    Warning: Illegal string offset 'Google Maps API' in /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/class-geocoder-gravity-settings.php on line 244
    
    Warning: ksort() expects parameter 1 to be array, string given in /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/class-geocoder-gravity-settings.php on line 247
    
    Warning: implode(): Invalid arguments passed in /wp-content/plugins/brilliant-geocoder-gravity-forms/lib/class-geocoder-gravity-settings.php on line 251

    It occurs when entering forms settings (newly created too)

    • This reply was modified 7 years, 2 months ago by mariuszo.
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to geocode with multiple fields?’ is closed to new replies.