Can't populate coordinates with binding address field

Support MB Geolocation Can't populate coordinates with binding address field

  • This topic has 3 replies, 2 voices, and was last updated 1 week ago by PeterPeter.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48283
    lighterdayzlighterdayz
    Participant

    I’m having issues populating a coordinates field and the map field. I’m creating a directory site where users can fill out a form with their location. Each post needs to be searchable by coordinates field. I am using Fluent forms for input and have mapped the address_street field. The record returns the complete address, including coordinates in the string.

    I have google places, google maps, geo location api/active.

    I tried to populate the coordinates field using the settings: binding= “geometry”, but that field is not returning anything. (blank)

    I tried to populate the google map with the address_street info in that field. When I click to edit in the back end, the map shows my current location on the map, instead of the location of the business.)


    Can you tell me which settings I have wrong here?

    Should google places attribute be in Custom Settings instead of HTML5 Attributes?

    The metabox fields I created are the following:
    Text Field: Street Address
    Id: address_street
    Html5 attribute: data-google-places= “formatted_address”
    Text Field:City
    Id: city_location
    Html5 attribute: data-google-places= “city”
    Text Field:State
    Id: state_location
    Html5 attribute: data-google-places= “state”
    Text Field: Country
    Id: country
    Html5 attribute: data-google-places= “country”
    Text field: Coordinates
    Id: coordinates
    Custom settings: binding= “geometry”
    Google Maps field: Map
    Id= “map_xxxxx”
    Google API: xxxxxxxx
    address field: address_street

    Thank you,
    Marge

    #48287
    PeterPeter
    Moderator

    Hello Marge,

    You have to use the Custom settings instead of HTML5 Attributes to set the binding for the field. Please check this screenshot https://ibb.co/NdytFy1H

    in the admin area, do you see the country field is populated when typing the address to the Street Address field? Please share a screen record of the geolocation fields in your site admin area, without the Fluent form.

    #48289
    lighterdayzlighterdayz
    Participant

    Thanks for your response. If I type in the address in the admin area, the country and coordinates populate. Fluent forms sends the coordinates with the address. https://app.screencast.com/ZJjS7QjhpRkFz

    #48294
    PeterPeter
    Moderator

    Hello,

    So I can see that the Geolocation feature of Meta Box still works properly. If there is an issue with it when using Fluent Forms, please contact their support to get further assistance.

    Also, the fields City and State do not work because they are not supported when using Google Map. Please follow the documentation https://docs.metabox.io/extensions/meta-box-geolocation/#other-fields

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.