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