WP Manifestindependent plugin directory
manifest / content / acfaddresscoordinates

Advanced Custom Fields: Address with Coordinates

WordPress plugin to add ACF Pro (v5) Address fields with GPS coordinates geocoding

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/pierrelebedel/acfaddresscoordinates/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

ACF Address fields with GPS coordinates geocoding

WordPress plugin that adds ACF Address fields.

The GPS coordinates are geocoded on form submit with OSM Nominatim API.

The countries list is provided by countriesnow.space API.

Usage

$address = get_field('YOUR_FIELD_NAME');

print_r($address);

/*
Array
(
    [street_1]     => 24 rue du Test
    [street_2]     => 
    [post_code]    => 07700
    [city]         => Bidon
    [state]        => 
    [country_code] => FR
    [latitude]     => 4.5342856
    [longitude]    => 44.3663529
    [country_name] => France
)
*/