I have been trying to debug it, but I cannot.
ACF seems to not be saving the fields and I cannot use Google Maps field because I have no api-key and it cannot be saved.
Could you tell me how it is saved into the usermeta table?
Hi, This is the output in usermeta table for my field
a:13:{s:7:"address";s:44:"300 Rue Louis Rustin, 74160 Archamps, France";s:3:"lat";d:46.1388312;s:3:"lng";d:6.1170125;s:4:"zoom";i:14;s:8:"place_id";s:27:"ChIJ7ciBi8h7jEcR8oKm8dFCZlg";s:4:"name";s:20:"300 Rue Louis Rustin";s:13:"street_number";s:3:"300";s:11:"street_name";s:16:"Rue Louis Rustin";s:4:"city";s:8:"Archamps";s:5:"state";s:21:"Auvergne-Rhône-Alpes";s:9:"post_code";s:5:"74160";s:7:"country";s:6:"France";s:13:"country_short";s:2:"FR";}
@studioevol,
OK this is an array:
array (
'address' => '300 Rue Louis Rustin, 74160 Archamps, France',
'lat' => 46.1388312,
'lng' => 6.1170125,
'zoom' => 14,
'place_id' => 'ChIJ7ciBi8h7jEcR8oKm8dFCZlg',
'name' => '300 Rue Louis Rustin',
'street_number' => '300',
'street_name' => 'Rue Louis Rustin',
'city' => 'Archamps',
'state' => 'Auvergne-Rhône-Alpes',
'post_code' => '74160',
'country' => 'France',
'country_short' => 'FR',
)
Uhm, this is not easy to import because the “place_id” seems to be unique and we do not know how it craetes it.
Let me check it and tell you later.
The place_id is calculated by Google.
Do you know it in your import?
It seems that this is created by the lat/lng. When we enter an address, google automatically converts it to lat/lng.
It seems that it is possible to do this in code via API. Do you think this is possible on your side?
Thanks
No, we cannot talk to the API.
But we could insert all this data in this way, if you have it.
The question is: 1) you have all this data in this way? 2) if you have it, how would you represent it in a CSV?
Hi,
I have only theses informations for each user and my google map API key.
address / name / street_number / street_name / city / state / post_code / country / country_short
I have represented this information in one cell. If I need to, I can separate them, but how can I import several cells for one field?
Sorry for the delay. I have been really busy, but I did not forget it.
You can import it in 1.17.8.
Read in documentation how you should import key => value like this:
address=>300 Rue Louis Rustin, 74160 Archamps, France::lat=>46.1388312::lng::111
This is the format 🙂