• Resolved bcanr2d2

    (@bcanr2d2)


    I am using your plugin to provide a geocoded location for users, and I am starting to prepopulate the fields with those provided by a social network IE Facebook, Amazon, LinkedIn.

    Whilst I can can save the items directly to the xprofile field that is used, is there a hook/action/function I can call so that when these items are pre-populated they can be geocoded with the first item in the list?

    I am thinking I will have to tell my users to verify the information by clicking on the dropdown so that it will then use the first item in the list to geocode the location, geocode it and save it when they save their profile information.

    Currently I use the following to save the data

    xprofile_set_field_data('Suburb', $user_id, $location);

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author shanebp

    (@shanebp)

    You need to click on the dropdown, otherwise the location data will not be provided by Google.

    Thread Starter bcanr2d2

    (@bcanr2d2)

    Fair enough, will just have to make sure the users interact with the dropdown.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘geocoding a prefilled location’ is closed to new replies.