Support » Plugin: Import and export users and customers » Field ACF map import

  • studioevol

    (@studioevol)


    Hi,

    I want to import an address for an acf field google map.

    How can I do this? I tried using :: to get an array output but it doesn’t support it.

    Thanks for your support.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Javier Carazo

    (@carazo)

    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?

    Thread Starter studioevol

    (@studioevol)

    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";}

    Plugin Author Javier Carazo

    (@carazo)

    @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.

    Plugin Author Javier Carazo

    (@carazo)

    The place_id is calculated by Google.

    Do you know it in your import?

    Thread Starter studioevol

    (@studioevol)

    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

    Plugin Author Javier Carazo

    (@carazo)

    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?

    Thread Starter studioevol

    (@studioevol)

    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?

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